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
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
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
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.
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
RE: nx customization using java
Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)