2 Posts

Patch with Splines

77 Views, 2 Replies
12-18-2016 09:25 AM

I am trying to create a surface from a connected spline.  This works in the UI using the patch tool, but fails using the API.  Any ideas?  Here is an example:

points = adsk.core.ObjectCollection.create()

points.add(adsk.core.Point3D.create(0, 0, 0))

points.add(adsk.core.Point3D.create(5, 1, 0))

points.add(adsk.core.Point3D.create(7, 6, 6))

points.add(adsk.core.Point3D.create(2, 3, 0))

points.add(adsk.core.Point3D.create(0, 0, 0))

testSpline = sketchFront.sketchCurves.sketchFittedSplines.add(points)


patches = rootComp.features.patchFeatures

patchInput = patches.createInput(testSpline, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)



This fails with:

"Input curves are not on the same plane."



Autodesk Support
1184 Posts
331 Kudos
353 Solutions

Re: Patch with Splines

12-19-2016 12:13 PM in reply to: darinAZY43

I've reproduced the problem and have filed a defect.  Thanks for reporting this.

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

Re: Patch with Splines

12-19-2016 06:14 PM in reply to: ekinsb

Dang it!  I was hoping you would tell me I was doing something wrong.


Thanks for the quick reply.  Merry Christmas!