Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Journal vs Macro - Why journals are much slower to run? 1

Status
Not open for further replies.

neshom

Mechanical
Feb 7, 2016
43
In NX 10, I created a macro to change the transparency of a part to 60%, and I assigned the macro to a button. I did the exact same task using a journal.

When I click on the macro button, it immediately changes the transparency of the part. However, when I click on the journal button, it takes around 2 second to run the task. They both successfully changes the transparency of the part. But, I am wondering why journal is much slower than macro?

I tried to improve the speed of the journal by compiling it to a dll, but it shows exactly same slowness.

I appreciate any comment in this regard.
 
Replies continue below

Recommended for you

I have noticed the same, and curious if somebody can explain this.


Regards,
Tomas
 
If you run the journal again, is the time less?

Mark Rief
NX CAM Customer Success
Siemens PLM Software
 
If you run your code as a "journal" file, the code needs to be compiled and loaded into memory before it is run. The compiling and loading step can take a moment or two. Since you have compiled your code to a dll file, it no longer needs to be compiled, but it still needs to be loaded into memory. To speed your code even more, you can change the "unload option" to "at termination", recompile your code and place the resulting dll file into the NX "startup" folder. Doing so will load your code into memory when NX loads and it will stay in memory until the NX session is terminated.

www.nxjournaling.com
 
Kowski,
Isn't there a way to load the .dlls at ug startup but leave them into the "Application" folder ?
A specific variable maybe ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor