Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can we open the following dialogs using API?

1 REPLY 1
Reply
Message 1 of 2
navalkishor.sahKWL5T
231 Views, 1 Reply

Can we open the following dialogs using API?

Similar to the Render Settings Dialog

Ptr<CommandDefinition> commandDefinition = commandDefinitions->itemById("A360RenderCommand");
commandDefinition->execute();

 

If yes, from where can we get the list of commands to open Fusion 360 dialogs?

 

Create Nest Study.JPGProcess Material Library.JPG

1 REPLY 1
Message 2 of 2

Hi @navalkishor.sahKWL5T 

The commands are 

MSFNestCreateStudyCmd

MSF.MAGMatLibraryCmd.FusionNesting

You can write a script to know all the executable commands

app = adsk.core.Application.get()
ui = app.userInterface

cmds = [cmd.id for cmd in ui.commandDefinitions]  
print('\n'.join(cmds))

This should print all the command definition Id's


Boopathi Sivakumar
Senior Technology Consultant

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report