An AutoLISP routine for automatically placing tree blocks at selected point locations in AutoCAD.
This tool is designed to reduce repetitive manual work in GIS/CAD workflows where tree symbols need to be placed at multiple existing point locations.
In many GIS and CAD projects, point locations are already available in an AutoCAD drawing. These points may need to be represented using standardized symbols or blocks, such as tree symbols.
Manually inserting a tree block at every point can become repetitive and time-consuming when working with a large number of locations.
This AutoLISP routine automates the process by reading the coordinates of selected points and inserting a predefined TREE block at those locations.
Select Points → Run PT2BLK → Enter Scale → Automatic TREE Block Placement
The traditional manual workflow requires repeatedly:
- Identifying the required point locations
- Inserting the tree block
- Setting the required scale
- Placing the block at the correct location
- Repeating the process for every point
For a large number of points, this becomes a repetitive CAD production task.
The PT2BLK AutoLISP routine automates the repetitive tree-block placement process.
The routine:
- Accepts selected
POINTentities - Supports
AECC_COGO_POINTentities - Reads the coordinates of each selected point
- Inserts the
TREEblock at each point location - Allows the user to specify the insertion scale
- Uses
1.0as the default scale if no scale is provided - Processes multiple selected points automatically
- AutoCAD
- AutoLISP
- AutoCAD Blocks
- GIS/CAD Workflow Automation
| File | Description |
|---|---|
TreePlacement_AutoLISP.lsp |
AutoLISP routine for automated tree block placement |
Before.png |
Input showing existing point locations |
After.png |
Output showing automatically placed tree blocks |
Before running the routine, make sure a block named:
TREE
is available in the AutoCAD drawing.
The routine uses this predefined block name when placing tree symbols.
- Open AutoCAD.
- Type
APPLOADin the command line. - Select
TreePlacement_AutoLISP.lsp. - Click Load.
After loading the routine, type:
PT2BLK
in the AutoCAD command line.
Select the required point locations from the drawing.
The routine supports:
- AutoCAD
POINTentities - Civil 3D
AECC_COGO_POINTentities
Press Enter after selecting the required points.
Enter the required insertion scale when prompted.
If no scale is provided, the routine uses:
1.0
The routine reads the coordinates of the selected points and automatically inserts the TREE block at each location.
This eliminates the need to manually insert the tree block at every point.
A short demonstration of the AutoLISP routine showing the automated placement of TREE blocks at existing point locations in AutoCAD.
The AutoLISP routine is available in this repository:
Load the .lsp file into AutoCAD using APPLOAD, then run:
PT2BLK
- Automates repetitive tree-block placement
- Supports multiple point locations
- Supports AutoCAD POINT entities
- Supports Civil 3D COGO points
- Uses existing point coordinates
- Allows user-defined insertion scale
- Reduces manual CAD production time
- Useful for GIS/CAD workflow automation
- AutoCAD
- AutoLISP support
- A predefined block named
TREE - Point or COGO point locations in the drawing
Bapan Dutta
GIS | Remote Sensing | UAV | AutoCAD | AutoLISP | GIS/CAD Automation

