Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys
Some time asking for help to edit this lisp helped me and it was perfect !!!
but I would like to make some changes I will be very grateful if someone helps me;)
1- I would like to see the place before inserting (preview).
2- Store the last inserted text (the first time I insert it it works normally), but when I call the command again it asks me if I want a new one or continue from what I had stopped.
3- And in the rotating option it does something similar to the command.
Thanks for the help !!!
(defun c:demo_nom ( / idx ser prf pnt str num) (setq ser '("" ".1" ".1.1" ".1.2" ".1.3" ".1.4" ".2" ".2.1" ".2.2" ".2.3" ".2.4" ".3" ".3.1" ".3.2" ".3.3" ".3.4" ".4" ".4.1" ".4.2" ".4.3" ".4.4" ) idx -1) (setq prf (getstring "\nPrefix: ")) (setq num (cond ((getint "\nInitial number <1>: ")) (1))) (while (progn (if (not (setq str (nth (setq idx (1+ idx)) ser))) (setq str (nth (setq idx 0) ser) num (1+ num))) (initget "Skip Rotate") (setq pnt (getpoint (strcat "\nClick to place No. '" (setq str (strcat prf (if (< num 10) "0" "") (itoa num) str)) "' or [Skip/Rotate]: ")))) (cond ((= pnt "Skip")) ((= pnt "Rotate") (initget 1) (setq pnt (getpoint (strcat "\nClick to place No. '" str "': "))) (command "_Text" "_J" "_MC" "_none" pnt 2.5 PAUSE str)) (T (command "_Text" "_J" "_MC" "_none" pnt 2.5 0 str)))) (princ) )
Solved! Go to Solution.