Skip to main content
14-Alexandrite
November 8, 2020
Solved

text repetition

  • November 8, 2020
  • 2 replies
  • 3736 views

Hi, I need to model a kind of rule with dimensions engraved.

So, a basic repetition can extrude graduations (@ each centimeter, for example).

However, is it possible to repeat a text ?

ie 01, 02, 03...19, 20

Can this text be drive by repetition ?

If not, I should extrude 20 texts and manually enter values. 

Thanks

Best answer by tbraxton

Yes it is possible, example Creo 4 part enclosed for review.

 

If you are using a pattern to control the hash marks in the model then you should be able to use a relation to generate the text associated with each pattern member that has text attached. It will take me a lot of words to go through it so hopefully you can reverse engineer it from the example model. Pay attention to the feature names for some guidance. 

 

This example is not the only way to do it but it is pretty straight forward and seems to be robust. With this method it will increment your hash text based on a feature relation that was created in "PNT7" this feature exists only to define the feature relation that will be used to increment the text values in the pattern. The group pattern of type dimension controls the hash spacing.

 

You can not start at zero using this relation as it strips all leading/trailing zeros from the parameter value. So you will see increments every 10 mm as it regenerates. To see how it works, change the linear dimension for "pnt_hash_marks" (feature #12) to 3 for example and regen the model you should see the text update. See the video for details.

 

The key point is to use the parameter defined in the feature relation of "PNT7" for each text value in the pattern.

 

Feature parameter is driving the incremented textFeature parameter is driving the incremented text

 

 

2 replies

tbraxton
22-Sapphire II
tbraxton22-Sapphire IIAnswer
22-Sapphire II
November 9, 2020

Yes it is possible, example Creo 4 part enclosed for review.

 

If you are using a pattern to control the hash marks in the model then you should be able to use a relation to generate the text associated with each pattern member that has text attached. It will take me a lot of words to go through it so hopefully you can reverse engineer it from the example model. Pay attention to the feature names for some guidance. 

 

This example is not the only way to do it but it is pretty straight forward and seems to be robust. With this method it will increment your hash text based on a feature relation that was created in "PNT7" this feature exists only to define the feature relation that will be used to increment the text values in the pattern. The group pattern of type dimension controls the hash spacing.

 

You can not start at zero using this relation as it strips all leading/trailing zeros from the parameter value. So you will see increments every 10 mm as it regenerates. To see how it works, change the linear dimension for "pnt_hash_marks" (feature #12) to 3 for example and regen the model you should see the text update. See the video for details.

 

The key point is to use the parameter defined in the feature relation of "PNT7" for each text value in the pattern.

 

Feature parameter is driving the incremented textFeature parameter is driving the incremented text

 

 

14-Alexandrite
November 10, 2020

Thanks a lot.
Seems to be fine and exactly what I wanted to do.

Unfortunately, I'm just on Creo3, right now.

Didn't renewed maintenance yet...
So, I'll try to reproduce this ?

Perhaps it's possible...
Thanks 🙂 

 

23-Emerald III
November 10, 2020
Mahesh_Sharma
22-Sapphire I
November 11, 2020