Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to limit text length

Status
Not open for further replies.

LMTDCS

Mechanical
Aug 20, 2007
30
How do you limit the length of variable generated text or force a second line after so many characters. Ie. I am using
<W@$SH_PART_NAME> for title block names but want to limit the length to fit into the title block space???

Thanks
Chris
L&M Tool

 
Replies continue below

Recommended for you

Hi

Can't you just width adjust the text to fit in the title block space? There is an option to do this; it is the edit text (right click -> style -> Space Factor then enter 0.1 or something like that. Depends how much longer the text is in relation to the space... Or Failing that try Style -> Fit methods -> check 'auto size row' box. Then if you enter a load of text into a small box it gets 'squashed to fit'.

Regards

Rob.
 
If you're entering text into a 'cell' of a Parts List or a Tabulated Note, there are 'fit' options which include everything from changing font size to truncating long strings to automatic abbreviation.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
You can write a simple GRIP program that will truncate an attribute to a preset length.
attr1=substr(system_attr,1,x-char#)


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor