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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

about rpt.index question

shawnLee
8-Gravel

about rpt.index question

Hello All

Sorry my English is not well.

I have a customer question is about how to do rpt.index like

----->

IndexModel Name
Material
QTY
1 Change to ---> EX: N101A001


2 Change to ---> EX: N101A002


3 Change to ---> EX: N101A003


4 Change to ---> EX: N101A004


Can Creo 2.0 do this?

Shawn

1 ACCEPTED SOLUTION

Accepted Solutions

I already find out method. thank you Jayanta Sarkar

Table > Repeat Region > Relation > Select Repeat Region > Relations > Add below mentioned relation > Modify Report Parameter for repeat index to &rpt.rel.i3 > Update table

if rpt_index<10

i1=itos (rpt_index)

i2="00"

i3=i2+i1

endif

if rpt_index>=10

i1=itos (rpt_index)

i2="0"

i3=i2+i1

endif

if rpt_index>99

i3=itos (rpt_index)

endif

View solution in original post

2 REPLIES 2

I guess you can put a parameter in every component ( example: part no) then retrieve with that part no instead of rpt.index. Part no parameter can be anything as you like.

I already find out method. thank you Jayanta Sarkar

Table > Repeat Region > Relation > Select Repeat Region > Relations > Add below mentioned relation > Modify Report Parameter for repeat index to &rpt.rel.i3 > Update table

if rpt_index<10

i1=itos (rpt_index)

i2="00"

i3=i2+i1

endif

if rpt_index>=10

i1=itos (rpt_index)

i2="0"

i3=i2+i1

endif

if rpt_index>99

i3=itos (rpt_index)

endif

Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags