×
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

acces to nx from other application - how?

acces to nx from other application - how?

acces to nx from other application - how?

(OP)
can I acces to NX from Excel for example

...
Set UGNX = GetObject(, "NX.Application")
...

how to declare NX.application
should I write some info to registry about NX...?
what to do?

RE: acces to nx from other application - how?

To access UG from excel the way I have seen it done was to create a hyperlink within excel. Assuming that you're running windows, because you're running excel, then so long as the system is set up to launch NX as the defualt for .prt files then creating a hyperlink to the file will cause it to open in NX when you click on the hyperlink.

In testing my system preferred that I start NX first.

The application I saw this used for was created as part expert system cum PLM tool for a company that I once worked for a few years back. Because they had a system that assigned a project number per product and derived sub part numbers and tooling item numbers by sequential increments based on the root number their system simply parsed that to a known file and directory path which information furnished a hyperlink. It was simple but effective.

Hope this helps

Regards

Hudson

RE: acces to nx from other application - how?

Ialscorp,

Depends what you are trying to do.  I normally would try and create a csv file from Ug then import that in. You can spawn a UG session using a run_journal.exe command but you need to write a Ug journal file to do what you need to do in UG. This could be launched in a script file or in a macro in excel.
The run journal executable is in nxroot/ugii/run_journal.exe

Hope that helps.

Mark Benson
Aerodynamic Model Designer

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