-
Using ansys.geometry, I want to round an edge of a body, but I cannot find this feature. Is it available?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @gze 👋 While I don't know the answer to the question about rounding edges, you can run Discovery scripts, with the I'll transfer the discussion to the PyAnsys Geometry repository for better visibility by those who might answer the question.. maybe @RobPasMue knows? |
Beta Was this translation helpful? Give feedback.
-
Hi @gze! Using PyAnsys Geometry you do have the option to use the native API to perform repair and prepare tools operations. Some of them however might not be available for you yet because we implemented native support for it in 25R1. See https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/tools/repair_tools/RepairTools.html#ansys.geometry.core.tools.repair_tools.RepairTools and https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/tools/prepare_tools/PrepareTools.html#ansys.geometry.core.tools.prepare_tools.PrepareTools In any case, like @greschd mentions, if you have a DIscovery script already available you can use it as a backdoor to get your results! Also, if you do so, we would appreciate it if you let us know what API calls you are performing so that we can expose them natively. |
Beta Was this translation helpful? Give feedback.
-
Creating the round using modeler.run_discovery_script_file() works. In my script using ansys.geomery.core i call:
The round.py contains:
How do I get the script_args passed to the argsDict |
Beta Was this translation helpful? Give feedback.
-
Hi @gze - have a look at the following screenshot In my case everything worked as expected as you can see in the output. Disco script in IronPython executed properly and the output was returned successfully to PyAnsys Geometry with the result object... Can you give it a try to access the dictionary without the I am also using version 0.7.4 - maybe something got fixed in the meantime and I can't remember right now... |
Beta Was this translation helpful? Give feedback.
Hi @gze!
Using PyAnsys Geometry you do have the option to use the native API to perform repair and prepare tools operations. Some of them however might not be available for you yet because we implemented native support for it in 25R1. See https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/tools/repair_tools/RepairTools.html#ansys.geometry.core.tools.repair_tools.RepairTools and https://geometry.docs.pyansys.com/version/stable/api/ansys/geometry/core/tools/prepare_tools/PrepareTools.html#ansys.geometry.core.tools.prepare_tools.PrepareTools
In any case, like @greschd mentions, if you have a DIscovery script already available you can use it as a backdoor to get your res…