Change Itemname in UG_EXCEL_READ after save as
Change Itemname in UG_EXCEL_READ after save as
(OP)
Hello all,
Does anyone knows how to change the spreadsheet name by strings.
For example
Base model is "BASE/A"
saved to "CustomerX/A"
ug_excel_read( "BASE/A", "B2" )
ug_excel_read( "CustomerX/A", "B2" )
is there a way to change the location quickly after the save as.
example: ug_excel_read( "Excel_Location/A", "B2" )
Excel_location is build up by the attribute DB_PART_NO + DB_PART_REV
Thnaks for the help
Does anyone knows how to change the spreadsheet name by strings.
For example
Base model is "BASE/A"
saved to "CustomerX/A"
ug_excel_read( "BASE/A", "B2" )
ug_excel_read( "CustomerX/A", "B2" )
is there a way to change the location quickly after the save as.
example: ug_excel_read( "Excel_Location/A", "B2" )
Excel_location is build up by the attribute DB_PART_NO + DB_PART_REV
Thnaks for the help





RE: Change Itemname in UG_EXCEL_READ after save as
I don't think there's an automatic way to do this... There's really no way for NX to tell whether you want to reference the older version of the spreadsheet or the newer one when you perform the SaveAs operation. Both are certainly valid options in different workflows/contexts.
I commonly use a string expression to store the Excel filename (or item) so that editing it (once, in a central location for the design) is quick and easy. If you reference the same spreadsheet from several parts, then a string expression at the top level of the assembly might even be a more consolidated way to do this.
Does that help at all?
Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
RE: Change Itemname in UG_EXCEL_READ after save as
i just create the last part of your replay.
I have create a expressions "partname" that is linked to the attributes DB_PART_NO and DB_PART_REV.
so the excel command looks like this ug_excel_read( partname, "B2" )
when i preform a save as the location of the excel is change to his new location.
thanks for the tip.
Ruud van den Brand
pre-sales Consultant
cards PLM Solutions B.V.