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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading points from spreadsheet - NX4

Status
Not open for further replies.

VitaminM

Mechanical
Joined
Nov 18, 2007
Messages
8
Location
US
I've modeled an impeller blade using x,y,z points read from an Excel spreadsheet. My goal is to have a model that can be used for many impellers simply by changing the Excel file.

A typical parameter is defined as follows:
p20 = ug_cell_read("C:\My Documents\spreadsheet.xls", "AE31")

Other users won't store their spreadsheets as "C:\My Documents...." but rather as a different filename.

Can I create a parameter that defines the filename/location? Something like...
p21 = "spreadsheet.xls"
p22 = ug_cell_read("p21", "AE31")
?

 
This might be possible starting with NX 5 since string valued Expressions were introduced at that time. However, they were not yet supported in NX 4.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
How about this one then:
Is there a way to allow the number of rows in Excel govern the number of points in the model?

Right now, I have 24 points so I MUST have 24 rows in excel. I'd like to allow for more rows.

So if the excel file has 100 rows, the model should generate 100 points. Is this possible (in NX4 or other version)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top