Ellzy
Mechanical
- Apr 9, 2010
- 7
Hi,
I have some parts in UG NX4 containing expressions that are updated from an external spreadsheet. When I use the function "ug_excel_read" I am asked to specify a spreadsheet. When I use the menu to locate the spreadsheet it automatically populates the file path into the function formula. This works fine as long as my spreadsheet stays in the same location. If I move the spreadsheet to a different folder or location everything blows up. Is there a way to either make the file path a variable that I can change throughout all of the expressions in my part or can I leave it blank and have it default to searching for the spreadsheet in my working directory? All of this is assuming I am working in native UG right now. If more explanation of my problem or what I am looking for is needed, please let me know. Any advice is appreciated!
I have some parts in UG NX4 containing expressions that are updated from an external spreadsheet. When I use the function "ug_excel_read" I am asked to specify a spreadsheet. When I use the menu to locate the spreadsheet it automatically populates the file path into the function formula. This works fine as long as my spreadsheet stays in the same location. If I move the spreadsheet to a different folder or location everything blows up. Is there a way to either make the file path a variable that I can change throughout all of the expressions in my part or can I leave it blank and have it default to searching for the spreadsheet in my working directory? All of this is assuming I am working in native UG right now. If more explanation of my problem or what I am looking for is needed, please let me know. Any advice is appreciated!