
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In these days I'm posting a lot of questions, but I'm learning... Anyway I always try to find previous related questions and I check the documentation.
I'm trying to understand how to draw lines, points and spline in a sketch and I found this example which I "cut" just after line 30. So this is my last line:
spline = sketch.sketchCurves.sketchFittedSplines.add(points)
I'm wondering why these points are considered as they were in cm, as the result I get is this one:
And the selected point was the second one, this in the code:
points.add(adsk.core.Point3D.create(5, 1, 0))
Next step I tried was divide by 10, and I got the expected result. I suppose it works in cm, but I didn't find any reference in the documentation.
Then I tried to draw the spline in sketches based on different Reference planes; instead of
sketch = rootComp.sketches.add(rootComp.xYConstructionPlane)
I tried
sketch = rootComp.sketches.add(rootComp.xZConstructionPlane)
and
sketch = rootComp.sketches.add(rootComp.yZConstructionPlane)
Ok, in both these case I completely didn't understand the result and I can't figure out how does it work.
Any suggestions?
Thanks
Luca
Solved! Go to Solution.