i have line types i created for telco and electric...basically a letter T within lines and a letter E within lines. they look just fine in one drawing but now i'm in another drawing started by someone else and i need to use them but the letters are tiny and off center.
how can i correct this?
They are probably defined using a style and/or font not available in the new drawing.
You can use this little lisp to list the style & font used by a linetype with text in it.
(defun c:getstyleinlinetype (/ ltname lt style) (if (and (setq ltname (getstring "\nEnter name of linetype: ")) (setq lt (tblobjname "LTYPE" ltname)) (setq lt (entget lt)) (assoc 340 lt) ) (progn (setq style (entget (cdr (assoc 340 lt)))) (princ (strcat "\nThat linetype uses textstyle \"" (cdr (assoc 2 style)) "\" which uses the Font \"" (cdr (assoc 3 style)) "\"")) ) (progn (princ "\nThat linetype does not exist or does not use a text object.") ) ) (princ) )
rkmcswain.... in the linetype file, the text style does have a height defined (.06) and the text style defined in the linetype (standard) has the romans font assigned to it.
i tried using the script but i'm afraid i don't understand the output. i copied the script into a wordpad file and gave it a name with a .scr extension then dragged it into acad to run it. is that the correct way to use it?
If you are talking about the lisp that Jeff posted
Credit where credit is due! Give kudos or accept as solution whenever you can.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register