Running iLogic rules within model states
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to run rules (that change parameters) within sub assemblies / components that contain model states. I found that in order to do so where I'm launching the rule needs to be the only document open. All sub components need to be closed.
But if the rule was to run with a sub component open I find that it breaks the model. Specifically a sub component with model states. What I mean by breaks the model is that, it wont run the rule for that component since the model is open but even after the sub component model is closed when immediately trying to run the rule again the sub component will not update.
I found that using
ThisDoc.Document.Save2()
within the code helps, but its not perfect. Anyone know how to keep to lower level assemblies/components that contain model states from breaking when running code?