Home > front end >  distinguish between bodies in Catia
distinguish between bodies in Catia

Time:04-29

How to distinguish between bodies in Catia (i.e name of the 2 bodies can be the same) and there are no other properties in the properties tab. Is it possible to distinguish using catvba?

The image shows the properties tab

CodePudding user response:

Therefor you can read (with undocumented methods) the internal name of a feature/object (which can not be changed):

Dim oModelElement As Object
Dim sInternalName As String

Set oModelElement = oBody.GetItem("ModelElement")
sInternalName = oModelElement.InternalName

MsgBox sInternalName
  • Related