Autocad to Photoshop with Layers


We’ve been searching for a while for a simple way to convert AutoCAD drawings into Photoshop files preserving all layers. Converting AutoCAD files into Photoshop files is not very complicated, a simple PDF export from AutoCAD is all that it takes. However, by doing so all layers from the original AutoCAD file will be merged together into a single layer in Photoshop. After a lot of internet searching it was clear to us that there isn’t a simple, ready to go, solution for this.

To only way to preserve AutoCAD layers in Photoshop is to print or export each AutoCAD layer into a separate PDF file. Next, rasterize all PDF files into Photoshop files and finally merge all Photoshop files together. Doing so manually requires a lot of effort but by using two scripts we’ve created it all can be done with a few mouse clicks.

This tutorials requires one visual lisp script for AutoCAD and one javascript for Photoshop. For AutoCAD paperspace/layout units in millimeters download “layers2PDF.lsp”. For AutoCAD paperspace/layout units in inches download “layers2PDF_inches.lsp”. The Photoshop script “RasterizePDFfiles_v1.06.jsx” is unitless and works for drawings in millimeters and in inches. Both scripts can be downloaded here:


Version: 1.1.17
License: Free
Document format: AutoCAD visual lisp script
File size: 14.04 KB
Downloads: 3726
Platform: Windows
Download: layers2PDF.lsp


Version: 1.1.17
License: Free
Document format: AutoCAD visual lisp script
File size: 14.03 KB
Downloads: 2138
Platform: Windows
Download: layers2PDF_inches.lsp


Version: 1.06
License: Free / GNU General Public License
Document format: Adobe javascript
File size: 29.28 KB
Downloads: 2713
Platform: Windows and OS X
Download: RasterizePDFfiles_v1.06.jsx

Before you start

Our layers2PDF script still has some limitations, the most important are:

  • layers2PDF.lsp will only export from “Layout”.
  • layers2PDF.lsp will only export if your assigned printer/plotter is “AutoCAD PDF (High Quality Print).pc3”.
  • layers2PDF.lsp skips empty layers (as designed).
  • layers2PDF.lsp might change the layer status of your current drawing (on/off, freeze/unfreeze and current layer).
  • layers2PDF.lsp is written in visual lisp and will not run on AutoCAD for Mac.

Getting started

  1. Open your drawing in AutoCAD.

  2. Click on one of the “Layout” tabs to start a new layout. In this example we name our new Layout “Arch B landscape” .

    Choose paper size and other settings as you prefer.

    Our script only works with the “AutoCAD PDF (High Quality Print).pc3” printer/plotter selected. Make sure you choose the “AutoCAD PDF (High Quality Print).pc3” printer/plotter in your page setup.

  3. Adjust the scale of the current page “viewport”


Now your almost ready to use our script for the first time. As you might know already, AutoCAD will open a PDF file in the associated PDF reader as soon as it’s done printing. Some PDF viewers can’t handle more than 20 PDF files at once. To avoid problems its good practice to disable the option to open printed PDF files by default.

AutoCAD will remember this setting the next time you use our script again so this step needs to be applied only once.

  1. Open the “Page Setup Manager” dialog again (right mouse click on the “Layout” tab and choose “Page Setup Manager”).

    Select “Arch B landscape” and click “Modify…” to open the “Page Setup” dialog again.

  2. Next click “PDF Options” to open the “PDF Options” dialog. Uncheck the “Show results in viewer” option.

  3. Close the “PDF Options” dialog by clicking “OK” and click “OK” again to close the “Changes to a Printer Configuration File” dialog.

  4. Click “OK” once more to close the “Page Setup” dialog. If AutoCAD shows the below dialog click “Yes” to close the dialog.

  5. Finally close the “Page Setup Manager” dialog by clicking “Close”.

Load the Script

Now all preparations are done it’s time to load the script and export each layer to an PDF file.

  1. Download the “layers2PDF.lsp” or the “layers2PDF_inches.lsp” script (see on top of this page) and save this script on your hard drive. Use the Windows Explorer to browse the downloaded script and drag the script into the AutoCAD Layout. Click “Load Once” of “Always Load” if AutoCAD shows the below security dialog.

Check the AutoCAD command line to make sure the script is loaded.

Export AutoCAD layers to PDF files

  1. Type the “layers2pdf” command on the command line. AutoCAD executes the script and shows the “Browse For Folder” dialog. Choose a folder location to save all PDF files. Click “Make New Folder” if you like to create a new folder. Click “OK” to start converting all layers to PDF files.

AutoCAD will now export each layer as a PDF file. This might take a few seconds, just wait and make sure not to interrupt the export process. When the script is finished it shows “Layers2PDF finished. Exported PDF files can be found in: ……” on the command line.

Use the Windows Explorer and browse to the folder that contains the exported PDF files.

  1. AutoCAD can now be closed.

Rasterize PDF files into Photoshop PSD files

The next step is to rasterize vector PDF files into Photoshop PSD files. For this step we will use our second script.

  1. Download the “rasterizePDFfiles_v1.06.jsx” script and save it on your computers hard drive

  2. Open Photoshop but do not open any files. If Photoshop is already open make sure all files are closed. Use the Windows Explorer to locate the downloaded script and drag the script into Photoshop. The script executes as soon as you release your mouse button.

  3. Click the “Add..” button and browse to the folder where AutoCAD saved all the PDF files. Select all PDF files and click “OK”.

  4. Click the “Choose…” button and select a folder to save all rasterized PSD files. Again, use the “Make New Folder button if you like to create a new folder.

  5. Finally click “Convert” to start the conversion of the selected PDF files into PSD files. Click “Close” when the conversion is finished to close
    the script dialog.

  6. Use the Windows Explorer to check if the creation of the PSD files was successful.

Merging PSD files in Photoshop

The final step is to merge all PSD files together into one file. For this task you will use the default Photoshop script “Load Files into Stack”.

  1. Close all files in Photoshop and choose for “File” » “Scripts” » “Load Files into Stack”. The “Load Layers” dialog will become visible.

  2. Click the “Browse” button and select all Photoshop files created in the previous step. Next click “OK” and Photoshop will merge all selected files together.

  3. The final result in our example looks like:

  4. Take a look at the Photoshop “Layers” dialog. Notice that all AutoCAD layers are now available in Photoshop.

  5. You might want to add a new layer on the bottom of your layers and fill this layer with a “White” fill colour. This will increase the visibility of your drawing.

  6. Hold down the “Alt” and click one of the Photoshop layers in the “Layers” dialog. All layers except the one you’ve clicked on will be turned off. Turn the “White” layer on again. In our example it now shows only the crowns of the trees. This is how you can colour your layers one by one.

Finished result:

As all items are converted on separate layers it’s much easier now to colourise this drawing. In the example below we’ve been using water paint textures to finish this drawing.

10 thoughts on “AutoCAD to Photoshop with layers”

  1. amazing!! Layers2PDF is the kind of script i was searching for days and days!!!
    if someone goes to photoshop is a mast!! with this you have 100% control on your drawing
    fast selection (of all trees or all walls or what you want), you also have transparency control on each layer and most of all, some kind of line weight with strokes!
    thank you!!!

  2. The example is great.
    However, to maximize automation, you could write a single script for both using VBA. VBA is supported in both AutoCAD and Photoshop.

    1. You’re probably right. We have programming skills in many languages however VBA is not one of them.

  3. Its not working with imperial units (Feet/Inches) Kindly update this routine so that it work with Feet/Inches.

    1. Sorry for the late reply, can you provide us with a sample drawing so we can look into this? Thanks.

      Update: January 2020: an adjusted script version for working in inches has been released.

  4. well it says i can’t save the files in ph “the parameters for command Save are not currently valid” any help?

Leave a Reply

Your email address will not be published. Required fields are marked *