Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

NX dimensioning w/ Excel Macro

Status
Not open for further replies.

AlMireault

Mechanical
Joined
Aug 7, 2014
Messages
1
Location
US
Hi there,

I've dug around looking for an answer to this for a while now and haven't found much.
I have an excel file controlled with a macro (essentially a list of dimensions that are parametrized to each other in VBA) and I want to link that to an NX model (I'm running 8.5). I'm aware that the expressions dialog can be used to create an excel interface for modifying variables ect. but unsure of how to link variables to an existing excel file, moreover one with macro-controlled cells.

thanks for the help
-Al
 
While in the expression system, go to the bottom of the dialog and select the 'functions' icon [f(x)] and when the dialog opens, go to 'Choose a Category' and select the 'spreadsheet' item. Here you will find pre-defined functions for reading the values of cells in an external spreadsheet. Now if you make a change to the external spreadsheet, NX does not automatically detect that and update the part file(s). What you need to do is after the part file is open, whether you're in the Expression dialog or not, you'll need to go to...

Tools -> Update -> Update for External Change

...so as to force an update of the NX model by reading in any changes from the spreadsheet.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top