Skip to main content
10-Marble
February 5, 2025
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

24-Ruby III
February 5, 2025

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

 

 

Translate
10-Marble
February 6, 2025

Hi , 

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

17388263520848624695363049522112.jpg

Translate
Dale_Rosema
23-Emerald IV
February 6, 2025

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

 

Translate