View Full Version : convert Spline to Polyline
Beadin Sabovic
3rd Jun 2004, 06:18 pm
Hi everyone,
How can I convert Spline to Polyline.
Thank you :lol:
David Bethel
3rd Jun 2004, 06:34 pm
1 way is to DXFOUT in R12 format the selcted object, and then DXFIN the file. -David
Beadin Sabovic
3rd Jun 2004, 07:21 pm
Thank you David for replay,
I did dxfout and dxfin but I still can not convert my spline to polyline.
tlyall
3rd Jun 2004, 07:29 pm
QUOTE FROM THE DOTSOFT FAQ
The new SPLINE objects introduced in R13 are nice, but there are limits on what you can do with them. So conversion to a polyline is necessary. Carefully erase all the geometry except for the splines, then save the drawing in R12 DWG (A2K users use R12 DXF) format. Then open the original drawing, erase the splines and insert the R12 file. The spline will now have become polylines. If the splines had differing elevations on the vertices, the resulting polyline will be a 3D polyline.
Or you could try this link and scroll down til you see the program with this text description
http://www.dotsoft.com/freestuff.htm
Converts a selection set of splines to polylines inside the drawing. No more hoops with DXF files in R12 format.
HTH....
David Bethel
3rd Jun 2004, 08:17 pm
Ot you could use:
(defun massoc (key alist / x nlist)
(foreach x alist
(if (eq key (car x))
(setq nlist (cons (cdr x) nlist))))
(reverse nlist))
(defun c:spl2pol (/ en ed pl)
(setq en (ssname (ssget '((0 . "SPLINE"))) 0)
ed (entget en)
pl (massoc 10 ed))
(command "_.PLINE")
(foreach p pl
(command p))
(command "")
(command "_.CHPROP" (entlast) "" "_LA" (cdr (assoc 8 ed)) ""
"_.PEDIT" (entlast) "_Spline" "_X")
(entdel en)
(redraw (entlast))
(prin1))
-David
Beadin Sabovic
4th Jun 2004, 01:06 pm
Thank you all.
T@T
25th Jan 2005, 04:55 am
Thanks all, useful thread ;) :wink:
BEKA
1st Feb 2005, 04:12 pm
Hi,
I apology that I am late.
I downloaded SPL2PL.VLX
My question is: What should I do with file SPL2PL.VLX.
Where to place this file.
Thank you very much.
giskumar
13th Jan 2011, 03:40 am
Hi,
You just type the upload command in autocad command prompt.
browse the sp2pl.vlx, hit load and close.
Then type "spl2pl" command to run this command.
Thanks,
Kumar.
Cad64
13th Jan 2011, 03:46 am
FYI: this thread is 6 years old. :wink:
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.