- Autocad Create Polyline From Lines
- Civil 3d Remove Vertices From Polyline
- Autocad Remove Vertices From Polyline To Line
The attached DWG contains a 3D Polyline with 4 vertices which 3 of them are on points and one of theme is not on point. I want remove this type vertices (that not on point) from a drawing which have somany 3D Polylines by this situation. Furthermore this most do by a LISP or VBA routine. Yes i am using civil 3D 2015 & AutoCAD 2012. By Virupaksha Aithal Below code shows the procedure to remove the user specified vertex of AutoCAD 3d Polyline. Code, first traverse through the vertices of the user selected 3d Polyline and prepares a list of vertexes to be erased.
I'm working in AutoCAD 2004. I have a drawing from another company with what are supposed to be lots contour lines. Before I received it someone turned the contour splines into polylines and then exploded them, leaving each 'contour' on the correct elevation, but made up of hundreds (and hundreds!) of tiny line segments. I need to turn these back into polylines and then remove vertices. Getting them into polylines with the pedit command is very time consuming, does anyone have an idea to streamline this task? Also, I have been unable to find a lisp routine that will remove vertices in V2004...any suggestions? Thanks!
Active2 years, 4 months ago
I have a polyline (lines only) which has about 500 points in it. I would like to reduce the number of points in it. How can I do it in AutoCAD? (or may be some other application)?
P.S. Polylines were made of splines converted into set of lines. But the level of detail is too high I want to decrease it.
gronostaj30.8k14 gold badges74 silver badges113 bronze badges
DmitriyDmitriy4114 gold badges7 silver badges21 bronze badges
6 Answers
This LISP script does the job. Create an LSP file and add it to AutoCAD, then use PLD command to run it.
DmitriyAutocad Create Polyline From Lines
Dmitriy4114 gold badges7 silver badges21 bronze badges
I wrote a utility call Reduce that does this. It is a compiled Autolisp fas file, which is run like a normal lsp file. You can download it here https://www.theswamp.org/index.php?topic=27724.0.
LernerLerner
Civil 3d Remove Vertices From Polyline
The lisp routine may be the best deal for you, but I use the overkill command to remove points from polylines (when the command is active, go to settings). It is an express tool that is usually used to remove duplicate lines but it works to optimize polylines. The one thing you need to be careful of is when your polyline has a width. Overkill will usually kill widths.
Cheers.
Ben JonesBen Jones
I have had this problem to and I usually just explode the polyline, then do an overkill and then join the remaining lines. I have 2014 LT so lisp routines wouldn't work for me. It was the only way that I could do it.
cdguy2121cdguy2121
If you have rhino, 'SimplifyCrv' works pretty well. Not sure how it functions, but I had a similar problem, and this command was able to lower the number of control points in a polyline beyond commands that come loaded with autoCAD.
HarryHarry
Please see image here:
This is a very good utility for PLine to reduce file size. But in above case, if 2 green points was deleted, the PLine become sharp (not tangent). Please consider about it.
![Remove Remove](/uploads/1/2/6/1/126185104/420618248.jpg)
1,2976 gold badges13 silver badges19 bronze badges
thuanthuan