How to get node id from a vertex id in Mechanical via scripting?
Rohith Patchigolla
Member, Moderator, Employee Posts: 212
✭✭✭✭
in Structures
How to get node id from a vertex id in Mechanical via scripting?
Tagged:
0
Best Answer
-
Let's say if the vertex Id is 83 (which can be found from scoping of a load or a bc .. loadObj.Location), then one can get the corresponding node ID/s (if the scoping is face/edge for example) using the below script.
Mesh = ExtAPI.DataModel.MeshDataByName("Global") mR = Mesh.MeshRegionById(83) nodeIds = mR.NodeIds
0