Activating model state with radio button in ilogic form

Activating model state with radio button in ilogic form

J.Oye
Advocate Advocate
192 Views
1 Reply
Message 1 of 2

Activating model state with radio button in ilogic form

J.Oye
Advocate
Advocate

I have created a simple part model that has 2 model states "GREEN" and "FINISH".  I have a user parameter with a multi-values list of GREEN and FINISH as well.  My ilogic form activates the appropriate model state depending on which multi value is selected.  Why do I need to click on green twice for the radio button to stay active as well as for the finish multi-value?  This is just a sample file of the same issue I'm having with a customer file.

0 Likes
Accepted solutions (1)
193 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

This is a relatively common issue that has been discussed within several other forum topics.  It has to do with each ModelState potentially having a different value for each Parameter.  And also has to do with the 'member edit scope' or 'edit factory scope' vs 'edit member scope' setting, which dictates whether the changes you make will effect only the 'active' ModelState member, or if it will effect all ModelStates.  If the edit scope is set to active member scope, then you change a parameter's value, that means you only changed that parameter's value in the active ModelState, but not in the other ModelStates.  So, when you use that action as a trigger to change which ModelState is active, it may activate another ModelState OK, but the newly active ModelState may have a different value for that Parameter that you just changed the value of, because the change was made to the previously active ModelState, not to the newly active ModelState.  To avoid this, set the edit scope to 'all members' or 'factory scope'...that way your parameter value changes will effect all ModelStates the same way, at the same time.  If that is not your goal, then it might not work for you.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes