Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

unigraphics NX unable to read data from excel file

Status
Not open for further replies.

defaultrush

Mechanical
Mar 13, 2012
20
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 .
 
Replies continue below

Recommended for you

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.
 
i have used ugcellread in expressions.i am using NX7.5
 
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.
 
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.
 
Defaultrush,

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

HTH, Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor