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: ppolcynBNVFN

Hi @ppolcynBNVFN 

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