I have been using this routine:
Code:
(setq layer1 (getvar "clayer"))
(SETVAR "OSMODE" 512)
(setvar "cmdecho" 1)
(COMMAND "-LAYER" "M" "E-TEXT-NOTE" "C" "R" "" "")
(command "_mleader")
(while (> (logand (getvar "CMDACTIVE") 0) 1)
(command pause )
)
(setvar "clayer" layer1)
(SETVAR "OSMODE" 0)
(princ)
Then I went to add another line after the while loop and it makes my coffee cup leak (see next code).
Code:
(setq layer1 (getvar "clayer"))
(SETVAR "OSMODE" 512)
(setvar "cmdecho" 1)
(COMMAND "-LAYER" "M" "E-TEXT-NOTE" "C" "R" "" "")
(command "_mleader")
(while (> (logand (getvar "CMDACTIVE") 0) 1)
(command pause )
)
(command "_DIMBREAK" "L" "A");new line added, but the mleader wasn't finished
(setvar "clayer" layer1)
(SETVAR "OSMODE" 0)
(princ)
Then I changed the cmdactive and it seems to work except that the mtext seems to be on the command line only (see code).
Code:
(setq layer1 (getvar "clayer"))
(SETVAR "OSMODE" 512)
(setvar "cmdecho" 1)
(COMMAND "-LAYER" "M" "E-TEXT-NOTE" "C" "R" "" "")
(command "_mleader")
(while (> (getvar "CMDACTIVE") 0)
(command pause))
(COMMAND "_DIMBREAK" "L" "A")
(setvar "clayer" layer1)
(SETVAR "OSMODE" 0)
(princ)
Any way to change the last code to allow me to enter the mtext with the regular mtext editor (so I can get back to my coffee break)?
Thanks,
Chris
Again:
Thanks,
Chris