×
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

How to limit text length

How to limit text length

How to limit text length

(OP)
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

RE: How to limit text length

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.

RE: How to limit text length

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
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: How to limit text length

You could adjust the aspect ratio of the text style.

RE: How to limit text length

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

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