Skip to main content
10-Marble
July 30, 2014
Solved

about rpt.index question

  • July 30, 2014
  • 2 replies
  • 1658 views

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

Best answer by shawnLee

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

2 replies

1-Visitor
July 30, 2014

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.

shawnLee10-MarbleAuthorAnswer
10-Marble
July 31, 2014

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