how to create a nurbs2d curve into sketch?

how to create a nurbs2d curve into sketch?

2022282210229
Participant Participant
575 Views
4 Replies
Message 1 of 5

how to create a nurbs2d curve into sketch?

2022282210229
Participant
Participant

There is a nurbscurve2d.createrational method,but no funtion to add it into sketch,does anybody know how to

achieve it,thank you very much!!!

0 Likes
Accepted solutions (1)
576 Views
4 Replies
Replies (4)
Message 2 of 5

kandennti
Mentor
Mentor

Hi @2022282210229 .

 

All elements in the sketch must be 3D.

If they are NurbsCurve3D, they can be included in the sketch using the SketchFixedSplines.addByNurbsCurve method.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-EA5FBD51-ED6F-4D04-83B2-D72A384BC6DA 

0 Likes
Message 3 of 5

2022282210229
Participant
Participant

thanks for your reply,i see that 3d nurbs curve is unable to be modified in fusion 360,do you have solotion to solve it?thank you very much!

0 Likes
Message 4 of 5

BrianEkins
Mentor
Mentor
Accepted solution

What is it that you're trying to do? After creating a SketchFixedSpline you can use the replaceGeometry method to update it with a new NURBS definition.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 5 of 5

2022282210229
Participant
Participant

i want to create a editable nurbs curve through code,now i have realized it!  thanks  for your reply!!

0 Likes