Error while reading log file in Scriptpro

Error while reading log file in Scriptpro

phil.brown
Explorer Explorer
1,386 Views
6 Replies
Message 1 of 7

Error while reading log file in Scriptpro

phil.brown
Explorer
Explorer

So I run a lisp that is basic, looks like this;

zoom
extents
explode
all

-purge
all
*
N
Audit
y
qsave
close
Y

 

Saved as an .scr. Running in scriptpro seems to fail but if I open the drawing and copy and paste this script works a treat. Why would this be happening? The purge is pretty big and can take a while but increasing the timeout to 100 which was suggested in other posts doesn't seem to help. Over 100 files to process would be good if this worked. 

 

Cheers!

0 Likes
Accepted solutions (1)
1,387 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
How does it fail?
Is there an error message on the textscreen? or a pop-up?

Side note: are you an LT user by chance or providing this to LT users? Because you are not really deep-purging ('all' does not catch all, plus you only run it once when at least twice catches a lot more), you should AUDIT first and there are way better LISP routines (and free add-ins from the Autodesk app store) that do a way better job handling your desires task.
0 Likes
Message 3 of 7

phil.brown
Explorer
Explorer

Thanks. Tells me a lot of I'm doing wrong. I know there is also better ways to do this. I guess my question was more why the basic command lines work in a drawing but not in ScriptPro. 

 

Im using Civil 3D 2020, and the error from the log file is 

 

[ Status summary ]
Failed


Error while reading log file for C:\GCC_Maps\3345-22.dwg

 

So Audit first and repeat the purge?, I have found that these files only one purge is needed as after one purge there isnt anything else left to purge.

 

Could you give me the name of the free-addins you mention and be happy to give those a try?  

 

 

0 Likes
Message 4 of 7

hmsilva
Mentor
Mentor

@phil.brown wrote:

So I run a lisp that is basic, looks like this;

zoom
extents
explode
all

-purge
all
*
N
Audit
y
qsave
close
Y

 

Saved as an .scr. Running in scriptpro seems to fail but if I open the drawing and copy and paste this script works a treat. Why would this be happening? The purge is pretty big and can take a while but increasing the timeout to 100 which was suggested in other posts doesn't seem to help. Over 100 files to process would be good if this worked. 

 

Cheers!


@phil.brown  remove the CLOSE

SCRIPTPRO will close the dwg, to open the next one

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 5 of 7

pendean
Community Legend
Community Legend
0 Likes
Message 6 of 7

hmsilva
Mentor
Mentor
Accepted solution

@phil.brown in my previous post I suggested removing the command 'CLOSE' from the script, but I didn't remember that the 'EXPLODE' command doesn't work in the same way in a script.
A way to get around this situation is to set the system variable 'QAFLAGS' to 1 before 'EXPLODE' command, and turn back 'QAFLAGS' to 0 after.
Rename the attached 'script.txt' to 'script.scr' and try it in Scriptpro to see if it works as expected.

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 7 of 7

phil.brown
Explorer
Explorer
That seems to have worked. You legend!! Thanks.
0 Likes