×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Automatic Import of .exp file

Automatic Import of .exp file

Automatic Import of .exp file

(OP)
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!

RE: Automatic Import of .exp file

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

DL

RE: Automatic Import of .exp file

(OP)
Thanks for the help! I don't have access to the GTAC library, but I will search with Google.  

RE: Automatic Import of .exp file

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
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Automatic Import of .exp file

(OP)
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!  

RE: Automatic Import of .exp file

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources