Autocad Reduce Vertices Polyline

Use Weed Polylines to add and remove vertices on 3D polylines. This is helpful to control the drawing file size and contour appearance, or to remove redundant information.

2017-3-2  Simplifying Polygons and Polylines The Simplify Polys command simplifies one or more 2D polygons, 3D polygons, and polylines by reducing the number of corner vertices. This operation can reduce the file size and shorten processing time while having a minimal effect on the shape of the polygons/polylines themselves. Reduce the # of vertices in a polyline - again - posted in GIS: I have seen discussion about reducing the number of vertices in a polyline and the suggestions usually are to generalize by simplifying or smoothing via ToolboxGeneralization. That does not reduce the number of vertices. It only reshapes the lines (all polylines in the selected shapefile by the way). 2016-2-8  Use Weed Polylines to add and remove vertices on 3D polylines. This is helpful to control the drawing file size and contour appearance, or to remove redundant information. Enter Weeding Factors and Supplementing Factors to determine if a vertex should be added or removed from the 3D polyline. 2018-5-24  Hello everyone. I was wondering if there is a way or a lisp command that reduces vertices of curved polylines. When i say a 'curved polyline' i mean a polyline that has two segments that are arcs with the same radius, and if i explode that polyline and join it again, those two or more segments/arcs, just become one.

Reduce

Enter Weeding Factors and Supplementing Factors to determine if a vertex should be added or removed from the 3D polyline.

Weeding Factors

Use Weeding Factors to reduce the number of points generated along 3D polylines. Weeding factors ignore vertices that are closer together than the Distance factor and that deflect less than the Angle factor. A larger distance and deflection angle weeds a greater number of points. The distance factor is measured in linear units and the angle factor is measured in angular units.

Weeding Factors must be less than Supplementing Factors.

A point on the 3D polyline is weeded by calculating its location in relation to the vertices before and after it. If the length between these three points is less than the weeding length value, and the deflection angle is less than the weeding angle value, then the middle point is not added to the contour data file.

Supplementing Factors

Use Supplementing Factors to supplement or add vertices along 3D polylines. The supplementing distance is the maximum distance between vertices. If the distance between vertices on a contour is greater than the Supplementing Factors, then points are added along the contour at equal intervals that are less than or equal to the supplementing distance. The smaller the distance, the greater the number of supplemented points.

Bulge

For curves, the bulge value is a ratio of the distance from the arc to the chord divided by half the length of the chord. The bulge factor adds vertices to a polyline curve, creating an approximation of the curve using straight line segments. The length of these segments varies depending on the bulge factor and the degree of curvature.

  • Run Weed Polylines individually. If you run it with other operations, it will always be run before other actions, regardless of its position in the list. In addition, it will only be run once, regardless of how many times it is listed.
  • Weed Polylines is not an interactive operation. AutoCAD Map 3D makes the changes automatically during cleanup.
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.

gronostaj
30.9k14 gold badges74 silver badges113 bronze badges
DmitriyDmitriy
4114 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.

Autocad Reduce Vertices PolylineDmitriyDmitriy
4114 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

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

How to open udf file. 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.

Pierre.Vriens
1,2976 gold badges13 silver badges19 bronze badges
thuanthuan

Autocad Polyline Width

Not the answer you're looking for? Browse other questions tagged autocad or ask your own question.