I tried searching the forums but couldnt find a solution.
- I have a top level assembly (lets call it '01.iam', which contains a range of subassemblies (e.g. '02.iam', '03.iam' etc)
- The subassemblies have positional representations
- I want to be able to manipulate the pos.rep's from the top level using iLogic.
I found this snippet of code on the forum which works when I create the rule in one of the subassemblies.
But I'm having trouble adapting it to work from the top level, as I would like all my rules saved in one place.
Any help or information will be much appreciated,
Solved! Go to Solution.
You should be able to do it with the API method PositionalRepresentation.SetPositionalRepresentati
But maybe you don't need to set the subassembly posreps independently using code? If you want a subassembly to switch to MyPosRep when the top-level assembly is switched, you can tie them together manually. At the top level, while MyPosRep is active, right click on the subassembly and choose Representation... Select MyPosRep in the subassembly. Then the posreps will be tied together.
DLS - Mechanical Design
I have the same problem, but for me its not possible to tie the pos reps together. 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:
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!