- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I expected the following Python code to create a spline, using three points, to completely lie in the YZ plane:
splPoints = adsk.core.ObjectCollection.create()
# Define the points the spline with fit through.
splPoints.add(adsk.core.Point3D.create(0, -2.5, -5.0))
splPoints.add(adsk.core.Point3D.create(0, 0, 0))
splPoints.add(adsk.core.Point3D.create(0, 7.5, 5.0))
splOne = sketchYZ.sketchCurves.sketchFittedSplines.add(splPoints)
I was surprised to find that the points are on the XY plane. Is there anything I am doing wrongly? Point3D arguments are supposed to be (x,y,z) coordinates, are they not? If the values of x is constant in all points, does that not necessarily constrain the spline to YZ plane? I cannot recognize the spline I am getting.
Solved! Go to Solution.