Using dropdown command inputs to alter the format of ui boxes

Using dropdown command inputs to alter the format of ui boxes

Anonymous
310 Views
0 Replies
Message 1 of 1

Using dropdown command inputs to alter the format of ui boxes

Anonymous
Not applicable

Hi,

 

A question about general program logic here. The standard Extrude feature in Fusion 360 asks the user to set a "Direction" for the Extrude feature. Depending on which option the user picks, the whole layout of the ui box changes. Is is possible to achieve something similar in a script?

 

The "SpurGear" script sample does someting similar by altering the required user inputs depending on whether they select an English or Metric Gear.

 

My thoughts are that the program must ether detect a change in this dropdown command input, or it must be looping to constantly read the value of this command input and re-drawing the ui. At present I can't think how I could implment either method. Any help would be appreciated.

 

spur1.pngspur2.pngextrude1.JPGextrude2.JPGextrude3.JPG

0 Likes
311 Views
0 Replies
Replies (0)