Skip to content

Instantly share code, notes, and snippets.

@erfg12
Last active August 24, 2021 14:55
Show Gist options
  • Save erfg12/cb7d7c5ddc9b60d406f6ebbb09253dc7 to your computer and use it in GitHub Desktop.
Save erfg12/cb7d7c5ddc9b60d406f6ebbb09253dc7 to your computer and use it in GitHub Desktop.
AutoCAD script file to convert DXF or DWG files to PDF. Run with accoreconsole.exe in AutoCAD directory. Works with AutoCAD LT.
; C:\Program Files\Autodesk\AutoCAD LT 2021\accoreconsole.exe /i "FILE_PATH_HERE\test.dwg" /s "FILE_PATH_HERE\plotPDF.scr"
; This example script file expects there to be a `Layout1` layout for each file.
_PLOT
_Y
Layout1
DWG To PDF.pc3
ANSI full bleed A (8.50 x 11.00 Inches)
_Inches
_Landscape
_No
_Extents
_Fit
0,0
_Yes
.
_Yes
_N
_N
_Y
PDF_FILE_NAME_HERE
_N
_Y
_QUIT _Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment