Script Example request

Script Example request

Anonymous
Not applicable
615 Views
2 Replies
Message 1 of 3

Script Example request

Anonymous
Not applicable

Hay Guys,

Wanted to ask you how to make command Isolate and put it into toolbar? Using javascript?

So I'll have button Isolate on toolbar.

Could you pleas make simple examples for me pleas!

Thank you.

0 Likes
Accepted solutions (1)
616 Views
2 Replies
Replies (2)
Message 2 of 3

zhijie.li
Alumni
Alumni

Do you mean to add command named "Isolate" to toolbar or add button which is separated from other toolbar items?

 

For how to add a command to toolbar, you can refer to add-in sample "AddInSample" which add a simple command to toolbar (how to find it: click menu item "File" -> click button "Scripts and Add-Ins..." -> click tab "Add-Ins", you will find it under the folder "Sample Add-Ins").

0 Likes
Message 3 of 3

ekinsb
Alumni
Alumni
Accepted solution

It is possible to use the API to add the Isolate command to a toolbar but I'm not sure that would make sense because the command is context sensitive.  For it to work correctly you will first have to select the components you want to isolate and then run the command.  Having the commands available in the context menu for a component would seem to be more logical.  Then it also displays the appropriate command (Isolate or UnIsolate) based on the current state of the model.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes