I am trying to fetch all the features present in part. Part may be synchronous or ordered.
I am trying below C# code.
SolidEdgePart.Features PartFeatures = ModelObj.Features;
int FeatureCount = PartFeatures.Count;
if (FeatureCount > 0)
for (int i = 1; i <= FeatureCount; i++)
object FeatureObj = PartFeatures.Item(i);
System.Type AType = FeatureObj.GetType();
string SEName = AType.InvokeMember("Name", System.Reflection.BindingFlags.GetProperty, null, FeatureObj, null) as string;
Above code gives me the name of features if the part has ordered features but in case of synchronous it just gives me faceSet_1 etc.
How should I get the name of the features in synchronous mode?
Posted by: sandeepPost date: 8/14/2012 3:49:09 AM
i'm no expert in C# but i don't think that there is a problem here.
as i understand it, in sync par the feature is created as face_set.
therefore .name and .displayname and .systemname are "face set..." while their .edgebarname is protrusion1 etc.
does it help in any way??
Posted by: alon ravivPost date: 8/18/2012 7:39:11 AM