How to explode a spline or convert to polyline
How to explode a spline or convert to polyline
(OP)
I need to export a spline into another software package that cannot read a spline. Is it possible to convert the spline to a polyline? AutoCAD will not allow me to explode the spline either. Suggestions? Thanks,





RE: How to explode a spline or convert to polyline
"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
RE: How to explode a spline or convert to polyline
"flatten", by Express Tools 1-9
Lothar
ADT 2004
ACAD 2002
RE: How to explode a spline or convert to polyline
RE: How to explode a spline or convert to polyline
RE: How to explode a spline or convert to polyline
"spl2pl.vlx"
RE: How to explode a spline or convert to polyline
devitg@ciudad.com.ar
Pardal
RE: How to explode a spline or convert to polyline
RE: How to explode a spline or convert to polyline
(defun C:SPLINE2PLINE (/ SPLINES PLINETYPE OSMODE I SPL ED CODEPAIR)
(if
(setq SPLINES (ssget (list (cons 0 "spline"))))
(progn
(if
(zerop (setq PLINETYPE (getvar "plinetype")))
(setvar "plinetype" 1)
) ;if
(setq OSMODE (getvar "osmode"))
(setvar "osmode" 0)
(setq I 0)
(while
(setq SPL (ssname SPLINES I))
(setq I (1+ I)
ED (entget SPL)
) ;setq
(command ".pline")
(foreach
CODEPAIR
ED
(if
(= 10 (car CODEPAIR))
(command (cdr CODEPAIR))
) ;if
) ;foreach
(command "")
(command ".pedit" "l" "s" "")
) ;while
(if PLINETYPE
(setvar "plinetype" PLINETYPE)
)
(setvar "osmode" OSMODE)
) ;progn
) ;if
(princ)
) ;defun
"Everybody is ignorant, only on different subjects." — Will Rogers