Update parameter, using iLogic, in all modelstates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This seems like a silly question. But I'm moving from Inventor 2021 to Inventor 2023. And now I have to deal with model states. For my generator, I have many documents with even more iLogic rules. And all of them update parameters like this:
Parameter("test") = 123
Many assemblies have 2 "Levels of details", which get converted to model states. (The parameters in those model states need to be the same. I need to keep the same functionality as the "Levels of details".)
And that works if the "edit scope" is set to "All model states". But users can change that and of course, there are legit reasons for that. (That is the point of "Levels of details" and model states.)
I know that I can solve this with 1 line of extra code like this:
ThisDoc.FactoryDocument.ComponentDefinition.ModelStates.MemberEditScope = MemberEditScopeEnum.kEditAllMembers
So here is the real problem.
- I don't like this very long line of code.
- I would like something simple as: ThisDoc.EditAllModelStates()
- Or better no code at all just a setting in the iLogic form...
- I have to do a lot of rework on my generator models.
Is there some setting that I did not find or has someone else found a solution for a similar problem?
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com