To Manage Source Files with an AutoLISP Project (AutoLISP/VS Code)

Create an AutoLISP Project

  1. On the Activity bar, click AutoLISP Project Manager.
  2. In the AutoLISP Project Manager view, on the PROJECT toolbar, click Create a New Project.
  3. In the Save As dialog box, File Name text box (or Save As text box on Mac OS), type a name for the new project.
  4. Click Create.

Open an AutoLISP Project

  1. On the Activity bar, click AutoLISP Project Manager.
  2. In the AutoLISP Project Manager view, on the PROJECT toolbar, click Open an Existing Project.
  3. In the Open dialog box, browse to and select the AutoLISP project (PRJ) file to open.
  4. Click Open Project.

Save an AutoLISP Project

Project files are saved automatically in most situations, but you might need to save a project if an error was encountered.

Add and Remove Source Files in an AutoLISP Project

Add a source file
  1. In the AutoLISP Project Manager view, open an AutoLISP project (PRJ) file.
  2. Do one of the following:
    • On the PROJECT toolbar, click Add File to Project.
    • Right-click over the current project's name and choose Add File to Project.
  3. In the Open dialog box, browse to and select the AutoLISP source (LSP) file to add.
  4. Click Add to Project.
Note: Starting with version 1.4.0 of the AutoCAD AutoLISP Extension, you can add one or more an AutoLISP source (LSP) files from an open folder on the Explorer view. On the Explorer view, select the LSP files to add to the open project, and then right-click and choose Add File to Project.
Remove a source file
  1. In the AutoLISP Project Manager view, open an AutoLISP project (PRJ) file.
  2. Right-click over the AutoLISP source (LSP) file to remove and choose Remove File from Project.

Edit a Source File in an AutoLISP Project

  1. In the AutoLISP Project Manager view, open an AutoLISP project (PRJ) file.
  2. Click the LSP file to open and edit it in an editor window.