Converting multiple splines to lines,
I’m looking for a lisp file that converts multiple splines to lines.
Thank you
Best
Jamal
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
@JamaL9722060 wrote:
Converting multiple splines to lines,
I’m looking for a lisp file that converts multiple splines to lines.
Hi Jamal,
you can't convert splines to lines, but you may convert splines to polylines (splinedit command) and then explode the polyline...
Is this what you need?
HTH
Henrique
Many thanks Henrique for the help
Best
Jamal
@JamaL9722060 wrote:
Many thanks Henrique for the help
Best
Jamal
You're welcome, Jamal.
"I’m looking for a lisp file that converts multiple splines to lines."
As a demo
(defun c:demo (/ hnd i ss) (if (setq ss (ssget "_:L" '((0 . "spline")))) (repeat (setq i (sslength ss)) (setq hnd (ssname ss (setq i (1- i)))) (command "_.splinedit" hnd "_P" "" "_.explode" "_L") ) ) (princ) )
HTH
Henrique
Very much appreciated Henrique. It works fine
Best
Jamal
@Anonymous wrote:
Works Great,m thanks so much for the LSP
You're welcome, dallasnyc!
Glad you've found it useful.
Henrique
Can't find what you're looking for? Ask the community or share your knowledge.