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: 

C++ Add In does not work

1 REPLY 1
Reply
Message 1 of 2
Anonymous
334 Views, 1 Reply

C++ Add In does not work

Anonymous
Not applicable

Hi, I'm trying to make run in my computer, with Windows 10 Pro operating system, an application that I downloaded from the fusion app store, specifically the application is called HerringBone Gear Generator and is written in C++, but as much as I try I don't know how to make it work.

Someone could help me?, thank you very much.

0 Likes

C++ Add In does not work

Hi, I'm trying to make run in my computer, with Windows 10 Pro operating system, an application that I downloaded from the fusion app store, specifically the application is called HerringBone Gear Generator and is written in C++, but as much as I try I don't know how to make it work.

Someone could help me?, thank you very much.

1 REPLY 1
Message 2 of 2
BrianEkins
in reply to: Anonymous

BrianEkins
Mentor
Mentor

The problem is that the add-in hasn't been updated for a couple of years.  The UI in Fusion 360 has changed and no button is being created for the command.  The add-in is being loaded and it's running, you just can't execute its command.  If this is important to you, you should contact the author.  They're the only ones that can update it.

 

Here's a workaround to run the command.

  1. Make sure the "TEXT COMMANDS" palette if visible.  If it's not, in the File drop-down in the upper left of the Fusion window, choose "View" at the bottom of the list and select "Show Text Commands".  The TEXT COMMANDS window should now display.
  2. Make sure the radio button at the lower-right of the TEXT COMMANDS window is set to "Py".
  3. Enter the following line in the bottom portion of the TEXT COMMANDS window and hit return.
    from adsk.core import *
  4. Enter this line and hit return.
    app = adsk.core.Application.get()
  5. Enter this line and hit return.
    app.userInterface.commandDefinitions.itemById('Herringbon-Gear').execute()
  6. You should now see the dialog for the herringbone gear appear.  To run the command again, you can use the up arrow to get the line above and press enter.
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

The problem is that the add-in hasn't been updated for a couple of years.  The UI in Fusion 360 has changed and no button is being created for the command.  The add-in is being loaded and it's running, you just can't execute its command.  If this is important to you, you should contact the author.  They're the only ones that can update it.

 

Here's a workaround to run the command.

  1. Make sure the "TEXT COMMANDS" palette if visible.  If it's not, in the File drop-down in the upper left of the Fusion window, choose "View" at the bottom of the list and select "Show Text Commands".  The TEXT COMMANDS window should now display.
  2. Make sure the radio button at the lower-right of the TEXT COMMANDS window is set to "Py".
  3. Enter the following line in the bottom portion of the TEXT COMMANDS window and hit return.
    from adsk.core import *
  4. Enter this line and hit return.
    app = adsk.core.Application.get()
  5. Enter this line and hit return.
    app.userInterface.commandDefinitions.itemById('Herringbon-Gear').execute()
  6. You should now see the dialog for the herringbone gear appear.  To run the command again, you can use the up arrow to get the line above and press enter.
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com

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

Post to forums  

Autodesk Design & Make Report