Showing results for 
Search instead for 
Did you mean: 

Lag with ACTION/PRE in Menuscript


So I have a script that I want to run whenever the number of drawing sheets are modified. Currently I have it running with the ACTION/PRE option for the general Delete and Paste functions which could be used to change the number of drawing sheets.


The problem is that I am experiencing some lag with these functions now. The first thing the script does is check if the user is in drafting and returns if they are not. Even just checking the module and returning causes noticable lag in the Modeling application.


Is there another way to do this or something I can change about my script to reduce or elliminate this lag?


Re: Lag with ACTION/PRE in Menuscript

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Do you use a DLL or the not compiled Journal.


Using a DLL would improve performance, if you set it to not be released immediately as the unload option.

A Journal always results in a delay, since it must be compiled just-in-time on every execution.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 ( | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide