Script not running from batch file?

#1
Hi
One of my clients has sent me a large volume of drawing to modify. Where I can I have used a script routine to perform the basic changes.
As an example ALL of the entities have been drawn with colour set to white, not bylayer as is required.

A batch file calls the script file to modify all of the drawings in a folder by following the script file.
This worked in version 8 and 9, but not in 10.0
The script file works if run from within the drawing, but not from the batch file.

Ive attached the scr & batch file, can anyone help get this to run on 10.0?

Thanks
SteveN
Attachments
bylayer.zip
(561 Bytes) Downloaded 106 times

Re: Script not running from batch file?

#2
I found my error :)

corrected the end of the batch file to this
"bylayer.scr"

Corrected the scr file to 'quit instead of close.

However it runs VERY slowly as it has to open Icad & the close Icad for every drawing.

With 'close' in the scr file Icad just opens all of the drawings in the specified folder, but does not implement the script file.
Anyone know how to run the script WITHOUT closing Icad every time???

SteveN