Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Limit Custom Property Length

Status
Not open for further replies.

badgerdave

Mechanical
Mar 4, 2011
55
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?
 
Replies continue below

Recommended for you

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.
 
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?
 
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
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor