Fusion 360 API: How to select a component with no command dialogue?

Fusion 360 API: How to select a component with no command dialogue?

mntruell
Explorer Explorer
871 Views
1 Reply
Message 1 of 2

Fusion 360 API: How to select a component with no command dialogue?

mntruell
Explorer
Explorer

The Xometry Fusion 360 plugin allows the user to select a component without seeing a command dialogue -- instead, the user only interacts with a palette.

 

How can I replicate this functionality in my own Add-in? I can't figure out how to do this with commands, because it doesn't look like you cannot create a selection command input without showing the user a dialogue.

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

boopathi.sivakumar
Autodesk
Autodesk

Hi @mntruell 

you can use ui.selectEntity 

selItem = ui.selectEntity("select the component","Occurrences")

 

Here is the documentation https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c05f97b8-9c8f-404b-8b21-f170d194ef8e

 

This will allow to select an entity without any ui


Boopathi Sivakumar
Senior Technology Consultant