To Compile AutoLISP Files with the Make Application Wizard (AutoLISP/VS Code)

Note: The ability to compile a LSP file is supported in AutoCAD for Windows only; not available in AutoCAD LT for Windows. VLX files can be loaded on Windows only.

Multiple AutoLISP source and DCL files can be compiled into a single application file.

Tasks in This Topic:

Create an Application Make (PRV) File to Compile AutoLISP Source Files

  1. At the AutoCAD Command prompt, enter makelispapp.
    Note: If the MAKELISPAPP is an unknown command, change the value of the LISPSYS system variable to 1 and restart AutoCAD.
  2. At the Enter an option [Make/Properties/Rebuild/Wizard] <Wizard>: prompt, enter wizard.
  3. In the Make Application wizard, Wizard Mode page, click Expert. Click Next.
    • Expert - Displays all possible application options.
    • Simple - Suppresses the Application Options or Application Complication Options pages.
  4. On the Application Directory page, Application Location area, click Browse. Specify a location for the application and application make file.
  5. In the Application Name box, enter a name for the application and application make file. Click Next.
  6. On the Application Options page, select the application options you want to use when building the application. Click Next.
  7. On the LISP Files to Include page, click the Program Files Type drop-down list and select the type of files you want to add. Click Add and specify the program file to add, and then click Open.
  8. Add additional files to the application as needed. Click Next.

    Reorder the files in the list using the Top, Bottom, Up, and Down buttons. Select a file from the list and click Remove to remove it from the application.

  9. On the Resource Files to Include page, click the Resource Files Type drop-down list and select the type of files you want to add. Click Add and specify the resource file to add, and then click Open.
  10. Add additional files to the application as needed. Click Next.

    Select a file from the list and click Remove to remove it from the application.

  11. On the Application Compilation Options page, select Standard or Optimize and Link. Click Next.
  12. On the Review Selections/Build Application page, click Finish.

    Clear the Build Application option if you do not want to build the application now. Based on your choice, the application make (PRV) file is saved and the application (VLX) file is built.

Change an Application's Definition

Settings used to build a Visual LISP application can be changed before rebuilding an application.

  1. At the AutoCAD Command prompt, enter makelispapp.
    Note: If the MAKELISPAPP is an unknown command, change the value of the LISPSYS system variable to 1 and restart AutoCAD.
  2. At the Enter an option [Make/Properties/Rebuild/Wizard] <Wizard>: prompt, enter properties.
  3. In the Choose Application dialog box, select an Application Make (PRV) file. Click Open.
  4. In the Application Properties dialog box, change the properties for the application.
  5. Click Apply to save the changes and keep the dialog box open, or click OK to save the changes and exit the dialog box.

Rebuild an Application (VLX) File

An Application (VLX) file can be rebuilt as long as you have access to the original project and source files.

  1. At the AutoCAD Command prompt, enter makelispapp.
    Note: If the MAKELISPAPP is an unknown command, change the value of the LISPSYS system variable to 1 and restart AutoCAD.
  2. At the Enter an option [Make/Properties/Rebuild/Wizard] <Wizard>: prompt, enter rebuild.
  3. In the Choose Application to Build dialog box, specify the location of your application's make file.
  4. Click Open to rebuild the application.

    In rebuilding the application, AutoCAD recompiles all LSP source files, applying the specified compilation options, and packages your application files into a new VLX file. If your application contains many AutoLISP files, and you have only changed the source code in one or two files, the Make Application option can rebuild your application more efficiently.

Update an Application (VLX) File

An Application (VLX) file can be updated when the source or resource files are change.

  1. At the AutoCAD Command prompt, enter makelispapp.
    Note: If the MAKELISPAPP is an unknown command, change the value of the LISPSYS system variable to 1 and restart AutoCAD.
  2. At the Enter an option [Make/Properties/Rebuild/Wizard] <Wizard>: prompt, enter make.
  3. In the Choose Application to Make dialog box, select the application make (PRV) file to update. Click Open.