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

Hi @WCrihfield . thank you for sharing the code.

Compared to you, I'm probably just getting in the the iLogics and try to learn a bit from day to day :beaming_face_with_smiling_eyes:

 

I have a question / not to your code. In line 11 (elsif) you check wether it is a Part Document or an Assembly Document. Nevertheless you check both times for "oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject"

So it probably needs to ba a "kAssemblyDocumentObject" in line 11?