Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Modify BOM QTY for Multiple Model / Rep

NASAg03

New member
WF4.0 user here.



I have a drawing with multiple dash numbers, and I have created a repeat
region with quantity columns for each of the dash numbers. Everything
shows up great, the quantities are correct, my other relations for
sorting and showing material information all works amazingly.



However, some of the items in my assembly are bulk type, or are used as required, and I'd like the BOM QTY to report "AR".



For a repeat region involving only one assembly, I report
&rpt.rel.qty in the quantity column and add the following code to my
table relations:



if ASM_MBR_TYPE=="BULK ITEM" | ASM_MBR_QTY_UNIT=="AR"

qty="AR"

else

qty=rpt_pty

endif





Now I'm trying to do the same thing with multiple dash numbers (assemblies), and I can't figure it out.



For the two dash numbers, ProE changes the table quantity columns from
&rpt.qty to &qty.m1r0 and &qty.m5r0. The hard part is
integrating those values into my relations.



Here is what I tried. I reported &rpt.rel.qty301 and
&rpt.rel.qty302 in my two quantity columns, and added the following
code to my relations:



if ASM_MBR_TYPE=="BULK ITEM" | ASM_MBR_QTY_UNIT=="AR"


qty301="AR"

qty302="AR"


else


qty301=qty_m1r0


qty302=qty_m5r0
endif



When I update my table, some quantity values get blanked and my other relations no longer work. Suggestions???
 
Any answer to original question? I am trying to do the exact same thing with the same result. Any help would be appreciated.
 

Sponsor

Articles From 3DCAD World

Back
Top