How can I know the number of nodes and elements on a face that is selected in the UI?
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