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

Hi,
Try this :

Dim
partDoc As Document = ThisApplication.ActiveDocument

If oDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
'...Assembly document

If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
'...part document
 

 

Alain