Problem with using Ansys.ACT.Mechanical.Tools.AddGeometry
When loading geometry via Ansys.ACT.Mechanical.Tools.AddGeometry, the resulting body does not appear in the Geometries. I tried refreshing the tree (Tree.Refresh, TreeHandler.FillTree) and it didn't help. Perhaps someone has used a similar function and knows how to make the body appear in Mechanical so that it can then be used in the project.
Answers
-
What are you trying to do? If you are adding geom based on a CAD file, use the APIs for a CAD Import object that appears in the tree. You can also use the UI to record and get the basic API lines.
I don't believe Ansys.ACT.Mechanical.Tools.AddGeometry is a supported API.
1 -
What are you trying to do?
I am just exploring the capabilities of Ansys ACT and creating a list of working functionality available through the API (official and unofficial).
If you are adding geom based on a CAD file, use the APIs for a CAD Import object that appears in the tree. You can also use the UI to record and get the basic API lines.
For example, the function Ansys.ACT.Mechanical.Tools.Helpers.AddGeometry allows loading geometry via GeoData and also enables performing transformations (translation, rotation) during loading. GeoData can be created through BRep, which makes it possible to use the Mechanical session as a CAD tool for creating relatively simple objects.
0