#1
|
||||
|
||||
Need a little Lisp help.
Hello All,
I am trying to resurrect some old lisp code in Modeling 16.50 and for all intended purposes the code works accept when I try to change the type of entity I would like to pick. The code is to do a Measure 2 Points in a certain Direction or Axis. If I invoke the command from another dialog let's say the Extrude command and then pick two points either 3D or 2D it puts the results in the Distance box just fine, but if I try to do a Crtl+Shift Left Mouse to grab a Center point of change the selection in the Catch Menu the command errors out and ends. Could someone else take a look at the code and tell me what I missed. Code:
(defun ges-measure-u () (put-buffer (sd-num-to-string (sd-sys-to-user-units :length (getres (progn (set_pers_context :none) (measure_dist :between_points :interactive :interactive :direction :u))))))) Thanks. Thom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|