Submitted by Maciek27 on Tue, 02/07/2017 - 14:57
Forums:
Hi! My experience with programming is limited, especially creating nx journals is a fresh topic for me. However I am trying to use inside my journal a default operation, like revolve or extrude, with user interaction - I mean specifying all settings and applying. After applying the journal should execute next steps (similarly like 'user entry' during recording macro). I have found no help on the Internet about this topic, so I would be very grateful for some tips
re: user interaction in journal
Using a journal, you cannot interact with the user through the standard NX dialogs. A journal cannot open a standard dialog, wait for user input, then pick up where it left off. If you have an author license and an NX styler license, you could build your own dialogs that would be under the control of your code.
If all you want to do is open a dialog with pre-set values, have a look at "dialog favorites" or using a macro. A "favorite" allows you to set values in a dialog box and save it for future use. When you open the favorite, the pre-selected values are entered for the user.
Not good... Exactly what I
Not good... Exactly what I need is to revolve or extrude some 2D object with defined color and obtain a body with the same color as original object. By the way I don't want to loose a possibility of setting parameters of the operation. Should I create my own dialog window with every option, or maybe you see any smarter solution of this challenge?
re: color bodies
One option would be to create a journal that changes the color of the body after the body has been created. So you could create the extrudes and revolves in the default color then the journal would look at the parent curve color and change the body color accordingly. There is a journal posted on eng-tips that does this:
http://www.eng-tips.com/viewthread.cfm?qid=364540
Thanks a lot! :)
Thanks a lot! :)