The two end points could each be moved 5mm closer to each other, or 5mm closer to the center of the line.
A javascript script could be written...
Alignment for direction of line?...
For a line shorter than 10 mm, how much should be deducted?
- Brian
After some trials:
Make a helper line that is 5mm long, parallel to the line(s) to be shortened.
The start point and end point of the helper line yield the base point and offset point of the Move command, if used in the proper order,
in relation to the start and end points of the line to be shortened.
So some testing of which end of the line is the start, and which end has the ending point would be needed.
Scripts already exist to mark the start and end points of a line, but a new point should not be created. The ShowPoints command
shows the actual start and end points of the line, which are the type of points to be moved by 5mm, in the proper direction.
The move command does not depend ("does not care") on whether a point is the start of a line, or the end of a line. Just the direction to be moved by the proper amount, will matter, in this situation.
|