×
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

nx customization using java

nx customization using java

nx customization using java

(OP)
Hi,

I want to create journals in nx using java language. I am using eclipse for writing journals. I have the help file of NX open with me.

Can someone tell me where to find nx open API packages & how to import them in eclipse? When I am writing import nxopen.* in eclipse, its showing me "The import nxopen can not be resolved".

Thanx

RE: nx customization using java

So, two answers for you here... smile

FIRST ANSWER:

While Journaling can be used to record actions into Java:



...Java code cannot be played back through the Journaling mechanism in NX:



As stated, Java code must be compiled and executed like any other compiled NX Open application.

Runtime support is available for .NET Journals (VB and C#) and in NX 10, for Python.

Hope that helps clarify the "Journaling" situation!

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

RE: nx customization using java

SECOND ANSWER:

If you're just writing NX Open automation in Eclipse using Java (not technically Journaling) then here's the answer to the question you actually asked. smile

For the project in Eclipse, right click on the project in the Package Explorer and select “Configure Build Path”.

Click on the Java Build Path, and then the Libraries Tab. You want to "Add External Jars", and ad the NXOpen jar files to the build path.



For sure you'll want NXOpen.jar. The other two NXOpenUF and NXOpenUI are more specific if you need either user function calls or some interactive calls. In the image above, the developer has added a few more for this particular project, but that is the basic idea. Normally the NXOpen.jar file is in the …\kits\ugii directory of the installation. Here, the developer had copied it to another location, but that should not be necessary for a customer install.

Does that help?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

RE: nx customization using java

(OP)
Thank you so much Taylor. I was looking for the information which you have provided in the second answer :)

RE: nx customization using java

No problem. That was my guess. smile

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

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