PDA

View Full Version : Center Line and Other symbols



Chirag Mistry
2005-04-20, 02:14 PM
If using MText, right click in the text window and scroll down to
Symbols>Center Line.

Word of caution, if you share your cad files and they use 2004 without the
tool palette extension, or an older version(2002, 2000i, 2000, etc.), they
will see a ? instead of the symbol. They need to install/use the newer font
file (i.e. if you use romans.shx they need to replace it with your copy).

Chirag Mistry
2005-04-20, 04:00 PM
Now to go one step ahead, I was trying to create a toolbar button for this using the following command,

^C^C-layer;m;Note;c;green;Note;;-mtext;\s;test;\u+2104;;

Since a "\" means pause for user input, it doe not recognize "\u+2104" as user input, any clue how to fix this?

Thanks
Chirag

cwade
2005-04-20, 09:33 PM
You first need to define a custom LISP routine:

(defun c:mts ()
(setq mtsa (getpoint "Please select an insertion point for the text."))
(command "-mtext" mtsa "@10,10" "test" "\\U+2104" "")
(setq mtsa T)
)

Save this as MTS.LSP

The Button Code should look something like:

^C^C-layer;m;Note;c;green;Note;;(if (not c:mts)(load "H:/0ACAD Support/LISP/mts.lsp")) (c:mts)

Replace H:/0ACAD Support/LISP/ with whatever path you have saved mts.lsp to.

Should do the trick

Glen_Johnston
2005-04-25, 05:11 PM
Here is a routine I wrote a while back that works back to R2000 for sure, possibly R14.

The "center line" symbol size will be drawn at the same size as your current Dimtxt setting.


Glen

scwegner
2005-04-25, 05:48 PM
Here's another centerline routine. This one rotates and justifies the text to match the angle of the line drawn.

mtlynn
2005-04-25, 06:17 PM
How come when I use those symbols the text comes out lighter than the text that is with it? I use simplex font. It actually shows up a little bolder in the mtext box, but plots lighter. I use LDD 04.