cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Line Feeds and Wrapping Relation text strings in Format Tables

Line Feeds and Wrapping Relation text strings in Format Tables

Relation strings needs to recognize a line feed character so one can use a single relation in format tables requiring single line entry or multiple lines entries in title blocks.

In the same vane, tables in format files should remember the Wrap Text state when the format is inserted in the drawing.  It is odd that this doesn't behave this way already.

Often, fields such as material, finish and even the title often use only one line of text and on some occasions require a second.  In order to keep a tidy drawing format, a one-line text be centered in the cell.  When 2 lines are required, again the nomenclature should remain centered.

Is it a bug that the Wrap Text option is not maintained with the table in Creo 2.0?

The work around is to change the cell state in the drawing.  However, this can easily be overlooked if someone updates the format and doesn't know about resetting the Wrap Text of the cell.

Ultimately and obviously, the line feed option is the better option although both should be updated.  With a line feed code, the user can decide exactly where the wrap should occur.

I'm not the only one who thinks this was once available.  Can I get some clarification on this?

8 Comments
SherryTakahashi
11-Garnet

Creo Parametric 2.0 (M170) -

Topic: Table, Wrap Text

Issues:

- In order for Wrap Text to work, there must be text in the cell prior to setting the Wrap Text.

- After you put text in the cell, Smart filter on "Table Column", it allows you to set Wrap Text for the column.  But if you add a new row to the table, Wrap Text does not carry over to the cell for that column in the new row. And again it is because there is no text in the cell prior to setting Wrap Text (even though the row did not even exist yet)

Request:

- Allow for Wrap Text to work for cells that don't have text in them yet

- Allow for Wrap Text to work on columns

- When new rows get added to the table, the Wrap Text should carry over to the new cells if the column is set for Wrap Text.

Can you imagine if you had to set text wrapping for each cell after you entered text into a Microsoft Office Excel spreadsheet?

dcamp
1-Newbie

Wrap text only works for an independent area. I have a large drawing note with a lot of text and different line lengths, into which I want to parametrically show 4 short line from 1 parameter. I need to be able to to use an escape code to have the line breaks. Seems like this would be a simple enhancement.

PTCModerator
Emeritus
Status changed to: Archived
 
SnipSnap
3-Visitor

The year is 2019... Do we have a solution to this yet?

 

I'd like to create a relation that will split my 50 character (MAX) title into two approximately equal lengths but I don't want the title split anywhere except at the nearest comma.

 

Thanks!

BenLoosli
23-Emerald I

Not very elegant since Creo does not have looping or array code. I will NOT guarantee it will work with any string thrown at it.
I did stop after extracting the first 4 words, since I figured with 5 letters per word and 2 additional characters ', ' that would hit your 25 limit.

/*TITLE = 'PLATE, L-ARM, CONVEYOR, RECEIVING, PANEL, BODYWELD'
TITLE = 'BRACKET, CONVEYOR, PANEL, RECEIVING, BODYWELD'

len=string_length(title)
text1=extract(title,1,search(TITLE, ",")-1)
len1=string_length(text1)
tt1=extract(title,len1+3,len-len1-2)
text2=extract(tt1,1,search(tt1, ",")-1)
len2=string_length(text2)
tt2=extract(title,len1+len2+5,len-len1-len2-4)
text3=extract(tt2,1,search(tt2, ",")-1)
len3=string_length(text3)
tt3=extract(title,len1+len2+len3+7,len-len1-len2-len3-6)
text4=extract(tt3,1,search(tt3, ",")-1)
len4=string_length(text4)

if (len1+3+len2+3+len3) >25
maxlen1=len1+3+len2+3+len3
else
maxlen2=len1+3+len2+3+len3+3+len4
endif

If maxlen1 < 25
DWGTITLE1 = extract(title,1,len1+2+len2+2+len3)
DWGTITLE2=extract(title,len1+3+len2+3+len3+2,len-len1-2-len2-2-len3-3)
else
DWGTITLE1 = extract(title,1,len1+2+len2)
DWGTITLE2=extract(title,len1+3+len2+2,len-len1-2-len2-2)
endif

BenLoosli
23-Emerald I

I would assume that an ARCHIVED idea means 1 of 2 things:

1) PTC has already implemented the request, in which case it should be marked ass implemented.

2) PTC has no plans to implement the request and is ignoring the issue!

 

Fraulini_Giulio
6-Contributor
PTCModerator
Emeritus

Hello everyone,

This idea was archived because it did not receive a large number of votes from the community over a period of years. If this issue is still applicable, please feel free to submit a new idea. Make sure when you do to encourage your peers on the PTC community to vote for the idea.

Thanks!