Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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?
Thanks & regards
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
Dear Mr. Blue Duncan
Can you help me do detail step
it first time for me
Thanks your help
Dear Mr. Blue Duncan,
I saw the BOM table which you have attached for Gear box assembly. it looks fantastic and I would like to implement this into my assembly but I don't know where to enter these codes. Sorry I am a beginner, so can you help me?
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
That is impossible. If you do not mind,you can share the files,I'll show you how to achieve
Dear Sir
Please attach file
http://www.mediafire.com/download/kpl4wik78w3jkz9/Gear-box.zip
Thanks your help
Thanks & Regards
Dear BLUE DUNCAN
Thanks your help
Now is ok
Thanks & Regards