×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Change Itemname in UG_EXCEL_READ after save as

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

RE: Change Itemname in UG_EXCEL_READ after save as

RuudvdBrand --

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

(OP)
Dear Taylor,

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources