Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello,
I want to customize the serial numbers shown in a repeat region table in Creo drawings. Instead of using the default linear numbering (1, 2, 3, ...), I’d like to apply a more structured format like;
1_1
1_2
2
3
4_1
4_2
4_3
5
6
7
This is especially useful when I need to group sub-items under a main item, or indicate logical associations between parts in an assembly.
I've tried using rpt.index and creating relations in the repeat region, but I’m not sure how to dynamically generate such custom values.
What’s the best way to set this up in Creo so that the table updates automatically based on the model?
Hi,
1.]
You cannot modify a value of system rpt_index parameter.
2.]
Replace rpt_index with my_rpt_index on the left side of relations.
3.]
In table cell replace &rpt_index with &rpt.rel.my_rpt_index
Hi Martin Hanák ,
Thank you for the clarification!
Understood that rpt_index is a system parameter and cannot be modified directly.
I’ve replaced rpt_index with my_rpt_index on the left-hand side of the relations as suggested.
Also updated the table cell to use &rpt.rel.my_rpt_index.
That worked perfectly for the custom values like 5_1 and 5_2.
Could you please also guide me on how to show the remaining serial numbers (like 1, 2, 3, 4, 6, 7) in sequence, while skipping/adjusting around the modified custom ones?
Thanks again for your support!
@SKY wrote:
Hi Martin Hanák ,
Thank you for the clarification!
Understood that rpt_index is a system parameter and cannot be modified directly.
I’ve replaced rpt_index with my_rpt_index on the left-hand side of the relations as suggested.
Also updated the table cell to use &rpt.rel.my_rpt_index.
That worked perfectly for the custom values like 5_1 and 5_2.
Could you please also guide me on how to show the remaining serial numbers (like 1, 2, 3, 4, 6, 7) in sequence, while skipping/adjusting around the modified custom ones?
Thanks again for your support!
Hi,
rpt_index = "my_rpt_index" ... this is nonsense
Try following relation instead of it ...
my_rpt_index = rpt_index
Hi @SKY,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Anurag