AS2023 Audit log interrupts batch processing

AS2023 Audit log interrupts batch processing

chrisjspower
Enthusiast Enthusiast
312 Views
1 Reply
Message 1 of 2

AS2023 Audit log interrupts batch processing

chrisjspower
Enthusiast
Enthusiast

Hi everyone,

 

I am using advance steel 2023 and if I were to have a script run the command "audit" at any point in the script it would end at the completion of the audit command which opens an auditlog.txt file.


eg:
"UCS w -view swiso zoom e -purge a n audit y _vscurrent 2 _qsave "

where the "y" is in response to the request to fix errors.
If I wanted to batch run this for many drawings it would stop before "_vscurrent" and not open the next drawing.

It looks to me like acad is no longer the active application and it loses control/ability to invoke commands and my routine is effectively cancelled.
Is there a way to suppress opening of this text file, or writing to the log without opening it?

Kind regards,

0 Likes
313 Views
1 Reply
Reply (1)
Message 2 of 2

Moshe-A
Mentor
Mentor

@chrisjspower ,

 

During AUDIT if some issue occur, it stops to inform the user about the issue - you agree?!

so it is Not good idea to use it in a middle of script or even at end cause it will fail to move on to the next drawing. 

 

to run audit on a list of drawings i would create another 2 script to be run in a raw (assuming the other commands you running is script 1)

script 2,  run the wblock command.

script 3, run audit and save.

 

Running wblock on each drawing will do 2 things:

1) A complete purge reducing file size to min.

2) better prepare the drawing for audit (fixing errors).

 

Moshe

 

 

 

0 Likes