Message 1 of 6

Not applicable
12-13-2017
02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a lisp that will 1) change my layer to "2D_TEXT", 2) set my text style, 3) run "mtext" and set the width to 0, and then return to the previous layer. I've got it to do all of that, however, when I run the routine all the text being typed displays in the command bar and not in model space. Is there a way to accomplish all this AND get the text to appear in model space as it's being typed?
Here is my code:
(defun c:mlinetext ( / curlayer)
(setq curlayer (getvar 'clayer))
(command "-layer" "_m" "2D_TEXT" "")
(command-s "._textstyle" "annotative")
(command "._mtext" "\\" "w" "0")
(setvar 'clayer curlayer)
(princ)
)
Solved! Go to Solution.