Hi Mark,
The names are stored in Inventor attributes.The code below extracts the Intent name assigned to a Face:
Inventor.Face face = ...;
Inventor.FaceProxy faceP = face as Inventor.FaceProxy;
if( faceP != null)
face = faceP.NativeObject;
string entityName = null;
Inventor.AttributeSets attss = face.AttributeSets;
Inventor.AttributeSet atts = null;
if (attss.get_NameIsUsed("Intent"))
{
atts = attss["Intent"];
if( atts.get_NameIsUsed("Name"))
{
Inventor.Attribute att = atts["Name"];
if( att.ValueType == Inventor.ValueTypeEnum.kStringType)
entityName = att.Value as string;
}
}
The similar code will work for Vertices and Edges.
--Alex Korzun
Autodesk Intent Development
Thank you,
Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.