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

Quick note for anyone else referencing this: If this iLogic might possibly run on an assembly document or drawing document, you will need to first make sure that the document is a part document, otherwise it will throw an exception.

 

If ThisDoc.Document.DocumentType = documenttypeenum.kPartDocumentObject _
AndAlso ThisDoc.Document.ComponentDefinition.IsiPartFactory Then
	' Do stuff...
Else
	' Do other stuff...
End If