Skip to main content
1-Visitor
July 11, 2014
Question

Sting parameter length limit?

  • July 11, 2014
  • 2 replies
  • 7100 views

Does anyone know if there is a length(charactor) limit to a string parameter? We have some parts that get notched at various places and I'm trying to drive the part descreption with relations so they dont have to be entered manually every time.

My relations end up looking like this to drive the parameter.

PART_DESC1 = "S " + LEG_LENGTH1 + " | N " + ARC_LENGTH + " | S " + SIDE_LENGTH + " | N " + ARC_LENGTH + " | S " + BASE_LENGTH

PART_DESC2 = " | N " + ARC_LENGTH + " | S " + SIDE_LENGTH + " | N " + ARC_LENGTH + " | S" + LEG_LENGTH1

PART_DESC = PART_DESC1 + PART_DESC2

I had to use 2 parameters because the relations won't except a single equation long enough to populate the entire description.

This is what the the final value for PART_DESC should be

S 23 11/16 | N 7 1/16 | S 80 5/8 | N 7 1/16 | S 66 1/8 | N 7 1/16 | S 80 5/8 | N 7 1/16 | S23 11/16

but all I get is this

S 23 11/16 | N 7 1/16 | S 80 5/8 | N 7 1/16 | S 66 1/8 | N 7 1/16 | S 80 5/8 | N

Its cutting off the end so I'm wondering if there is a length limet to the string parameter. I haven't been able to find anything specifying a limit.

I know I could remove some spaces, but I'm hoping I won't have to do that.

Any help is appreciated.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

2 replies

14-Alexandrite
July 11, 2014

The string parameter is limited to 80 characters.

One possible solution to your issue is to define the PART_DESC parameter as a note type parameter and to associate a note that show the entire text.

In the attached example PART_DESC is reading note_0 from the part.

Hope it helps.

1-Visitor
July 11, 2014

Ok, that brings me to another question, "note" is not an options for a parameter for me. How do I define a parameter as a note?

I'm using Creo 2.0 M040

14-Alexandrite
July 11, 2014

You can only do this when you create the parameter. Once a parameter is defined you can't change the type anymore. Take a look at the attached picture. If you don't have the note option on the list than something is really strange.

note_param.jpg

14-Alexandrite
July 11, 2014

I just took a quick look over the config options and didn't find anything relevant to parameter types. Unfortunatelly the knowledge base seems to be down right now. I will try to follow up later.

14-Alexandrite
July 11, 2014

Gabriel, do you always have a note annotation in your start parts?

14-Alexandrite
July 11, 2014

We have several start parts and some of them have a note already defined. Typically is the IP/Confidentiality note, just to be sure taht we have the note both in the model and the drawing.