Print Page | Close Window

Remember the last value. one of the methods.

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10830
Printed Date: 28.Sep.2026 at 06:40


Topic: Remember the last value. one of the methods.
Posted By: lijinsong
Subject: Remember the last value. one of the methods.
Date Posted: 06.Dec.2014 at 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)





Replies:
Posted By: John Connor
Date Posted: 07.Dec.2014 at 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.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>




Print Page | Close Window