AcCoreConsole publish any more than 2 drawing sets

AcCoreConsole publish any more than 2 drawing sets

Anonymous
Not applicable
864 Views
2 Replies
Message 1 of 3

AcCoreConsole publish any more than 2 drawing sets

Anonymous
Not applicable

I am reasonably new to using AcCoreConsole, anyway, I am calling it as follows

 

"C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe" /i "C:\Users\User\Documents\Drawings\Current\new.dwg" /s "C:\Users\User\Documents\Drawings\publish.scr"

 

It runs fine

 

my scr file looks like this

 

filedia 0
-publish
C:\Users\Mark Flewellen\Documents\Drawings\DrawingSets\test1.dsd
-publish
C:\Users\Mark Flewellen\Documents\Drawings\DrawingSets\test2.dsd
-publish
C:\Users\Mark Flewellen\Documents\Drawings\DrawingSets\test3.dsd
filedia 1
quit
y

 

whenever I try and run this it processes the first 2 dsd files then throws an error on the third. I have swapped the dsd file order around but always on the 3rd does it throw an AutoCad System error "FATAL ERROR: Unhandled Access Violation Reading 0x0000 Exception at 32348e4fh".

 

Any suggestions would be appreciated.

0 Likes
865 Views
2 Replies
Replies (2)
Message 2 of 3

Sea-Haven
Mentor
Mentor

May be something to do with publish try changing the script to run 2 publish then quit run the 3rd but reopen the dwg or maybe do all 3 as open and close.

 

When writing the batch file you can do for loops and use SET for say the aecorconsole path do a google. I seem to remember some smarter versions of this.

 

https://houseofbim.com/2016/10/05/son-of-a-batch-autocad-core-console-through-lisp/

bat file
echo off

:: Path to AutoCAD core console
set accoreexe="C:\Program Files\Autodesk\AutoCAD 2014\accoreconsole.exe"

:: Path to the script to run
set script="C:\Users\[USERNAME]\Desktop\IPAD\TESTER\tester2.scr"

%accoreexe% /i C:\Users\[USERNAME]\Desktop\IPAD\TESTER\TEST1.dwg /s %script%
%accoreexe% /i C:\Users\[USERNAME]\Desktop\IPAD\TESTER\TEST2.dwg /s %script%
%accoreexe% /i C:\Users\[USERNAME]\Desktop\IPAD\TESTER\TEST3.dwg /s %script%
%accoreexe% /i C:\Users\[USERNAME]\Desktop\IPAD\TESTER\TEST4.dwg /s %script%
%accoreexe% /i C:\Users\[USERNAME]\Desktop\IPAD\TESTER\TEST5.dwg /s %script%
pause

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks, I really want to stick with the dsd files as I have about 200 drawings in each file (around 3k drawings) in total that I am trying to get set up on a nightly/weekly schedule for publishing, the dsd files are good as they can direct where I want each PDF set to be saved for further processing.

 

I will have a play around with my scripts a bit more, see if there are some other options

0 Likes