(command "spline") vrs command line "spline"

(command "spline") vrs command line "spline"

martin.mardikas
Enthusiast Enthusiast
208 Views
2 Replies
Message 1 of 3

(command "spline") vrs command line "spline"

martin.mardikas
Enthusiast
Enthusiast

Hi!

I try to write .lsp routine and use command(command "._spline"). But it seems to run a bit differently if I run spline command in AutoCAD command line.

What seems to be the difference.

0 Likes
209 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

That's very common.

The LISP version is usually an older version of the current AutoCAD version.

In LISP you can usually use (initcommandversion) predecessor to enforce the current AutoCAD version. 

 

(progn (initcommandversion) (command-s "spline"))

0 Likes
Message 3 of 3

martin.mardikas
Enthusiast
Enthusiast

Thank you, that works!

0 Likes