How do I add relative points to a sketch? (& bonus question: which way is up?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I think I've stumbled into a wrong corner - can someone please point me in the right direction?
I'm wanting to add many related points, so I can later-on draw a fit-point-spline around them:
for i in range(0,len(splinex)-1):
points.add(adsk.core.Point3D.create(splinex[i]*scale+nose_x, spliney[i]*scale+nose_y,0.0))
it occurs to me this seems wrong. I'm not telling it that all these are related to each other, like I mean them to be. They should all be "constrained" by being either "a set distance and angle away from each other" or by being "corners of a rectangle of dimensions delta-x and delta-y" - or however-else relative information is best added (suggestions?). In addition, the "last" point connects to the first to close the shape. My user also selects the first point (nose_x,nose_y) which anchors all that stuff into their sketch.
So, two questions:-
a) what am I supposed to be doing to add new points which are related to previous ones ?
b) how do I turn all these points into construction points instead of "real" points (there's a lot of them, and they look messy and pollute the results.)
And a third question for good luck...
c) on the off-chance that my user defined a sketch that's on some whacky odd-oriented plane, is there some easy shortcut I can use to place my 2-dimensional points onto that plan using just X and Y? Or, do I have to do all the translation/rotation math myself to work out the actual X,Y,Z and try to figure out which way the user means is "up" ?
Also worth keeping in mind - when I tried to "loft" between 2 of these, bizarreness resulted = fusion360 seemed to arbitrarily select a few points on each shape which were not opposite each other, resulting in a weird twisted mess - so anything I should be doing so the loft tool understands where stuff starts and ends would be worth knowing.