0 Members and 1 Guest are viewing this topic.
;;CADALYST 12/03 AutoLISP Solutions SPLINE-TO-PLINE.LSP;;(c) 2003 Tony Hotchkiss(defun spline-to-pline (/ i)
;;;CADALYST 01/06 Tip 2082: Spline2Pline2.lsp Spline to Polyline Conversion - Update (c) 2006 Cadalyst and Lloyd Beachy + narrator ;; Spline2Pline2.lsp (c) 2005 Lloyd Beachy + narrator;; Routine to convert splines to plines(Defun C:S2P2 (/ ss pt# cmdecho osmode clayer count ent lay lng pt-list cnt)
;|Try this snippet. What it does is step through the given spline at a given tolerance distance and pull a point off of the curve. It then adds that point to a running list. The snippet returns that list of points that you could then use to build your polyline.|;(vl-load-com) (defun Spline->Pline
Try FLATTEN (the best).
HiLook at the PLINECONVERTMODE sysvar.
Quote from: GP on January 13, 2014, 04:21:20 AMTry FLATTEN (the best).I tried flatten, and the attached image shows what it does. It seems to convert everything into lines, making the radiuses really jaged.