10-06-2023
05:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-06-2023
05:57 PM
The easiest method is using the ilogic API route. This targets the document at view (1) of sheet (1)
Dim modelDoc As Document = ThisDoc.ModelDocument
The longer method is the Inventor API route helpful article here
Then once you have the document you can determine its document type see help page here
Syntax
Document.DocumentType() As DocumentTypeEnum
Property
If doc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
'DO SOMETHING
End If
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