Skip to main content
Feb 5, 2025 1:27 PM UTC
Question

Leading zero for BOM

Hi mates, Could you someone tell me how to add leading zero for BOM sl.nos, and qty column like 01,02,03... Instead of just 1, 2, 3... In creo 7 or latest?

 

Thanks in advance 

4 replies

Feb 5, 2025 2:35 PM UTC

Hi,

you have to define repeat region relations.

my_qty=extract("0"+itos(rpt_qty),string_length("0"+itos(rpt_qty))-1,2)

MartinHanak_1-1738766085462.png

MartinHanak_2-1738766131765.png

 

 

Feb 6, 2025 7:25 AM UTC

Hi , 

After input the relation i got "Invalid symbol"error. Did I missed something?

17388263520848624695363049522112.jpg

Feb 6, 2025 12:40 PM UTC

You need to change the parameter in your table from rpt_qty to My_qty.

Yours should be:

&rpt.rel.My_qty

 

This is in my table:

&rpt.rel.newqty

 

This is in my relation:

IF asm_mbr_pn == "9594"

NEWQTY = "0.5"

ELSE

NEWQTY = rpt_qty

ENDIF