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)
patches.add(patchInput)
This fails with:
"Input curves are not on the same plane."
I've reproduced the problem and have filed a defect. Thanks for reporting this.
Dang it! I was hoping you would tell me I was doing something wrong.
Thanks for the quick reply. Merry Christmas!
I just ran your code and worked fine for me and producted this:
I guess this has been fixed now.
Anyway, thankyou for proving an example of how to use multiple points to create a patch.