CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.097.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedRemember the last value. one of the methods.

 Post Reply Post Reply
Author
lijinsong View Drop Down
Groupie
Groupie


Joined: 06.Dec.2014
Location: China
Using: 2014
Status: Offline
Points: 27
Direct Link To This Post Topic: Remember the last value. one of the methods.
    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)


Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post 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.


Edited by John Connor - 08.Dec.2014 at 12:02
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,059 seconds.