Several routines he downloaded from the Internet claimed to perform this function, but all failed to set the z coordinate to zero.
Thanks for hunter x hunter episode 70 the catch!
"Line (progn ; added (setq f 22 raptor game kickass lineno (sslength SS1) (setq count 0) (setq plinfo (ssadd) (repeat lineno (progn (setq ENT (ssname SS1 count) (setq edata (entget ENT) (setq PT1 ( cdr (assoc 10 edata) (setq PT2 ( cdr (assoc 11 edata) (command "Pline" PT1 PT2 (ssadd.George Anderson of Eugene, Oregon, e-mailed a request to turn 3D polylines into 2D polylines.Code: (defun c:3DP 2DP oldvar1 count lineno NO SS1 SS2 ENT edata PT1 PT2) (command ".undo" "Mark (setq old_plinetype (getvar "plinetype (setvar "plinetype" 0) (setq oldvar1 (getvar "cmdecho (setvar "cmdecho" 0) (if (setq SS2 (ssget "X" ' (100.(setq ss (ssget "X".) A better lisp solution would be to walk each 3D Polyline entity, scoop up the coordinates, erase it, then remake a 2D polyline in its place at the desired elevation.You also fail to account for the setting of peditaccept.
I need to convert these to 2D Polylines.
In the case of other complex entities (mline, spline, text, etc.) that you may want to "explode" or "flatten then the wmfin/OUT trick will work.
Thats all for today if you havent already subscribed to my blog, join the other 340 who have!automatic contour label for AutoCAD.Therefore historically there have not been native commands to convert between the polyline types.After you load the program, AutoCAD prompts you to type PL32 to start.It can be confusing because the LWPolyline and the old Polyline entity used way back supreme commander 2 patch 1.4 in the early days of AutoCAD are both shown as a Polyline in the Properties window.No need to export/import.After you bring the entities back with wmfin, you can use._pedit to join them all back up in one swoop.Reply With", 02:57 AM #6 Re: How to convert 3D Polylines to 2D Polylines The main problem is when I explode 20,000 3D polylines, Autocad converts them to over 200,000 smaller lines and then that creates a huge drawing file and takes forever to join.2000 polylines in 8 minutes.Reply With", 11:03 PM #2, re: How to convert 3D Polylines to 2D Polylines.Note that the 2D polylines retain their layer dependence.