The unit of the acquired nodal point coordinates
When I get the coordinates of a node in pyMechanical, I am doing something like this.
"""
nodeID = 251337
node = ExtAPI.DataModel.MeshDataByName(“Global”).NodeById(nodeID)
print(node.X)
"""
Do all of these node.X coordinate values output in meters?
I looked for the API documentation but could not find it.
It appears that the node.X value remains in meters even after changing the project to millimeter mode.
If it is always metric system, no problem.
Could the output be in millimeters depending on the project?
Thanks.
Answers
-
ExtAPI.DataModel.MeshDataByName("Global").Unit
For more on units in Mechanical scripting: https://discuss.ansys.com/discussion/2791/different-length-units-in-mechanical?utm_source=community-search&utm_medium=organic-search&utm_term=cad+unit
0