UNIFORMSRL
Mechanical
- Mar 19, 2009
- 21
Hi all,
We use NX6 + Moldwizard and we are installing a new ERP in our company.
I have built up a system which works more or less like these:
1) when parts are imported from moldwizard library, some attributes are defined for each of them using its excel system;
2) these attributes are imported into part expressions using KF command ug_askPartAttrValue();
e.g.: (string)EXP_CALL=ug_askPartAttrValue( "ATTR_CALL" ), where EXP_CALL is the expression name and ATTR_CALL the attribute name;
3) using the part expressions created, an excel file is queried in order to get an unique ERP part code;
e.g.: (string)ERP_CODE=ug_cell_vlookup( getenv("UGII_DATA_ERP")+ug_askPartAttrValue("EXCEL_NAME")+".xls", EXP_CALL, "a1:b9000", 1, 0 )
It all works fine, a part from the fact that IT DOES NOT UPDATE! Unless:
1) I recursively enter the expression editor for each subpart of the assembly;
2) I use tool->update->update for external changes, once per each part I need to update, assuming it as work part first;
Is there a journal command or a macro or something similar, to make UG do this cumbersome update job on its own?
My assemblies are very big
Thank you so much!
We use NX6 + Moldwizard and we are installing a new ERP in our company.
I have built up a system which works more or less like these:
1) when parts are imported from moldwizard library, some attributes are defined for each of them using its excel system;
2) these attributes are imported into part expressions using KF command ug_askPartAttrValue();
e.g.: (string)EXP_CALL=ug_askPartAttrValue( "ATTR_CALL" ), where EXP_CALL is the expression name and ATTR_CALL the attribute name;
3) using the part expressions created, an excel file is queried in order to get an unique ERP part code;
e.g.: (string)ERP_CODE=ug_cell_vlookup( getenv("UGII_DATA_ERP")+ug_askPartAttrValue("EXCEL_NAME")+".xls", EXP_CALL, "a1:b9000", 1, 0 )
It all works fine, a part from the fact that IT DOES NOT UPDATE! Unless:
1) I recursively enter the expression editor for each subpart of the assembly;
2) I use tool->update->update for external changes, once per each part I need to update, assuming it as work part first;
Is there a journal command or a macro or something similar, to make UG do this cumbersome update job on its own?
My assemblies are very big
Thank you so much!