×
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

unigraphics NX unable to read data from excel file

unigraphics NX unable to read data from excel file

unigraphics NX unable to read data from excel file

(OP)
i have a assembly which uses data from a workbook, it is unable to read the workbook if it is macro enabled workbook, is there something other format which it can access a macro enabled worksheet .

RE: unigraphics NX unable to read data from excel file

Exactly how are you accessing the Excel file from NX?

And what version of NX are you running?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: unigraphics NX unable to read data from excel file

(OP)
i have used ugcellread in expressions.i am using NX7.5

RE: unigraphics NX unable to read data from excel file

I just treid this using NX 7.5.5.4 and Excel 2007 and it seems to work fine. Now all I did was create the spreadsheet and toggle on the 'Enable All Macros' option on the 'Trust Center' dialog. I don't actually have any macros created for this spreadsheet, I just enabled the option, which was what you implied was all that you had done.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: unigraphics NX unable to read data from excel file

(OP)
Actually what i have is a macro enabled excel file (.xlsm) and a macro which runs during the initialization which opens up a user form and hides the worksheet application . when i change the values in the worksheet, save it and refresh the values from expression, ug cannot read the excel file.

RE: unigraphics NX unable to read data from excel file

Defaultrush,

Set the environment variable UGII_SUPPORT_XLSM_SPREADSHEET=1
This can be done in "%UGII_BASE_DIR%\ugii\ugii_env.dat"

HTH, Joe

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