After you have installed Microsoft Visual Studio (VS) Code, you can install and configure the AutoCAD AutoLISP Extension which will allow you to manage and debug custom AutoLISP programs.
AutoCAD Knowledge webinars are regular online tutorial series hosted by the Autodesk AutoCAD Product Experts to help users learn AutoCAD and create innovative 2D and 3D designs through interactive live webinars or on-demand tutorials. Types of AutoCAD tutorial topics: AutoCAD Basic features (such as dimensions, reuse content, layers). This comprehensive guide has everything you need to quickly become proficient with Autodesk's exciting new AutoCAD for Mac software. Award-winning author George Omura brings his legendary AutoCAD expertise and approachable style to this Autodesk Official.
Prerequisites
Topics in this Tutorial
Install the AutoCAD AutoLISP Extension
The AutoCAD AutoLISP Extension can be found in the Visual Studio Code Marketplace, accessible from inside of the Visual Studio Code application.
Tutorials Autocad For Mac Download
The following steps explain how to install the AutoCAD AutoLISP Extension from the Visual Studio Code Marketplace.
Launch Visual Studio Code.
In Visual Studio Code, on the Activity Bar, click Extensions (or click View menu > Extensions).
In the Extensions Search box, type autocad autolisp.
From the search results list, click Install under the AutoCAD AutoLISP Extension item.
After a few moments, the extension should be installed and listed in the Installed Extensions list.
Add a Working Folder
A working folder is required to store configurations for debugging AutoLISP (LSP) files, but the folder can also be used to manage your LSP files.
The following steps explain how to create a folder named LSP Files on your local drive in the Documents folder and then how to open that folder in Visual Studio Code.
Tutorials Autocad For Mac Shortcut
Note: Feel free to use a different name than LSP Files or to store the folder in a different location other than Documents. Just remember to substitute the location and name throughout the remainder of the tutorials.
Autocad Lt For Mac Tutorials
Do one of the following:
Windows
Launch File Explorer.
(Windows 8.1) On the Start screen, type explorer and click File Explorer.
(Windows 10) Click Start button > All Apps >Windows System > File Explorer.
Press Windows key + E.
In File Explorer, click in the address bar and type Documents. Press Enter to open the Documents folder.
On the Home tab, click New folder from the New panel.
In the in-place editor, type LSP Files and press Enter.
Mac OS
In Finder, on the Mac OS menu bar, click Go menu > Documents.
In the Documents window, on the Mac OS menu bar, click File menu > New Folder.
In the in-place editor, type LSP Files and press Enter.
Switch to Visual Studio Code.
In Visual Studio Code, on the Activity Bar, click Explorer and then click Open Folder (or click File menu > Open Folder/Open).
In the Open Folder dialog box, browse to and select the LSP Files folder.
Click Select Folder on Windows or Open on Mac OS.
Tutorials Autocad For Mac Versions
Configure the Debug Configurations
Visual Studio Code needs to be connected to AutoCAD for debugging, this connection is made through the use of a debug configuration.
Autocad For Mac Download
The following steps explain how to add the necessary debug configurations needed to connect Visual Studio Code to AutoCAD.
Autocad Software For Mac
In Visual Studio Code, on the Activity Bar, click Run and then click Create a launch.json File (or click Debug menu > Open Configurations).
On the Configurations menu, choose AutoLISP Debug: Attach.
In the editor window, lower-right corner, click Add Configuration and then choose AutoLISP Debug: Launch from the list that is displayed.
Change the debug configurations to include the following text in bold based on your operating system.
Windows
Mac OS
Click File menu > Save to save the changes to the launch.json file.
The launch.json file is saved in a subfolder named .vscode under the open working folder.