How can I know the number of nodes and elements on a face?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
How can I know the number of nodes and elements on a face that is selected in the UI?
Tagged:
0
Answers
-
One can use:
faceId = ExtAPI.SelectionManager.CurrentSelection.Ids[0] # Id of selected face in the UI meshData = ExtAPI.DataModel.Project.Model.Analyses[0].MeshData # reference meshData faceMesh = meshData.MeshRegionById(faceId) # get mesh data for face faceMesh.ElementCount # get number of elements on face faceMesh.NodeCount # get number of nodes
2