lisp for spline

lisp for spline

Anonymous
Not applicable
1,982 Views
2 Replies
Message 1 of 3

lisp for spline

Anonymous
Not applicable

Hi all,

I want to create a spline with degree. while i am trying directly in Autocad,

i entered  -     "spline"

then it showed    -   specify first point or [method degree object]:

 

but while using lisp as,

i entered - (command "spline")

then it showed  this only -  specify first point or [object] :

 

why degree option is not coming while am trying with lisp?? is there any other commands? pls help me.

 

thanks in advance.

0 Likes
Accepted solutions (1)
1,983 Views
2 Replies
Replies (2)
Message 2 of 3

j.palmeL29YX
Mentor
Mentor
Accepted solution

[EDIT]:

Before starting the spline command, set the Systemvariable SPLKNOTS, SPLDEGREE  and SPLMETHOD to the whished values.

 

cadder

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 3

dbroad
Mentor
Mentor

To answer your question, as AutoCAD continues to be tweaked and improved, it is important not to break existing code.  Somewhere along the way, the spline command was changed to add those options.  Although additional options don't necessarily break code, a consistent implementation of support for multiple command versions is good.  To allow this to occur, initcommandversion function was added. Try:

(initcommandversion 2)
(command "spline")

As I have told you before though, there is a forum for AutoLISP and you should be asking LISP questions there.

Architect, Registered NC, VA, SC, & GA.
0 Likes