How can I get information on the mesh in Mechanical through scripting?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
Answers
-
Information on mesh, nodes and elements can be accessed through MeshData. Below is an example:
# reference mesh data meshData = ExtAPI.DataModel.Project.Model.Analyses[0].MeshData # select one element and display information elem=meshData.Elements[0] elem.Centroid # position of element elem.Type # type of element
5