


# WARMING: Using more than a few hundred points may cause your system to hang. SplinePoints = 100 # Number of points that splines are generated. StartRange = 0 # Start of range to be evaluated.ĮndRange = 2*math.pi # End of range to be evaluated. Points = () # Create an object collection for the points. # Get the root component of the active design. Import re, adsk.fusion, adsk.cam, traceback, math Refer to the following example python script to suit your need which can be found here. Get acquainted with the basics of how to use the API by watching the following short video from the Autodesk Design Academy channel.Ģ.To do so we can follow a few simple steps:

Which when plotted over range 0 to 6.3 (2pi) (spreadsheet here) looks like the following: For example, how would you sketch a line along the following equation This is useful when you need to produce a specific, mathematically correct curve that can not be formed easily from primitive geometric shapes. In this tutorial we will be using the API in Fusion 360 to sketch a curve using an equation in both 2D and 3D. This is a powerful tool which is useful for automating repetitive tasks and writing add-ins like those you will find on the Autodesk app-store. The Fusion 360 API ( Application Programming Interface) allows you to control the functionality of Fusion 360 by wiring code rather than directly through the graphical interface. This tutorial details how you can get similar functionality using the Fusion 360 API. The ability to sketch an equation curve is available in Autodesk’s more professional (and expensive) CAD product, Autodesk Inventor, but is missing from Fusion360’s.
