What manipulator and associated CommandInput is this (from coil command)

What manipulator and associated CommandInput is this (from coil command)

adonno
Enthusiast Enthusiast
608 Views
3 Replies
Message 1 of 4

What manipulator and associated CommandInput is this (from coil command)

adonno
Enthusiast
Enthusiast

Trying to do something similar to what this manipulator does - any idea how I include one of these in my code?

 

adonno_0-1608409055979.png

 

In the coil command it is linked to a text entry box on the UI dialog that seems to be a ValueInput but that input object does not have a manipulator AFAIK. It's mouseover tooltip says SnapTo but I don't see anything like that in the UI documentation.

 

Thanks

Tony

 

0 Likes
609 Views
3 Replies
Replies (3)
Message 2 of 4

kandennti
Mentor
Mentor

Unfortunately, I think this is the only one that provides CommandInputs for dialogs.

http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8B9041D5-75CC-4515-B4BB-4CF2CD5BC359#IntegerS... 

 

If it were me, I would give up on the on-screen operations and use IntegerSliderCommandInput.

0 Likes
Message 3 of 4

adonno
Enthusiast
Enthusiast

Well that isn't good news. I actually like the onscreen stuff because it give you a good sense of what your changes do to the model, especially if the script uses a preview handler. I like to coarse adjust with the manipulators and then fine tune if necessary with the edit boxes. Any idea where I file a feature request?

0 Likes
Message 4 of 4

BrianEkins
Mentor
Mentor

That command input isn't exposed by the API.  I noticed there's also a similar one used for the Pattern command to control the number of instances in the pattern.  I like it better than the one the Coil command uses because it has a spinner control so it's easier to increment up and down instead of dragging the graphics widget or typing in.  But that one isn't exposed through the API either.  Probably the best one to use in this case is the IntegerSpinnerCommandInput.  It doesn't have a graphical widget though. 

 

The input with a graphical widget that's used the most is the DirectionCommandInput, and it is available in the API.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com