Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been searching to do this in various ways but nothing worked out.
What I want to do:
I have a bunch of sketch splines that I use to create a loft.
As guide rail I would like to make a spline going by point #5 of each of the sketch splines...
xYplane = design.rootComponent.xYConstructionPlane
sketch3dSplines = sketches.add(xYplane)
sketch3dSplines.name ="sketch3dSplines"
SplineRailPoints = adsk.core.ObjectCollection.create()
for loc in sections: # I have a dictionary indexing my sketch Splines
courbe = sketchsProfils[loc].sketchCurves.sketchFittedSplines.item(0)
sketch3dSplines.include(courbe.fitPoints(5))
SplineExPoints.add(sketch3dSplines.points(-1))
SplineEx = sketch3dSplines.sketchCurves.sketchFittedSplines.add(SplineExPoints)
This says that SkechPointList object is not callable... when I try to include the spline fitPoint 5 .
Adding without including isn't better.
I have also tryed to make a list of the points while creating the splines but then I get a curve all messed up in the xY plane and not at all what I expect...
Do I need to add some .geometry in this ?
Solved! Go to Solution.