Display full version of the post: Remember the last value. one of the methods.

lijinsong
06.12.2014, 19:06
; 1  first To modify variable values on the command line. (vla-setvariable docu "users1"5); 2 load this(defun c:y()   (setq obj      (vlax-get-acad-object)         docu       (vla-get-activedocument obj)         vardata  (atof (vlax-variant-value                                  (vla-getvariable docu "users1")                                 )                        )   )   (vla-sendcommand docu vardata));3 Type Y transparent operation command. then can use 'y in all command.;Transparent command(vlax-add-cmd " 'y " 'y)

John Connor
07.12.2014, 21:37
Of what use is this?It would be helpful if you explained what your lisp routine is supposed to do and give a real world example of the routine in use.  A video demonstration of the routine in action would be best.
John Connor2014-12-08 12:02:03