iLogic: Inventor not recognizes option selected in Forms

iLogic: Inventor not recognizes option selected in Forms

ceflamarion
Participant Participant
594 Views
3 Replies
Message 1 of 4

iLogic: Inventor not recognizes option selected in Forms

ceflamarion
Participant
Participant
Hello friends! Happy new Year for all of you! It´s my first time that I ask for help in the Autodesk Community. I´m a beginner in iLogic, and I´m not getting solve a simple problem with my Rule. Aleays that I change the selection "MODO" ("D e i" instead of "Z1 e Z2" and vice-versa), I need run one more time for the rule sense the changing.. when the right is run one time. What´s going wrong?? Many thanks in advance!!!! C.E. Flamarion São Paulo, BR Below the programming.... -------------------------------------------------------------------------- iLogicForm.Show("FLAMA-GEARS", FormMode.Modal) If MODO = "D e i" Then iLogicForm.Show("D e i", FormMode.Modal) End If If MODO = "Z1 e Z2" Then iLogicForm.Show("Z1 e Z2", FormMode.Modal) End If ----------------------------------------------------------------------------
0 Likes
Accepted solutions (1)
595 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support

Hi there,

 

Happy New Year.

One thing that seems to work is getting an up-to-date value using Parameter("MODO")

'-------------------------------------------------------------------------- 
iLogicForm.Show("FLAMA-GEARS", FormMode.Modal) 

' Get the latest value of MODO
MODO = Parameter("MODO")

MsgBox(MODO)

If MODO = "D e i" Then 
	iLogicForm.Show("D e i", FormMode.Modal) 
End If 

If MODO = "Z1 e Z2" Then 
	iLogicForm.Show("Z1 e Z2", FormMode.Modal) 
End If 
'----------------------------------------------------------------------------

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 4

ceflamarion
Participant
Participant
Accepted solution
Hello Adam T¨hanks to help me! I tested and it really solved the problem. Now I run the rule just one time and the updating is beeng done right. Thank you very much Flamarion
0 Likes
Message 4 of 4

ceflamarion
Participant
Participant
Hi Adam I observed an other problem with this rule - when I select "D and I" and the rule open the associated form (" D e i"), I can get no change the value of these variables - the form no accepts an other value, and the actual value (registered in Parameters) remains unchand. May give me a hand?
0 Likes