Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Converting multiple splines to lines,

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
JamaL9722060
13516 Views, 7 Replies

Converting multiple splines to lines,

Converting multiple splines to lines,

 

I’m looking for a lisp file that converts multiple splines to lines.

 

 

Thank you

 

Best

 

Jamal

---------------------------
Jamal Numan
7 REPLIES 7
Message 2 of 8
hmsilva
in reply to: JamaL9722060


@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

EESignature

Message 3 of 8
JamaL9722060
in reply to: hmsilva

Many thanks Henrique for the help

 

Best

 

Jamal

---------------------------
Jamal Numan
Message 4 of 8
hmsilva
in reply to: JamaL9722060


@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

EESignature

Message 5 of 8
JamaL9722060
in reply to: hmsilva

Very much appreciated Henrique. It works fine

 

Best

 

Jamal

---------------------------
Jamal Numan
Message 6 of 8
hmsilva
in reply to: JamaL9722060

You're welcome, Jamal
glad i could help

Henrique

EESignature

Message 7 of 8
Anonymous
in reply to: hmsilva

Works Great,m thanks so much for the LSP
Message 8 of 8
hmsilva
in reply to: Anonymous


@Anonymous wrote:
Works Great,m thanks so much for the LSP

You're welcome, dallasnyc!
Glad you've found it useful.

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report