Community
Hi all,
I'm trying to access the bend radius of an existing flange.
PartDocument _activeDoc = m_inventorApplication.ActiveDocument as PartDocument; if (_activeDoc.ComponentDefinition.Type == ObjectTypeEnum.kSheetMetalComponentDefinitionObject) { SheetMetalComponentDefinition _partDef = _activeDoc.ComponentDefinition as SheetMetalComponentDefinition; PartFeatures _features = _partDef.Features; foreach (PartFeature _feature in _features) { switch (_feature.Type) { case ObjectTypeEnum.kFlangeFeatureObject: FlangeFeature _flange = _feature as FlangeFeature; MessageBox.Show(_flange.Definition.BendRadius.ToString()); break; default: break; } } return true; } return false; } }
In this case MessageBox will return a System._ComObject.
I also tried reading from the flange feature itself, but this will give me "Not implemented" exceptions for _flange.Parameters or even _flange.ExtendedName.
Best regards
Erik
Solved! Go to Solution.
Solved by cadsupport. Go to Solution.