TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dubb on December 21, 2016, 02:13:06 PM
-
When I input this into the command line, I don't see a LIVE output of what I am typing. Is there a setting for that?
(COMMAND "MTEXT" PAUSE "r" pause "c" "n" "w" "0")
-
As an alternative:
(defun c:mtx
( / a e p z
) )
e
'(000 . "MTEXT")
'(100 . "AcDbEntity")
'(100 . "AcDbMText")
'(001 . "")
)
)
)
)
)
)
-
Thanks! Will try this.
-
(defun c:test (/ p r)
(if (setq p (getpoint "\nSpecify first corner: "))
(progn
(setq r (cond ((getangle p "\nSpecify rotation angle <0d0'0\">: "))
(0.)
)
)
(initdia)
(command "_.mtext" "_non" p "_rotation" (* (/ r pi) 180.) "_columns" "_no" "_width" 0.)
)
)
(princ)
)