@Anonymous wrote:
Can I change the properties of a new TEXT object in lsp code?
....
....
(defun RTX() (command "_TEXT" pause 10 0 (setq a (+ 1 a))))
I would also like to specify the justify property.
Just try it manually, take note of the prompts and your answers, and feed answers into the command in the proper sequence to answer the prompts, using pause for any place where the User would have to specify [such as the one above, which is pausing for the insertion point]. If you want to use a particular justification every time, you can simply build it in:
(defun RTX() (command "_TEXT" "_mc" pause 10 0 ....
[and yes, you can give it a justification abbreviation directlly, without going through the step of calling for the Justify option in the prompt]. If you want to call for Justification but have the User specify which one they want each time:
(defun RTX() (command "_TEXT" "_justify" pause pause 10 0 ....
Kent Cooper, AIA