10-06-2023
05:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-06-2023
05:27 PM
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
Or if this helped you, please, click (like)
Regards
Alan