×
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

Limit Custom Property Length

Limit Custom Property Length

Limit Custom Property Length

(OP)
We use a template that inserts the part name from the model into the title block.
This works fine most of the time, but sometimes we have parts that have really long names. If we don't catch it, Solidworks just prints over the next box of information.

Is there a way to limit a text box or custom property to just x characters or y length of typing?

RE: Limit Custom Property Length

Change the size of the text box to suit.
i.e. Enter Edit Sheet Mode, double click the linked note, drag the corners of the box to fit within the title block field.

RE: Limit Custom Property Length

(OP)
Thanks! I tried that, it keeps them from "spilling over" to the left or right but that doesn't still stop me from entering in a string that's too long.

ie there's space for a 6 digit part number but I mistakenly put in an 8 digit number, the text will just expand downwards. Is there a way to limit it?

RE: Limit Custom Property Length

This is an age old problem.

Resizing the text box doesn't always work, sometimes it doesn't stay put, and of course, when automating one always wants the part number centered vertically as well as horizontally.

A macro could to a part name length check for you.

And are you talking about part numbers or part names, aka descriptions?

TOP
CSWP, BSSE
www.engtran.com  www.niswug.org
www.linkedin.com/in/engineeringtransport
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."

RE: Limit Custom Property Length

(OP)
Well both, everything that would go into the title block on a drawing really.

Even if someone were to try and type the date in like 11/23/2011 vs 11/23/11 could cause problems since the text box was sized to fit the latter.

For our descriptions, we have 4 single line properties. I had originally set our BOM's to grab just the first line of descrption text, that's why they're all single line, BOM tables won't take multiple lines.

I have added a "BOM Name" property now because, as it turns out, the first line is not often the most appropriate for using in the BOM table.

I  was thinking of making the description a larger multiline box, which may help, but still wouldn't let me know if I have to shorten the description.

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