Skip to main content
12-Amethyst
February 25, 2014
Question

BOM-show all part & qty of Assembly in table in Creo Drawing

Dear PTC

I have one assemly (more 1000 parts include many sub-assembly)

I want to do a list spare part for all Big-assemly

Ex: Asm 1 have 7kids: 1.1 to 1.7

ASM 2 have 4kids: 2.1 to 2.4

....

How we do like below list in Drawing of CREO?

BOM.JPG

Thanks & regards

-


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

9 replies

17-Peridot
February 26, 2014

try this

if save_idx==pass_num && rpt_index==1
save_idx=0
endif

if rpt_index>save_idx
save_idx=rpt_index
pass_num=0
else
pass_num=save_idx
endif

if pass_num==0

if rpt_index==1
current_level=rpt_level
save_2sn=0
save_3sn=0
save_4sn=0
save_5sn=0
/*加入点
endif
if current_level==rpt_level
if rpt_level==2
save_2sn=save_2sn+1
endif
if rpt_level==3
save_3sn=save_3sn+1
endif
if rpt_level==4
save_4sn=save_4sn+1
endif
if rpt_level==5
save_5sn=save_5sn+1
endif
/*加入点
else
if rpt_level==2
save_2sn=save_2sn+1
/*save_4sn=save_2sn
endif
if rpt_level==3
save_3sn=save_3sn+1
if current_level<rpt_level
save_3sn=1
endif
/*save_4sn=save_3sn
endif
if rpt_level==4
save_4sn=save_4sn+1
if current_level<rpt_level
save_4sn=1
endif
endif
if rpt_level==5
save_5sn=save_5sn+1
if current_level<rpt_level
save_5sn=1
endif
endif
/*加入点
current_level=rpt_level
endif


if rpt_level==2
myidx=itos(save_2sn)
endif
if rpt_level==3
myidx=itos(save_2sn)+"."+itos(save_3sn)
endif
if rpt_level==4
myidx=itos(save_2sn)+"."+itos(save_3sn)+"."+itos(save_4sn)
endif
if rpt_level==5
myidx=itos(save_2sn)+"."+itos(save_3sn)+"."+itos(save_4sn)+"."+itos(save_5sn)
endif
/*加入点
endif

Translate
bnguyen-212-AmethystAuthor
12-Amethyst
February 26, 2014

Dear Mr. Blue Duncan

Can you help me do detail step

it first time for me

Thanks your help

Translate
17-Peridot
February 27, 2014

123.jpgSee the attachment.

Translate
bnguyen-212-AmethystAuthor
12-Amethyst
February 28, 2014

Dear mr.BLUE DUNCAN

Thanks you show to me CREO can do it

but the template file just valid your file only, orther ASM can't

Thanks

Translate
17-Peridot
February 28, 2014

That is impossible. If you do not mind,you can share the files,I'll show you how to achieve

Translate
bnguyen-212-AmethystAuthor
12-Amethyst
February 28, 2014

Dear Sir

Please attach file

http://www.mediafire.com/download/kpl4wik78w3jkz9/Gear-box.zip

Thanks your help

Thanks & Regards

Translate
17-Peridot
March 2, 2014

222.jpg

Translate
bnguyen-212-AmethystAuthor
12-Amethyst
March 3, 2014

Dear BLUE DUNCAN

Thanks your help

Now is ok

Thanks & Regards

Translate