How to get element coordinate system information (location, angle) for each element programmatically
-
-
April 5, 2019 at 5:41 pm
banghuazhao
SubscriberWe can get local coordinate system information (location and rotation angle (in degrees) relative to the global Cartesian coordinate system.) by using "*GET, Par, CDSY, N, LOC, X (Y or Z)" or "*GET, Par, CDSY, N, ANG, XY (YZ or ZX)".
Is there a way to get the element coordinate system information for each element programmatically?
-
April 6, 2019 at 2:42 pm
peteroznewman
SubscriberThere is a way to display element coordinate system in Mechanical.
There is a way to set the element coordinate system in Mechanical.
-
April 6, 2019 at 2:55 pm
banghuazhao
SubscriberHi, thanks for your reply! Is there to way to get element coordinate system information programmatically?
For example, if I want to know the centroid of an element, I can use "ExtAPI.DataModel.Project.Model.Analyses[0].MeshData.ElementById(i).Centroid" in Mechanical (Workbench) or "*GET, Par, ELEM, N, cent, x (y or z)" in Mechanical APDL.
I am wondering if there is an API in Mechanical (Workbench) or in Mechanical APDL to extract that information. My problem needs to know all the element coordinate systems for each element.
Â
-
- The topic ‘How to get element coordinate system information (location, angle) for each element programmatically’ is closed to new replies.
-
3572
-
1193
-
1076
-
1063
-
952
© 2025 Copyright ANSYS, Inc. All rights reserved.