Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/05/2025 in all areas

  1. My humble opinion is that your ENTSEL function stands in the way between your dreams and success. It only accepts a selection. If you were to use GRREAD it would be possible to both detect if you clicked on something or pressed a key like 'u' for undo or 'tab' to switch between increment or decrement. Using the 'tab' key you could for example change the increment number from +1 to -1 , or with plus and minus keys you could increment , well , the increment. Not sure if I have something 'on the shelf' but I'm pretty sure searching this site could give you some results too.
    1 point
  2. Of course: 'activeDocument' should be ... (vlax-get-activedocument (vlax-get-modelSpace (vlax-get-acad-object))) (I hope I haven't written anything wrong from my smartphone)
    1 point
  3. If you use several Lisp and you don't know exactly what they do, then the best option is BIGAL: LDATA. But you will have to assign them to an object that is safe from any contingency: 'activeDocument' To assign it: (vlax-ldata-put activeDocument 'valueIncrement value)
    1 point
  4. A better place to save a value is using LDATA as some one else's code may reset the "Userxx", you can also do a UNDO mark so can go back many undo's in one step. (setq num (vlax-ldata-get "numinc" "num" )) (vlax-ldata-put "numinc" "num" x)
    1 point
×
×
  • Create New...