- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
A while back I added an iLogic rule to toggle edit scope anytime I open(triggers after open) a part or assembly. The rule works great in a single part or an assembly.
However, sometimes I get an error when opening assemblies that are populated with a lot of parts and sub-assemblies.
The code is:
Dim oDoc As Document = ThisDoc.Document oModelStates = oDoc.ComponentDefinition.ModelStates If oModelStates.MemberEditScope = MemberEditScopeEnum.kEditActiveMember Then oModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers End If
The error is this:
When I click ok, it pops up the next one until it cycles through all and then the assembly works fine.
The error appears to only be for documents that are using two different model states. The part template has two models states but if they are not different than the primary, it does not seem to cause the error.
Any ideas as to how to make this not cause the error, or to suppress the error?
Please keep in mind I am not a coder...this is all new to me but quite useful.
Thanks, Steven
Solved! Go to Solution.