iLogic InputBox remember

iLogic InputBox remember

Anonymous
Not applicable
629 Views
1 Reply
Message 1 of 2

iLogic InputBox remember

Anonymous
Not applicable

How can I write my code in such a way that my InputBox remembers the last setting?

Currently, I spawn my InputBox thus:

Screen_Opng_Height = InputBox("Screen Height", "Screen_Height", "30")

Parameter("Cover:1", "Screen_H") = Screen_Opng_Height

 

What I would like to do is substitute for the value "30" the current value of the model part parameter that uses this value, something like

 

Screen_Opng_Height = InputBox("Screen Height", "Screen_Height", (Parameter("Cover:1", "Screen_H")))

 

This way, when I have to run the rule again to tweak the model it is not being constantly reset to the default value in the InputBox statement.

Any ideas?

 

Thanks,

Mike

 

0 Likes
630 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk

The code you showed:

Screen_Opng_Height = InputBox("Screen Height", "Screen_Height", (Parameter("Cover:1", "Screen_H")))

should work. 

The last argument for the InputBox function is the default value.

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes