Goodmorning,
I'm configuring a band with different supports. Each support is configured with a range; 600-900, 900-1200, 1200-1500 etc. those ranges can be adjust by 50mm and those steps are specified by the pos reps (see attached image).
All the different supports are put in the top assembly and in this assembly I want to switch between the positional representations. I tried to use:
ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager.PositionalRepresentations("MyPosRep").Activate
But it won't work. I guess I have to replace "ComponentDefinition" in one way or another to the component name, but I don't know how.
I hope you understand my problem and you are able to help me!
-Mart
Make sure the sub assemblies are set to FLEXIBLE or the positional representations can't take effect.
Thank you so much for your reply!
Can I use "ThisApplication.ActiveDocument.ComponentDefinition
.RepresentationsManager.PositionalRepresentations("MyPosRep").Activate" after I've set the sub assembly to flexible?
I'm wondering how Inventor knows which subassembly I want to change without mentioning the name of the sub assembly in the ilogic rule. Or do I need to make sure the name of the pos representation is only used once?
Ik hope you understand!