script doesnt' finish running (Accoreconsole)

script doesnt' finish running (Accoreconsole)

MANTONIOPM
Advocate Advocate
654 Views
11 Replies
Message 1 of 12

script doesnt' finish running (Accoreconsole)

MANTONIOPM
Advocate
Advocate

Hello, I have a problem.

Script doesn't stop running when I run it with accoreconsole. I would like to know what part of the Run.bat or layereval.scr code I have to modify so that when I get to the last drawing in the folder it doesn't start again with the first one.

I would be very grateful if someone who knows how to use accoreconsole could help me

0 Likes
Accepted solutions (1)
655 Views
11 Replies
Replies (11)
Message 2 of 12

paullimapa
Mentor
Mentor

I only see QSAVE in the script.

Any reason why you didn't include CLOSE command at end of script?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 12

MANTONIOPM
Advocate
Advocate

Hi, thanks for your response. The result of putting CLOSE in the script is the same: the script doesn't stop when it reaches the last file, continuing again with the first one.

0 Likes
Message 4 of 12

paullimapa
Mentor
Mentor

for troubleshooting purpose perhaps try following:

1. create folder directly under C: drive like Test and modify bat to run in this new Test folder

2. place just 3 dwgs in Test folder

3. Run bat file again and see what happens

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 12

MANTONIOPM
Advocate
Advocate

Before writing in this forum I already tried in C. In any case, it would not be a good solution, because the dwg files with which I am going to work will be on a server. I think the BAT file is missing some code to end the script when it goes through all the files in the folder.

0 Likes
Message 6 of 12

paullimapa
Mentor
Mentor
Accepted solution

You can try alternative bat file construction as demonstrated here

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/accoreconsole-batch/td-p/8487768


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 12

paullimapa
Mentor
Mentor

in dos batch file, not sure why you you would need at the end: /l en-US

do you know what this is supposed to do?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 12

MANTONIOPM
Advocate
Advocate

Trying with that code accoreconsole fails, while with mine it doesn't. The only thing that I can't get it to stop when it reaches the end, because otherwise it works for me

 

0 Likes
Message 9 of 12

MANTONIOPM
Advocate
Advocate

/l en-US is the language

0 Likes
Message 10 of 12

paullimapa
Mentor
Mentor

Would it make a difference if this was not included in the batch file?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 11 of 12

MANTONIOPM
Advocate
Advocate

there is no difference, the script continues to do the same

0 Likes
Message 12 of 12

paullimapa
Mentor
Mentor

I’m unable to reproduce your problem on my end. I even created matching folder names. I even tried a different but still local drive. So there’s nothing wrong with the batch or script file. The only difference really is your apps or plugins you have loading with your AutoCAD and your dwgs which are located on a mapped drive. So if you can just create a test folder on your local drive and copy the same three test dwgs over and try that


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes