Extracting the Element Type - How to?

To all

I would like to check as part of macro if (a user specified) element ID is either a CBUSH or a CBEAM? looking at the doc and recording a test journal it seems that the only way is to use the 'NodeElementInfoBuilder'. Is this correct ?

Dim nodeElementInfoBuilder1 As CAE.NodeElementInfoBuilder
nodeElementInfoBuilder1 = caePart1.NodeElementInfoMgr.CreateNodeElementInfoB​uilder()

The problem I can see with the Builder is that I am not sure how to access the 'Element Type' information

using the following

'--------------------------------------------------------
Dim elementIdToMatch As Integer = 1234 '456
Dim theFEElm as CAE.FEElement

Dim femPart As NXOpen.CAE.BaseFemPart = theSimPart.FemPart
Dim elementMap As NXOpen.CAE.FEElementLabelMap = femPart.BaseFEModel.FeelementLabelMap
Dim element As NXOpen.CAE.FEElement = elementMap.GetElement(elementIdToMatch)
If (Not element Is Nothing) Then
'Dim nodes As NXOpen.CAE.FENode() = element.GetNodes()
theLW.WriteLine("Elm Shape is:" & element.shape)
End If
'--------------------------------------------------------
returns an integer (1 in my case)

Any hints, suggestions, ideas, corrections , etc is welcome

Thanks

Regards

JXB

You can get the name indirectly by parsing the card name out of the string returned by CAE.FEElement.GetSolverCardSyntax()

Thanks
Regards