11-15-2024
01:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-15-2024
01:33 AM
I'm working on an assembly which contains an additional model state "PANEL_SCOPE" and i would like to update it once i update the "Primary" or the opposite (Update "Primary" when i work on "PANEL_SCOPE").
Thanks in advance
Solved! Go to Solution.
11-15-2024
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-15-2024
01:41 AM
HI!
I believe you can only edit one model state, or all model states, you can't select a few from the bunch to edit.
CCarreiras
11-15-2024
02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-15-2024
02:11 AM
Yes, i need to update all model states. I've only those 2 in the assembly
11-15-2024
03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-15-2024
03:36 AM
Ok, so it's simple,
If you want to edit all the members, you have to activate the Edit factory Mode Scope and have both pencils blue.
Manually:
A code to pass from Member scope to Factory Scope is and vice versa is:
- To change the active edit scope to edit member scope, depending on the needs, use:
ThisDoc.Document.ComponentDefinition.ModelStates.MemberEditScope = MemberEditScopeEnum.kEditActiveMember
or:
oDoc.ComponentDefinition.ModelStates.MemberEditScope = MemberEditScopeEnum.kEditActiveMember
- To change the active edit scope to edit factory scope, depending on the needs, use:
ThisDoc.Document.ComponentDefinition.ModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers
or:
oDoc.ComponentDefinition.ModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers
CCarreiras