Jorge Arango
08-20-2010, 01:23 PM
Unfortunately I don't have enough COFFEE knowledge to code it myself. This script would reorder the points in a messed up spline:
1. You select an open spline in point mode and select one of the end points.
2. The script converts this point to point zero. The command Set First Point doesn't always work. What I do manually, in the structure manager, is to select this point and drag and drop it to position zero.
3. It will search all the points and find the one nearest to point number zero and convert it to point 1 (move its position in the structure manager to 1).
4. It will search all the points except for number zero and find the one nearest to point number one and convert it to point 2.
5. And so on with all the points, excluding the points already reordered.
I know this won't work with some splines, for instance some zig zag splines but it would save me a lot of work in most cases.
I would use this with some splines that I get with the edge to spline command and sometimes with imported .dwg drawings.
Here is an example of a tangled spline:
1. You select an open spline in point mode and select one of the end points.
2. The script converts this point to point zero. The command Set First Point doesn't always work. What I do manually, in the structure manager, is to select this point and drag and drop it to position zero.
3. It will search all the points and find the one nearest to point number zero and convert it to point 1 (move its position in the structure manager to 1).
4. It will search all the points except for number zero and find the one nearest to point number one and convert it to point 2.
5. And so on with all the points, excluding the points already reordered.
I know this won't work with some splines, for instance some zig zag splines but it would save me a lot of work in most cases.
I would use this with some splines that I get with the edge to spline command and sometimes with imported .dwg drawings.
Here is an example of a tangled spline:
