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

I never thought to look in the drawing view. To pick up the model state name to set active you will need to loop through the assembly/part model state table and generate the list you want and pick one to set active. Much like you would do for design view reps. You can pick up the model document from the 

oView.ReferencedDocumentDescriptor.ReferencedDocument

 And your first post is looping through the table. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan