Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Automatic Import of .exp file

Status
Not open for further replies.

abheme

Mechanical
Apr 22, 2010
4
I am looking for a way to have my part file automatically import a new .exp file when the part opens.

I am using NX6 to make pump parts. The pump dimensions change slightly between designs, so I have created one generic assembly with generic parts. I get the new pump dimensions from calculations done in Excel or Mathcad, so I have written code in Excel that will take these new values and write an .exp file for NX. My program also opens up the generic part/assy automatically, but I have not found a way to automatically open this new .exp file from within NX. For now, I have a command button that runs my Journal file when it is clicked, but I was hoping to find a way for it to import automatically when the generic part/assembly file was opened.
Thanks for any help!
 
Replies continue below

Recommended for you

Do a search in the GTAC library on '.NET add callback function' and you'll get exactly what you're looking for!

DL
 
Thanks for the help! I don't have access to the GTAC library, but I will search with Google.
 
Note that if you contact GTAC they can provide you with a BBS-only 'webkey' ID and password which would allow you access to the BBS, an additional source for information about Siemens PLM Software products including NX and in particular, programming tools.

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

To an Engineer, the glass is twice as big as it needs to be.
 
Thanks for the tip. I tried to contact GTAC, but have not been able to get any sort of webkey. My bigger problem is that I am working in Germany, but I have been trying to contact folks in the US for help because my German isn't great yet. The NX licenses we have were purchased through another company, not directly from Siemens, and I haven't been able to find the correct information needed for a webkey from my colleagues or the company we purchased from. I'll keep trying!
 
You can use a 'user exit' to run some code when the part opens. Instead of clicking your command button when the part opens, the user exit will run when the part opens.

If you go this route, beware that the code will run whenever any part is opened. You will need to add some sort of check to import the exp file only when a certain file(s) are opened.

Search for 'user exit' in the help files for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor