×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Scale of Symbol
2

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

RE: Scale of Symbol

The letter in the symbol and the symbol itself will be sized according to the font it is being used with. You could create the letter with "geometry" similar to the triangle.

cheers

RE: Scale of Symbol

2
It's going to be a PITA any way you try to go about this.  The reason is that if you use a customized symbol from gtol.sym, anyone else who opens up your file in SW won't be able to see that symbol unless they have the same customized symbol in their file.  This (in my opinion) severely limits the benefit of being able to create your own symbols.

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 documentedsmile) to increase the font size of the portion of the dimension containing the symbol.  This option is much easier on the front end.  Because the triangle is the same size for every letter, you only have to figure out the triangle geometry once.  The SWML you use to change the font size is <font size=x>, where x is the desired height in mm.  So, for example, when you first create a dimension, the dimension text box contains <DIM>.  Now let's say you want to add a centerline symbol after the dimension.  You insert the symbol and the text box reads <DIM><MOD-CL>.  Now let's say you wanted the centerline symbol to be 5mm instead of the document default.  You would manually change the text in the box to read <DIM><font size=5><MOD-CL>.  You can also specify size in points if you prefer.  If you want 12pt font then you would use <font size=12PTS>.  Note that the "PTS" part is case-sensitive.  The "font size" portion is not.

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.  smile

-handleman, CSWP (The new, easy test)

RE: Scale of Symbol

handleman,

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?.

cheers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources