- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Check BOM in Assembly
Best Regards Johan
oPlacementPoint = ThisApplication.TransientGeometry.CreatePoint2d(postionX, postionY) Dim partsListBomType As PartsListLevelEnum = 46593 '''Name Value Description 'kFirstLevelComponents 46593 First level components. 'kPartsOnly 46594 Parts only. 'kStructured 46593 Structured first level components. 'kStructuredAllLevels 46595 Structured all components. Dim oPartsList As PartsList = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint,partsListBomType)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thanks for the hint.
Strangely, it worked with all other test assemblies without the optional parameter.
kFirstLevelComponents appears to be deprecated. It's not exposed through the API.
Have a great holiday!