Problem with derived assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a problem with creating a derived part of an assembly. The assembly looks like the following:
When I derive it into a part via the GUI ("Ableiten" means derived part in english)
The derived part looks similar. When I do it via the API:
var partDoc = (Inventor.PartDocument)InventorUtil.InventorApplication.Documents.Add(Inventor.DocumentTypeEnum.kPartDocumentObject, "", false); DerivedAssemblyDefinition defAss = partDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(invDelegate.Document.FullDocumentName); defAss.InclusionOption = DerivedComponentOptionEnum.kDerivedIncludeAll; defAss.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsSingleBodyNoSeams; partDoc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.Add(defAss);
The derived part however looks like:
I do not understand why the marked feature is shown in the part - marked with the red circle.
I can only reproduce it in the GUI when I change the following to include the bounding box:
notice the green rectangle (should be bounding box instead of the plus).
I do not understand why this would be the default behaviour via the API - while it is not via the GUI.
Further (and more important) I do not know how to deactivate it. I tried around with following ptions which did not help
defAss.InclusionOption = DerivedComponentOptionEnum.kDerivedIncludeAll;
defAss.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsSingleBodyNoSeams;
defAss.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsMultipleBodies;
defAss.IncludeAllTopLevelWorkFeatures =DerivedComponentOptionEnum.kDerivedExcludeAll;
defAss.IncludeAllTopLevelSketches = DerivedComponentOptionEnum.kDerivedExcludeAll;
defAss.IncludeAllTopLeveliMateDefinitions = DerivedComponentOptionEnum.kDerivedExcludeAll;
defAss.IncludeAllTopLevelParameters = DerivedComponentOptionEnum.kDerivedExcludeAll;
Does anyone know how to export the assembly without the "bounding box" features?
Thanks,
Jan
