CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 6241 

CAD tip CAD tip # 6706:

Question CAD 
 %  platform  category 
Q - question

What is the maximum number of vertices in AutoCAD polylines?

A - answer The number of polyline vertices (in a Polyline, LWpolyline, 3Dpolyline, Spline) is not limited in AutoCAD, you can use any practical number of polyline nodes (vertex). So you can create and edit curves with more than 100.000 vertices.

With such extremely large polylines, you have to count with slower response in some operations (e.g. displaying grips on grip-editing).

You can try yourself the following AutoLISP code:

(setq x 0 y 0)
(setvar "CMDECHO" 0)
(command "_PLINE")
(repeat 100001
 (command (list x y))
 (setq x (+ x 1.0) y (+ y 1.0))
)
(command "")
(setvar "CMDECHO" 1)
(vl-load-com)
(vlr-beep-reaction)

For comparison: the maximal number of polyline vertices is limited to 101 in the DGN V7 format, and to 5.000 points in the DGN V8 format.

ACAD2010ACAD2009LTADTMap
100% *  CAD 
27.5.2009    8654×  
Comments   Tell a friend

See also:
Tip 11751:toMulti converts polylines to multi-lines driven by a definition table.
Tip 11727:Animated drawing of a curve shape in AutoCAD.
Tip 11720:How to export unfolded sheetmetal parts in Fusion 360?
Tip 11074:How to convert a 2D polyline to 3D or vice-versa?
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)


Back   All CAD Tips All CAD tips&tricks

How to remove unwanted references to .DXE files? « | » Simply create points or polyline from coordinates in Excel.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist