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

Hi @mbreed5XTGY 

If the assembly is in the drawing then you can access the BOM or Document references of the assembly then produce a list. Once you get that far then you need to check if you have a drawing at that filepath, open and copy sheet etc. 

 

ModelDocument ilogic API help page

All Referenced Documents Inventor Api Help Page

 

 

Dim partsList as New List (Of String)
Dim modelDoc As AssemblyDocument = ThisDoc.ModelDocument
For Each doc As Document In modelDoc.AllReferencedDocuments

   If doc.DocumentType = DocumentTypeEnum.kPartDocumentObject _ 'Part
   AndAlso doc.IsModifiable  Then 'Not read only CC/Library document
    partsList.add(Doc.FullFileName)
   End If 
Next
d0 = InputListBox("Prompt", partsList, d0, Title := "Title", ListName := "List")

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan