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

Views added via API lose BOM information

Hello.

As the title says, views lose their connection to the BOM when I create views with the API.

DrawingView iso1View = sheet.DrawingViews.AddBaseView(modelDoc as _Document,
    centerIso1, scale,
    ViewOrientationTypeEnum.kIsoTopRightViewOrientation,
    DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
    "", null, options);

As a result, I cannot place a BOM. The line 

PartsList partsList = sheet.PartsLists.Add(iso1View, tg.CreatePoint2d(0, 0));

throws an exception.
Very strange: When I try to manually place a balloon after creating the views, Inventor asks me for the BOM. See video. I have never seen this dialog before. 

This only happens with a specific customer data set. It works with other example assemblies. This does not occur when I create the views manually. This is independent of the drawing template.

Inventor 2024.3.3

 

Regards

Christoph