08-04-2023
10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-04-2023
10:30 AM
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