Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
3052 Views, 3 Replies

(iLogic) Setting 'Design View Representation' for a specific subassembly

 

Very simple problem I'd say, but can't figure out how to do it:

I Want to control the 'Design View Representation' (named CD Draadmodel) of a specific subassembly (named 00001 - Main).

Thought something like the code below should work, but I'm not much of a programmer, and alas it doesn't work.

 

ThisApplication.ActiveDocument.ComponentDefinition("00001 - Main").RepresentationsManager.DesignViewRepresentation("CW Draadmodel").Activate

Does somebody know how to do this?