Hi all,
I don't suppose there exists a lisp or method other than PEDIT that would automatically delete vertices that are unecessary.
I have a set of plans that seem to have been drawn...interestingly.
A lot of polylines have these seemingly arbitrary vertices that break up longer straight lines.
Ideally I'd like something that would compare Vertex A, B and C, if they all share an X or a Y, remove Vertex B (assuming that A, B and C are sequential vertices on one Polyline) - perhaps with a way of adding an adjustable tolerance.
Tall order I know, but here's hoping someone finds this an interesting enough problem to solve!
Thanks for the read!
Hello from France
I am using since about 7 years a superb routine from Gilles (gile) - A french "crazy" developper !
The routine AVX_DVX runs on PLines : LW, 2D, 3D
Command: AVX to Add a VerteX
Command : DVX to Del/erase a VerteX
Thks to Gilles, Bye, Pat
Patrice BRAUD
My "long way 'round" method is to EXPLODE the polyline and then run the command OVERKILL which will find overlapping lines and delete them, and then I just PEDIT them back together.
1. Enter the EXPLODE command and select the Pline
2. Enter the OVERKILL command and when prompted to "select objects", enter P for previous objects.
3. When the OVERKILL dialog appears, click the OK button
4. Enter the PEDIT command and select one of the remaining lines
5. Enter J for Join...
6. When prompted to select objects to join, enter P for Previous, and press Enter and finish the command like you normally would
You can use the vlax curve functions to help you determine whether successive points fit on a particular curve or straight line according to a set of rules. It has worked for me. The first derivative is the slope. By comparing the slope of successive segments you can determine whether or not to eliminate the connecting vertex. The second derivative is the curvature at a point.
Hello
Sorry I haven't understand that you want eliminate many vertex on many plines (to simplify them) in one shot ! !
Have you an AutoCAD MAP or CIVIL around you because the MAPCLEAN command will do the job ?
Bye, Pat
Patrice BRAUD
a term you can search on is WEED.LSP, or Polyline simplification. There are probably a couple of hundred routines around that can do pline modifcations and strip out excess vertices.
And as was mentioned, MapClean is in Map3d and civil3d if you can get access to thoes.