Message 1 of 7
Edit lisp so it can be used on MTEXT

Not applicable
01-06-2016
03:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi There,
Can anyone help with this lisp so it can also be used on MTEXT?
Many thanks if you can help.
Cheers
Al
(PROMPT "\nLOADING FILE .........") ; ; CHANGE THE ROTATION OF SELECTED TEXT ; (defun C:TT ( / selset newscl l n e as) (setq olderr *error* *error* err) (command "undo" "begin") (GETSYS) ;;LCA - COMMENT: The UCS command has new options. (COMMAND "UCS" "W") (setq selset (ssget) newrot (getorient "\nNew Orientation,Pick 2 points (Return to leave same): ") newscl (getreal "\nNew Height (Return to leave same): ") ) (if selset (progn (setq l 0 n (sslength selset)) (while (< l n) (if (= "TEXT" (cdr (assoc 0 (setq e (entget (ssname selset l)))))) (progn (prompt ".") (if newscl (progn (setq s (cdr (setq as (assoc 40 e)))) (setq e (subst (cons 40 newscl) as e)) (entmod e) ) ) (if newrot (progn (setq s (cdr (setq as (assoc 50 e))) ; cur (getvar "UCSNAME") ; n (cdr (assoc 12 (tblsearch "UCS" cur))) ; m (cdr (assoc 10 (tblsearch "UCS" cur))) ; ax (- (cadr n) (cadr m) ) bx (- (car n) (car m) ) ; alpha (atan ax bx) ) (setq e (subst (cons 50 newrot) as e)) (entmod e) ) ) ) ) (setq l (1+ l)) ) ) ) ;;LCA - COMMENT: The UCS command has new options. (command "ucs" "p") (command "osnap" "none") (command "move" "P" "" pause pause) (resetsys) (command "undo" "end") (princ) )