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)