Scale of Symbol
Scale of Symbol
(OP)
Hello, I have created and added several custom symbols to my Gtol.sym file. Now, I need to be able to modify the text height of one of those particular symbols so that the symbol shows up larger than the dimension it is attached to. Is it possible to modify the text height by a some scalar number in the code within the Gtol.sym file, or must I recreate the text using lines to show the larger representation?
As an Example: See Attached .pdf; how would one modify the text "A" to be a larger font size, but the triangle stay the same size? In other words, how does one modify the text portion of a symbol without affecting the geometry or line portion of the symbol?
#FlagNotes#noper,Flag Tri-Rot A-Z
*Flag-1,Triangle-rotated A
A,LINE 2.1,.48,-.03,-.80
A,LINE -.03,-.80,-.03,1.78
A,LINE 2.1,.48,-.03,1.78
A,TEXT .72,.50,A
Regards,
KLINE
As an Example: See Attached .pdf; how would one modify the text "A" to be a larger font size, but the triangle stay the same size? In other words, how does one modify the text portion of a symbol without affecting the geometry or line portion of the symbol?
#FlagNotes#noper,Flag Tri-Rot A-Z
*Flag-1,Triangle-rotated A
A,LINE 2.1,.48,-.03,-.80
A,LINE -.03,-.80,-.03,1.78
A,LINE 2.1,.48,-.03,1.78
A,TEXT .72,.50,A
Regards,
KLINE






RE: Scale of Symbol
RE: Scale of Symbol
That being said, if you want to have a new symbol with the letter larger w.r.t. the triangle, you have a couple of options.
1. As you and CBL said, you can recreate the text with geometry. If you only want a couple of letters this might not be too bad. However, if you want the entire alphabet it's going to take you the better part of a day, the letters will still probably look funky, and I don't think there's a way to change the lineweight so that the geometry making up the letters is thicker than the triangle.
2. The other option is to change the size of the triangle around the text in the gtol.sym file, then use some SWML (that's SolidWorks Markup Language - probably not the right term because it's not really documented
You can also change the font name for any text that you type into the dimension. For example, if the dimension text box contains
<FONT name="Curlz MT">FunnyFont<DIM><FONT SIZE=30PTS><MOD-CL>
then the dimension will read "FunnyFont" in the Curlz MT font followed by the dimension value in the dimension's font, then the centerline symbol in 30pt using the dimension's font. The font name used for the dimension value and any text inside symbols can only be changed by changing the dimension's font. Also, the font size of the dimension value is not affected by the <font size=> tag. So if you put
<font size=5><DIM><MOD-CL>
then only the symbol's font size will be changed to 5mm, and the dimension value's font will stay at the dimension's specified size.
OK, I need to stop typing now.
-handleman, CSWP (The new, easy test)
RE: Scale of Symbol
That is excellent information and needs to be stored in an FAQ before it gets lost in the Eng-Tips ether.
Would you create an FAQ of it, and whatever else can be done with the SWML? I will then link it to FAQ559-1229: How Do I Create Custom Symbols?.
RE: Scale of Symbol
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group