(command "_pline")
(while (> (getvar 'CmdActive) 0) (command pause))
...some code
everything goes OK, but when I do it with a "_-text" or "_text" or "_-hatch" instead of "_pline", these commands begin to skip some values and do not work properly, for example I can't write a text after setting insertion point for text, and can't select a method for hatching. Is there any other way to fix it, maybe i missed something?Your answer is burred in the function TextAddHmmm it's a large file with a lot of functions, it will take some time to study them :-)
No time this morning. (routine is a work in progress)
these are examples of what I have used for text:with some pauses individual for each type of command.Code - Auto/Visual Lisp: [Select]Code - Auto/Visual Lisp: [Select]
Kind regards, Robbo.
; example
(defun foo (/)
(initcommandversion)
(command "_dtext")
(while (> (getvar 'CmdActive) 0) (command pause))
(entlast)
)
(assoc 1 (entget(entlast))) ; just for check entlast's text
This also works for (command "_-hatch")
(defun c:test ()
(command "._text")
(command "_non")
(if (zerop (cdr (assoc 40 (tblsearch "style" (getvar "textstyle")))))
(command pause "" 0.0)
(command pause 0.0)
)
(while (= (logand (getvar "cmdactive") 1) 1)
(command "\\acedpause")
)
(princ)
)
acedpause only works within a lisp and not from the command linedidn't know that, now I see your code also works for me, thank you for help CAB!