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: 

Mathematically created line

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
codefoster
638 Views, 5 Replies

Mathematically created line

If a person wanted to create a line using a mathematical algorithm via the JavaScript API, how would that go? I'm thinking it would be hard, because it would not necessarily be a simple array of points run through the function, but would also have to be converted to a F360's line with handles and curves. Is there an elegant way to do this? I'm thinking of recreating the grooves in a project like [this].

 

5 REPLIES 5
Message 2 of 6
ekinsb
in reply to: codefoster

Mathemattically, a line is a straight segment between two points.  I think what you want is a curve.  You can create a spline through a series of points.  This is demonstrated in the sample in Fusion's help.  Here's a direct link:

 

http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/CreateFittedSpline_Sample.htm

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 6
codefoster
in reply to: ekinsb

Excellent. Thanks for the clarification and the link.

jf
Message 4 of 6
codefoster
in reply to: codefoster

Excellent. Thanks for the clarification and the link.
Message 5 of 6
wh6Q9NU
in reply to: ekinsb

Link seems to be broken. Any change I can access this example somewhere? Many thanks!

 

example link: http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/CreateFittedSpline_Sample.htm

Message 6 of 6
ekinsb
in reply to: wh6Q9NU

Try this link.  It's should take you to the same link referenced above.

 

http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-c3d4a306-fade-11e4-8e56-3417ebd3d5be


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

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

Post to forums  

Autodesk Design & Make Report