Uploaded June 2020 | Updated November 2026, 3 hours ago
Non Circular Gear with Fusion 360
How to draw non circular gears with a python script in fusion 360 and data from otvinta.
youtu.be/hcCCY7nvhy0
If you want to try :
Go to otvinta.com/noncircular
Write equation you want
Otvinta generates a script for blender
just copy data c, Points1 and Points2 generated
and place in script below then create a new script with that in fusion and enjoy.
#********************************************************************************
#********************************************************************************
#Author- K ETienne (data by OTVINTA)
#Description- insert data from otvinta and trace gears in a created sketch
import adsk.core, adsk.fusion, traceback
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
design = app.activeProduct
rootComp = design.rootComponent
sketch = rootComp.sketches.add(rootComp.xYConstructionPlane)
lines = sketch.sketchCurves.sketchLines
circles = sketch.sketchCurves.sketchCircles
############################################
### Insert here data C, Points1, Points2 ###
############################################
for i in range (0,len(Points1)-1):
lines.addByTwoPoints(adsk.core.Point3D.create (Points1[i][0],Points1[i][1]-C,0),adsk.core.Point3D.create (Points1[i+1][0],Points1[i+1][1]-C,0))
lines.addByTwoPoints(adsk.core.Point3D.create (Points1[i+1][0],Points1[i+1][1]-C,0),adsk.core.Point3D.create (Points1[0][0],Points1[0][1]-C,0))
circles.addByCenterRadius(adsk.core.Point3D.create(0,-C,0),1)
for i in range (0,len(Points2)-1):
lines.addByTwoPoints(adsk.core.Point3D.create (Points2[i][0],Points2[i][1]+C,0),adsk.core.Point3D.create (Points2[i+1][0],Points2[i+1][1]+C,0))
lines.addByTwoPoints(adsk.core.Point3D.create (Points2[i+1][0],Points2[i+1][1]+C,0),adsk.core.Point3D.create (Points2[0][0],Points2[0][1]+C,0))
circles.addByCenterRadius(adsk.core.Point3D.create(0,C,0),1)
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
#********************************************************************************
#********************************************************************************
important !
watch the video to get the right tabulation
it's essential !
---------------------------------------------------------------------
music by longzijun.
Non Circular Gear with Fusion 360
How to draw non circular gears with a python script in fusion 360 and data from otvinta.
youtu.be/hcCCY7nvhy0
If you want to try :
Go to otvinta.com/noncircular
Write equation you want
Otvinta generates a script for blender
just copy data c, Points1 and Points2 generated
and place in script below then create a new script with that in fusion and enjoy.
#********************************************************************************
#********************************************************************************
#Author- K ETienne (data by OTVINTA)
#Description- insert data from otvinta and trace gears in a created sketch
import adsk.core, adsk.fusion, traceback
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
design = app.activeProduct
rootComp = design.rootComponent
sketch = rootComp.sketches.add(rootComp.xYConstructionPlane)
lines = sketch.sketchCurves.sketchLines
circles = sketch.sketchCurves.sketchCircles
############################################
### Insert here data C, Points1, Points2 ###
############################################
for i in range (0,len(Points1)-1):
lines.addByTwoPoints(adsk.core.Point3D.create (Points1[i][0],Points1[i][1]-C,0),adsk.core.Point3D.create (Points1[i+1][0],Points1[i+1][1]-C,0))
lines.addByTwoPoints(adsk.core.Point3D.create (Points1[i+1][0],Points1[i+1][1]-C,0),adsk.core.Point3D.create (Points1[0][0],Points1[0][1]-C,0))
circles.addByCenterRadius(adsk.core.Point3D.create(0,-C,0),1)
for i in range (0,len(Points2)-1):
lines.addByTwoPoints(adsk.core.Point3D.create (Points2[i][0],Points2[i][1]+C,0),adsk.core.Point3D.create (Points2[i+1][0],Points2[i+1][1]+C,0))
lines.addByTwoPoints(adsk.core.Point3D.create (Points2[i+1][0],Points2[i+1][1]+C,0),adsk.core.Point3D.create (Points2[0][0],Points2[0][1]+C,0))
circles.addByCenterRadius(adsk.core.Point3D.create(0,C,0),1)
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
#********************************************************************************
#********************************************************************************
important !
watch the video to get the right tabulation
it's essential !
---------------------------------------------------------------------
music by longzijun.










