Skip to content

Instantly share code, notes, and snippets.

@arnaudin
Created February 23, 2016 22:44
Show Gist options
  • Save arnaudin/1de4d7ad0292efe585e5 to your computer and use it in GitHub Desktop.
Save arnaudin/1de4d7ad0292efe585e5 to your computer and use it in GitHub Desktop.
Fusion 360 script template
Import adsk.core, adsk.fusion, traceback
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
ui.messageBox('Hello script')
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment