### Define AutoCAD Setup Script
Source: https://help.autodesk.com/view/ACDMAC/2026/ENU?guid=GUID-5510017F-4656-478F-BD4C-AB6B1998BF55
A sample script file (.scr) that configures drawing settings such as grid, linetype scale, and layer properties. This script automates repetitive tasks typically performed when starting a new drawing.
```AutoCAD Script
grid on
ltscale 3.0
layer set 0 color red 0
```
--------------------------------
### Define Octant Arc
Source: https://help.autodesk.com/view/ACDMAC/2026/ENU?guid=GUID-06832147-16BE-4A66-A6D0-3ADF98DC8228
Example of using code 10 (00A) to define an arc based on radius, starting octant, and span. The syntax requires a radius followed by a signed byte representing direction, start octant, and span count.
```AutoCAD Shape Definition
10,(1,-032)
```
--------------------------------
### Define Plug-in Package Contents with XML
Source: https://help.autodesk.com/view/ACDMAC/2026/ENU?guid=GUID-CBDC037A-9B84-4ED2-B0A6-6552ECF59540
This XML file defines the structure and components of a plug-in package, including application details, company information, and a list of components like LISP files and resource files. It uses a specific schema version and specifies paths for modules and resources.
```xml
```
--------------------------------
### PackageContents.xml Structure for AutoCAD Plug-in
Source: https://help.autodesk.com/view/ACDMAC/2026/ENU?guid=GUID-40F5E92C-37D8-4D54-9497-CD9F0659F9BB
Defines the XML structure for the PackageContents.xml file, which contains metadata for an AutoCAD plug-in. This includes application details, company information, and component entries, specifying the main module file.
```xml
```
--------------------------------
### Create Drawing from Template and Run Script
Source: https://help.autodesk.com/view/ACDMAC/2026/ENU?guid=GUID-5510017F-4656-478F-BD4C-AB6B1998BF55
Command line syntax to initialize a new drawing using a specific template file before executing a startup script. Uses /t or -t switches for template selection.
```Windows
executable_path /t MyTemplate /b setup
```
```Mac OS
executable_path -t MyTemplate -b setup
```