Lisp help - lts before plot

Lisp help - lts before plot

M_c3d
Advisor Advisor
801 Views
1 Reply
Message 1 of 2

Lisp help - lts before plot

M_c3d
Advisor
Advisor

I'm trying to write a lisp to set the lts to 1 before plotting;

 

(command "_.undefine" "Plot")
(defun C:Plot () (ltscale;1;) (command "_.Plot"))

 

It does the lts part properly, but it says unknown command "PLOT"

 

Any ideas what I'm doing wrong? or if this is at all possible?

 

Thanks,

0 Likes
802 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant

Maybe like this? Not sure whether you want to have a dialog or not... 

 

(command "_.undefine" "Plot")

(defun C:Plot ()
  (setvar 'ltscale 1)
  (initdia) ; dialog?
  (command ".Plot")
  (princ)
)
0 Likes