GithubToFusion360 - Install script or add-in from Github repo automatically

GithubToFusion360 - Install script or add-in from Github repo automatically

JeromeBriot
Mentor Mentor
8,372 Views
17 Replies
Message 1 of 18

GithubToFusion360 - Install script or add-in from Github repo automatically

JeromeBriot
Mentor
Mentor

Hello,

here is a Python code that automatically install a Fusion 360 script (or add-in) from a Github repository. It works on Windows and on Mac. Watch the screencast attached to view the code in action (or see it there: http://autode.sk/2DMnEN9)

The script (or add-in) code must be in the root directory of the Github repo. The manifest file is also mandatory.

I attached a zip file with the Python code and the manifest file for the moment. So you need to manually install GithubToFusion360. But if people find it useful, I will submit this to the Autodesk app store (for free).

Waiting for your comments.

Thank you

8,373 Views
17 Replies
Replies (17)
Message 2 of 18

prainsberry
Autodesk
Autodesk

Yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! To you sir, I tip my hat.

 

I have been wanting to do something like this for a long time.  But haven't gotten around to it.  

 

How would you feel if we included this as 'sample code' in the product?  No guarantees, but I bet I can twist some arms to make it happen.

 

I already have some enhancement ideas 🙂 LOL

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 3 of 18

prainsberry
Autodesk
Autodesk

Yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! To you sir, I tip my hat.

 

I have been wanting to do something like this for a long time.  But haven't gotten around to it.  

 

How would you feel if we included this as 'sample code' in the product?  No guarantees, but I would make the case.

 

I already have some enhancement ideas 🙂 LOL

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 4 of 18

prainsberry
Autodesk
Autodesk

Hey man is there somewhere else you would want people to go for this?  I was going to link to it and re-write my install guides to just use this, but I'd like to point people to the proper place to reference your work.

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 5 of 18

JeromeBriot
Mentor
Mentor

Hello Patrick,

 

GithubToFusion works on Windows only for the moment because I recently found a problem with the version of OpenSSL used by Fusion 360 on Mac. See this thread: [Python] Outdated version of OpenSSL on Mac ?.

 

So I will first submit the addin to the Autodesk App store for Windows only. This will be done in a couple of days.

0 Likes
Message 6 of 18

JeromeBriot
Mentor
Mentor

Hello,

 

the script is finally available at the app store: Install scripts or addins from GitHub

 

Now I need to find a way to modifiy the first message of this thread to remove the zip file…

 

Thanks

0 Likes
Message 7 of 18

JeromeBriot
Mentor
Mentor

Hello,

 

I just found a potential bug in the add-in. I already submitted a fix but it may take time before it will be available in the app store.

 

The code may (misteriously) complain about "module 'urllib' has no attribute 'request'":

 

GitHubToFusion360-urllib-request-bug.png

If you face this issue, edit the file GitHubToFusion360.py and modify line #7 from:

import urllib

to:

import urllib, urllib.request

So it will force the module to import.

 

 

Screencast will be displayed here after you click Post.

0a2b9933-a1cb-4cae-9a7d-9a4c5092dc66

 

0 Likes
Message 8 of 18

JeromeBriot
Mentor
Mentor

@JeromeBriotwrote:

GithubToFusion works on Windows only for the moment because I recently found a problem with the version of OpenSSL used by Fusion 360 on Mac. See this thread: [Python] Outdated version of OpenSSL on Mac ?.


Hello,

 

I'm pleased to announce that GitHub2Fusion360 will be available on Mac soon!  Smiley Very Happy

 

I finally found a workaround to the SSL limitation. I spent hours trying to find a solution in Python without success. The version of Python shipped with Fusion 360 is linked against the outdated version of OpenSSL on Mac. The only way I found is to use a command system with the "subprocess" module (more informations in the thread quoted above).

 

Many thanks to all those who have already installed GitHub2Fusion360.

 

0 Likes
Message 9 of 18

JeromeBriot
Mentor
Mentor

Hello,

 

the Mac version of GitHubToFusion360 is now live on the app store!

 

 

Message 10 of 18

Igorva
Advocate
Advocate

Thank!

Very useful tool!

0 Likes
Message 11 of 18

JeromeBriot
Mentor
Mentor

Hello,

 

A new version 2.2.0 is available on the App Store (Windows & Mac)

 

I added a workaround to manage this bug: [Bug] NMachineSpecificOptions.xml not valid (prefix IronPostProcess-builtin) 

 

I also removed the workround for macOS:

 


The version of Python shipped with Fusion 360 is linked against the outdated version of OpenSSL on Mac. The only way I found is to use a command system with the "subprocess" module (more informations in the thread quoted above).

This was no more needed since the upgrade of the version of Python installed with Fusion 360.

 

Message 12 of 18

JeromeBriot
Mentor
Mentor

New version available (2.3.0) on the App Store (Windows & Mac)

  • Add ability to import sources located in a subfolder of the GitHub repo
  • Change prefix of temporary folder name from "F360_GitHub_" to "GitHubToFusion360_"
0 Likes
Message 13 of 18

Anonymous
Not applicable

You sir are a scholar and a saint. Thank you for making this!

0 Likes
Message 14 of 18

JeromeBriot
Mentor
Mentor

New version available (2.4.0) on the App Store (Windows & Mac)

  • Add support to "main" branch of GitHub repos ("master" => "main" in repo created after October 2020)
  • Fix a bug if repo is empty
  • Refactor some code
  • Fix some typos
0 Likes
Message 15 of 18

JeromeBriot
Mentor
Mentor
0 Likes
Message 16 of 18

JeromeBriot
Mentor
Mentor

New version available (2.5.0) on the App Store

  • Fix an issue with master/main branches for some repos

 

Message 17 of 18

JeromeBriot
Mentor
Mentor

New version available (2.6.0) on the App Store (Windows & Mac)

  • Add GitLab repositories support
  • Change the displayed name from "GitHubToFusion360" to "Git To Fusion"
  • Add support for French language
  • Add support for German language
  • Fix a bug with Turkish language

 

Message 18 of 18

jmpframce
Enthusiast
Enthusiast

HOW to get equqtion of a spline curve 

0 Likes