The purpose of these samples is to showcase the power of the AutoLISP API for customizing ArcGIS for AutoCAD and to inspire users to create their own custom AutoLISP code for the benefit of their own projects.
A series of sample custom AutoLISP commands and functions are provided below, along with explanations and use case demos.
Click to explore the sample tools below
List of Esri provided AutoLISP Samples:
- Calculate New Field- Calculates the values of a new ArcGIS for AutoCAD attribute field by applying a mathematical expression onto the values of other fields.
- Copy Attributes- Copies the ArcGIS for AutoCAD attributes from one entity and applies them to another.
- Export Attribute Table to CSV file - Exports an ArcGIS for AutoCAD feature layer's ArcGIS for AutoCAD attribute table as a CSV file.
- Update COGO Points From Field- Updates COGO point descriptions based on an ArcGIS for AutoCAD attribute field.
Note:
These tools do not fall under Esri technical support.
How to use the sample code
List of steps to use a code sample:
- Download the free ArcGIS for AutoCAD plug-in.
- Download the .lsp file containing the tool you want to use.
- Type LSP in the AutoCAD command line and then choose LOAD.
- After you select the file to load from your directory, the tool will be available to use from the command line.
Example tool download video example
How to download and use Esri provided AutoLISP Samples.