Hello everybody! I made some modification to a lisp of @Tharwat found on this forum (thank you Tharwat!). The modifications I made are: to add a number before each pair of coordinates (starting with a chosen number) and also to save the file automatically near the DWG with some suffix (not to open a "save as" window).
I would be grateful if anybody could help me with some new modifications:
1. To add 2 new lines at the end of the txt file: polyline area and polyline perimeter.
2. To add a column with the distance between the points
So now the output is
1,Y,X
2,Y,X
...
n,Y,X
And I would like it to be:
1,Y,X,32.76 *distance between 1 and 2
2,Y,X,35.89 *distance between 2 and 3
...
n,Y,X,50.65 *distance between n and 1
Area=500
Perimeter=200
Numbers are random. DWG should be saved for the lisp to work.
I am using ProgeCAD so some functions may not work (though 90% do) so the simplest solution (with the most basic functions) would be best.
Thank you in advance!
exppl.lsp