AcCoreConsole Noob

AcCoreConsole Noob

burniksapwet
Enthusiast Enthusiast
5,615 Views
9 Replies
Message 1 of 10

AcCoreConsole Noob

burniksapwet
Enthusiast
Enthusiast

Guys, I am trying to understand how to use AcCoreConsole but I already cannot get past my problem of trying to open a drawing.

 

"accoreconsole.exe /i "C:\Temp\SampleDrawings\Lights.dwg" /s "c:\Temp\PDF_EN\PDFGen_EN.scr" /l en-US"

 

Typing this out does not work for me because right after I type accoreconsole.exe and spacebar I already get an error of "Accoreconsole.exe unknown command "exe". Press F1 for help.  It always tries to run whatever I type after I hit spacebar. What am I doing wrong? Hopefully the smart people here can help me out better. Thanks.

0 Likes
Accepted solutions (1)
5,616 Views
9 Replies
Replies (9)
Message 2 of 10

dbroad
Mentor
Mentor

Where are you entering this command?  It is not an internal AutoCAD command and must be entered in a windows shell or via a batch file.  You must also include the path to the accoreconsole.exe.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 10

burniksapwet
Enthusiast
Enthusiast

How do I write the location of Accoreconsole.exe?

 

cd "C:\Program Files\Autodesk\AutoCAD2013"
c:
cls
accoreconsole.exe /i "C:\Temp\SampleDrawings\Lights.dwg" /s "c:\Temp\PDF_EN\PDFGen_EN.scr" /l en-US
PAUSE

 

This is what i am trying to run.  I'm so sorry for the noob question but I am not particularly good at this.  My Accoreconsole.exe is located in C:\Program Files\Autodesk\AutoCAD2013. Thank you.

0 Likes
Message 4 of 10

Ranjit_Singh
Advisor
Advisor

If it is located here C:\Program Files\Autodesk\AutoCAD2013 then hold windows key + R and type in there "C:\Program Files\Autodesk\AutoCAD2013\accoreconsole.exe" with the quotes

0 Likes
Message 5 of 10

Ranjit_Singh
Advisor
Advisor

If you want to type it in AutoCAD then first type _shell and then at the shell command enter "C:\Program Files\Autodesk\AutoCAD2013\accoreconsole.exe" with the quotes

0 Likes
Message 6 of 10

burniksapwet
Enthusiast
Enthusiast

So how do I write this properly if I want it to be as a batch? I know what format everything needs to be at, I just dont know how to write the initial process part of saying where my accoreconsole is.

 

cd "C:\Program Files\Autodesk\AutoCAD2013"
c:
cls
accoreconsole.exe /i "C:\Temp\SampleDrawings\Lights.dwg" /s "c:\Temp\PDF_EN\PDFGen_EN.scr" /l en-US
PAUSE

 

How do I write the script properly on top? I get an error when i do so. Basically it says Accoreconsole.exe is not recognized as an internal or external command, operable program or batch file.

0 Likes
Message 7 of 10

Ranjit_Singh
Advisor
Advisor
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\xxxxxxxx>cd C:\Program Files\Autodesk\AutoCAD 2015

C:\Program Files\Autodesk\AutoCAD 2015>accoreconsole.exe /?
AutoCAD Core Engine Console - Copyright Autodesk, Inc 2009-2013.

Usage:
AcCoreConsole.exe [/i <input dwg>] /s <script> [/l <language>] [/isolate <userid> <userDataFolder>] [/readonly] [/p[rofile] <profile>]

Example:
AcCoreConsole.exe /i 8th_floor.dwg /s test.scr /l en-US

ERROR: Something went wrong. ErrorStatus=53.

C:\Program Files\Autodesk\AutoCAD 2015>Accoreconsole.exe /i "C:\Users\Default\AppData\Drawing4.dwg"
AutoCAD Core Engine Console - Copyright Autodesk, Inc 2009-2013.

************************MessageBox****************************
AutoCAD Alert
 C:\Users\Default\AppData\Drawing4.dwg is currently in use by :
 xxxxxxxxxx.
Would you like to open the file read-only?
>>>Responding: Yes.
**************************************************************






Regenerating layout.
Regenerating model.

Loading Modeler DLLs.
Press ENTER to continue:

Command:
Command:

Command:
Command:

Your batch will be something like this

 

 

cd C:\Program Files\Autodesk\AutoCAD 2015
Accoreconsole.exe /i "C:\Users\Default\AppData\Drawing4.dwg"

 

save the file as whatever.bat

Message 8 of 10

greg_battin
Advocate
Advocate
Here is my blog post about how to get up and running with the core console.
https://autocadtips1.com/2013/01/30/up-and-running-with-the-2013-core-console/

~Greg
Message 9 of 10

burniksapwet
Enthusiast
Enthusiast

This is awesome. Thank you so much.  I have a quick question about the ScriptPro 2.0.  Is there a way to set up ScriptPro 2.0 to always use accoreconsole by default?  I find myself having to always update that. We would like to use this application and automate the process through the network but I dont know if that would be possible if we have to always manually to this.  Thanks.

0 Likes
Message 10 of 10

Anonymous
Not applicable
Accepted solution

Here is how I use AcCoreConsole....

 

BAT file -

-------------------------------------------

echo off
echo Starting AcCoreConsole
c:
cd C:\Program Files\Autodesk\AutoCAD 2013
echo ================================================================================
echo Enter Block Sub-Folder name [F:\Blocks\...]
SET /P dname=Enter F:\Block Sub-Folder name ?
FOR %%f in ("F:\Blocks\%dname%\*.dwg") DO "C:\Program Files\Autodesk\AutoCAD 2013\AcCoreConsole.exe" /i "%%f" /s "F:\Blocks\_FixBase.scr" /l en-US
echo Done!
pause

-------------------------------------------

Note -

This defaults to 'F:\Blocks' folder and allows user to input a subfolder.

You can remove the pause at end if you want.

 

 

Here is an example of '_FixBase.scr' script file to change base point of drawing to 0,0,0, zoom extent and purge 3 times

-------------------------------------------

BASE
0,0,0
ZOOM
E
ZOOM
.95X
PURGE
ALL
*
N
PURGE
ALL
*
N
PURGE
ALL
*
N
UPDATETHUMBNAIL
31
UPDATETHUMBSNOW
SAVE

Y

 

-------------------------------------------