Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: Anonymous

Basically, the PartsList (local to the drawing document) is refferencing the DrawingBOM (local to the drawing document), then the DrawingBOM is referencing the model's BOM (obviously local to the model document).

A model BOM row can contain 'child' rows, and therefore you can retrieve ComponentDefinitions (plural) from that row.  Usually, if there are no child rows, the first item in this collection will be the one being represented by the row.  You can then get the document object from that ComponentDefinition.  That document can then be compared to the document being represented on each sheet's PartsList.

Here are the online help pages for those items in question.

DrawingBOM Object 

DrawingBOMRow Object 

DrawingBOMRow.BOMRow Property 

PartsList Object 

PartsListRow Object 

PartsListRow.ReferencedRows Property 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)