Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
jan.pomplun
370 Views, 2 Replies

Problem with derived assembly

Hi,

 

I have a problem with creating a derived part of an assembly. The assembly looks like the following:

assembly.PNG

When I derive it into a part via the GUI ("Ableiten" means derived part in english)

button.PNG

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:

part.PNG

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:

GUI.png

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