×
Menu
Index

How To Tell If AcroPlot Is Running

In certain cases you may want to disable certain scripts from running that may halt the batch processing in AutoCAD if AcroPlot or AcroPlot Pro are running.  We have provided 4 registry settings that save the time that AcroPlot was started and also the time that we tried to start opening the current AutoCAD drawing to help make it easy for you to determine if AcroPlot is doing the processing.
 
The values are stored as doubles in the Registry and the decimal part of the value is the percentage of the day.  So multiplying the decimal portion by 86400.0 will give you the number of seconds elapsed since midnight.  The integer portion changes between the standard Windows date and the AutoCAD Jullian date by 2415019 days.
 
The values are saved under the current user's values:
HKEY_CURRENT_USER\Software\CADzation\AcroPlot
 
For VB users you can use the following 2 keys which are based on the system date and time given by the Now function.
StartTime - Stores the date and time that the AcroPlot dialog was started.  This value is reset to 0 when the form is closed so in theory yo could just check this value as long as the program is not ended from the task manager or by some other abnormal way.
Open Time - Stores the date and time that AcroPlot tried to open the last drawing in AutoCAD.  This is the safest value to use as you could determine the maximum amount of time it takes to open your drawings and then compare the times. This value is also reset to 0 when the form is closed.
 
For AutoLisp and VisualLisp users you can use the following 2 keys (using the Visual Lisp vl-registry-read) which are based on the value returned from the AutoCAD date system variable.
StartTimeAutoCAD - Stores the date and time that the AcroPlot dialog was started.  This value is reset to 0 when the form is closed so in theory yo could just check this value as long as the program is not ended from the task manager or by some other abnormal way.
Open TimeAutoCAD - Stores the date and time that AcroPlot tried to open the last drawing in AutoCAD.  This is the safest value to use as you could determing the maximum amount of time it takes to open your drawings and then compare the times. This value is also reset to 0 when the form is closed.