Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I have created a plane along a spline like in the figure. Now I want to create a sketch on this plane. I create the circle in the plane and as the center of the circle I want specifically the point of the spline in corrspodence of which the plane has been created. I try to put zero but the code gives the result in the figure. The code that I wrote is this:
spline = sketchnurb.sketchCurves.sketchFittedSplines.add(points)
distance0 = adsk.core.ValueInput.createByReal(0.0)
planeInput.setByDistanceOnPath(spline, distance0)
plane0 = planes.add(planeInput)
sketchplane0 = rootComp.sketches.add(plane0) #PianoVALVE
circleplane0 = sketchplane0.sketchCurves.sketchCircles
circle01 = circleplane0.addByCenterRadius(adsk.core.Point3D.create(0,0,0), 0.85)
circle02 = circleplane0.addByCenterRadius(adsk.core.Point3D.create(0,0,0), 1.05)
profilo01 = sketchplane0.profiles.item(0)
profilo02 = sketchplane0.profiles.item(1)
I don't know what else to do. Can someone please help me?
Thanks
Ione
Solved! Go to Solution.