Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

How to encode in nxopen using java for drafting the body ?

I'm a newer to nxopen.I want to draft the body using From edges.The draft angle is 5. I read the nxopen api for java,but I also know how to encode?Could you show me the code in java?Thank you very much!!!

For detail refer to the below picture.

4 REPLIES

Re: How to encode in nxopen using java for drafting the body ?

Have you tried recording journal (in Java Language) while creating this draft manually in NX UI? After that you can take a look what was recorded in journal and reuse it in your NXOpen project.

Marek Pawlus, NCmatic

Production: NX 11.0.1
Development: C#, Tcl/Tk, CSE
Solution
Solution
Accepted by topic author jav
‎05-06-2016 10:44 AM

Re: How to encode in nxopen using java for drafting the body ?

The journal recorder is a great way to learn the NXOpen API. Change your journal language preference to Java (menu -> preferences -> user interface -> journal); then record a journal while executing a taper command in NX. Stop the journal recording after applying the taper and study the resulting code. Experiment with the code and modify it to your needs.

Solution
Solution
Accepted by topic author jav
‎05-06-2016 10:44 AM

Re: How to encode in nxopen using java for drafting the body ?

The best answer for this is to record a journal. First, set your journal language to Java (Preferences, User Interface, Tools, Journal, Journal Language). Then start recording a journal (Tools, Journal, Record). Work through your steps interactively to produce the feature you want. Stop recording the journal (Tools, Journal, Stop Recording.

 

The journal captures the API needed to repeat the steps you performed interactively, in Java.

Re: How to encode in nxopen using java for drafting the body ?

Thank you very much!  I know how to do it!