How to set pos rep and view reps with iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In my assembly, I have several positional reps and view reps that need to be paired with each other. For instance, when the positional rep "11th Bend" is active, I need to have "11th Bend" view rep also active. I know how to set this up so I can use an iLogic form... only if I had a way to capture the current state of the view rep and positional rep. I don't see a way to capture this, so the next step is the code that turns view view/pos reps on and off. Done some searching and found the
Here is the rule that I have, but it doesn't work. I get an error that says something like...."Member on found..."
'This rule determines which bend position and which part is visible
If Bend_Number = "11" Then
'make view rep named "11th Bend" active
'make the pos rep named "11th Bend" active
ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager.PositionalRepresentations.Item("11th Bend").Activate
End If
Can someone tell me the line of code that will turn on/off the view reps and the positional reps?
Thanks