@Anonymous wrote:
Is the LWPOLYLINE and POLYLINE the same?
In Autocad we have two kinds of polyline objects.
Lwpolyline is a 2d polyline object that can have straight segments or arc segments, and it wasn't curved.
It is defined as a single object and it has all vertexes defined inside its definition.
Old style polyline is a complex object that has subelements defined separately as a Vertex objects. It can be 2d or 3d object that use smoothing (spline)....
Here is how lwpolyline is defined and here how polyline is defined. Polyline subelements are defined as
DXF definitions for all drawing elements are here
I have used lwpolyline definitions with function entmakex to create lwpolyline object.
When you start drawing a polyline it is created as lwpolyline (if not defined differently in with system variables).
If you are not interested about how acad handles its objects internally, then this two object are same. From a coder perspective those are two different object.
To find how some object is defined in a drawing you may use
(defun c:showsel () (entget (car (entsel "\nSelect drawing pobject >"))))
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.