03-20-2020
04:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-20-2020
04:16 AM
You've just got to dig deeper. Under your For Each oBOMRow line, check the oBOMRow.ChildRows.Count to see if it is greater than zero.
You could also check the oBOMRow.ReferencedFileDescriptor.ReferencedFileType, to see if it is a Part or Assembly.
Or you could do this a different way by:
Dim oRowDoc As Document = oBOMRow.ComponentDefinitions.Item(1).Document
If oRowDoc.DocumentType =
Keep in mind that BOM rows can also be "Merged", "Promoted", or "RolledUp", too.
You may need to check for these, if you have any of that going on within your BOM.
Wesley Crihfield
(Not an Autodesk Employee)