ESurvey Lisps

Energizing Survey Drawings

Welcome to the most powerful and feature rich lisp collection 'ESurvey Lisps'. CAD (AutoCAD / BricsCAD / GStarCAD/ ZwCAD) users have their own set of lisps for automation, which save a lot of time. But searching for a suitable lisp from this set of lisps is difficult. Also, most of these lisps are freely available on the Internet or custom made and hence are not properly documented. To address these issues, 'ESurvey Lisps' has been developed. 'ESurvey Lisps' is a collection of tailor-made lisp routines developed exclusively for AutoCAD users working on survey drawing. Hence, it is rightly called Energizing Survey Drawings.

ESurvey Lisps has more than 150 lisp commands, for ease of use and simplicity; lisps have been categorized under following heads:

Categorized list of lisps

Text

Text Value Modification

Lines

Polylines

3D Polylines

Layer

Blocks

Select

Interpolate

Import and Export

Print Ready

Macros

Area

Mathematics and Statistics

Elevate

Utilities

Survey Utilities

Setting Out

Lisp Commands

Text

Under Text categories, you can rotate, change angle or align texts with respect to selected text or parallel to line. Also, you can change case and justification of text.

Text Commands

Sl. No.

Command

Description

1

RT

Rotate text with respect to angle of points selected

2

ALT

Align texts with respect to selected text

3

PTX

Arrange text Around a Line

4

ALP

Align selected texts Parallel to selected line

5

CCA

Change text case (Initial Capital/Capital/Small)

6

CJ

Change text Justification

7

RTC

To change angle of text to read conveniently

Text Value Modification

Under Text Value Modification, you can interchange text; create new text and copy reference text to all other selected text. Also, you can divide, increment, add special value, concatenate and finally insert the sequential numbers to text.

Text Value Modification Commands

Sl. No.

Command

Description

1

ITX

Interchange the texts

2

ADT

Create new text using content of the selected texts

3

CPT

Copy Text of reference text to all other selected text

4

DVT

Divide text into sub texts

5

SQN

Insert Sequential numbers

6

INR

Increment available texts

7

ADV

Add specific Value to all the selected texts

8

APT

Concatenate Prefix/Suffix to available texts

9

RND

To round-off elevations to 0.005 precision

10

TMT

To trim around selected texts

Lines

Under Lines, you can join points or blocks and find overlapping lines. Also, mark intersecting lines of different layers.

Lines Commands

Sl. No.

Command

Description

1

JNP

Joint Points or Blocks depending on first and nearest selected Objects

2

OLL

Mark intersecting Lines of different layers

Polylines

Under Polylines, you can convert connected lines to Polyline, reverse and measure each segment and cumulative distance of polyline, mark chainages and each node and measure clockwise / anticlockwise bearing. Also, find total length of selected line and put the gradient.

Polylines Commands

Sl. No.

Command

Description

1

PJ

Convert Connected lines to Polyline

2

RPL

Reverse the polyline

3

MCH

Mark chainages along an alignment

4

MSE

Measure each Segment of polyline

5

MCD

Measure Cumulative Distance along a polyline

6

MEN

Mark Each node

7

BCW

Measure clockwise Bearing

8

BAW

Measure Anti-clockwise bearing

9

ETE

Find total length of Selected Lines

10

PLD

To indicate polyline direction

3D Polyline

Under 3D Polyline, you can create 3D line by selecting elevation texts in different combination. Also, you can remove z value of all the vertex of a polyline (Convert 3d polyline into 2D polyline).

3D Polyline Commands

Sl. No.

Command

Description

1

3DET

Create 3D Polyline by Selecting Elevation one by one

2

3JET

Create 3D Polyline by Selecting Elevation Text in a Group

3

3DT

Create 3D Polyline by Selecting Elevated Text one by one

4

3JP

Create 3D Polyline by Selecting Elevated Text in a Group

5

RZ

Remove Z From Polyline

6

2D3D

To convert 2D poly line to 3D polyline

7

3DZ

To mark and Z value at each vertex of 3D polyline

8

IVP

To interpolate at vertex points

9

3DFP

To convert 3DFace to 3D Polyline

Layer

Under Layer, you can pick the text for layer name; move each text of specified layer individually. You can show layer by layer and use layer manager to accomplish other tasks.

Layer Commands

Sl. No.

Command

Description

1

CRL

To pick the text for Layer Name

2

MVT

Move each texts of specified layer individually

3

NL

Show layer by layer

4

LMN

Layer Manager

Blocks

Under Blocks, you can insert block at the end point or at intersection or between selected points. Also, you can scale and change blocks in the drawing.

Block Commands

Sl. No.

Command

Description

1

IBEI

To Insert block at end or intersection point of selected lines

2

INB

To insert blocks at insertion point of all selected texts

3

CBL

To change layers of all the blocks of one type to a specified layer

4

ISB

To insert block in between two selected points in the angle of selection

5

BLR

To change blocks in the drawing with new blocks using given scale factor

6

CBB

To change layer of all the blocks in the drawing to the layer of block

7

IMA

To import attribute information

8

EXA

To export attribute information

Select

Under Select, you can initiate jump to text of same layer and other text. Select entities within a polygon.

Select Commands

Sl. No.

Command

Description

1

JTS

Initiate Jump to text of same layer

2

JTT

Jump to Next text

3

SWP

Select entities With in a polygon (Window)

4

SCP

Select Entities with in a polygon (Crossing)

5

SST

To select texts with same value in the drawing

6

ZTV

Select texts with Zero numeric value

Interpolate

Under Interpolate, you can interpolate at midpoint, at a given point and N values between given points and interpolate at given distance. Also interpolate randomly on basis of the selected texts under an interval

Interpolate Commands

Sl. No.

Command

Description

1

ISM

Interpolate at midpoint of selected texts

2

ISP

Interpolate at Given point

3

ISN

Interpolate N values between given points

4

ISD

Interpolate a Point at given distance

5

RNDT

Interpolate Randomly on the basis of Reference Text

6

SCT

To scatter elevations around CS

7

DRN

To dump random numbers

Import and Export

Under Import and Export, you can extract text within polygon boundary and export selected objects to CSV file and import text from CSV file as AutoCAD points.

Import and Export Commands

Sl. No.

Command

Description

1

SUY

Extract the text with in a Polygon boundary

2

IMP1

To import point data in CSV file as CAD text X,Y,Code

3

IMP2

To import point data in CSV file as CAD text X,Y,Z,Code

4

IMP3

To import point data in CSV File as CAD text (X,Y,Z,Z) (X,Y,Z,Code)

5

EXP1

To export selected objects to CSV file X,Y,Code

6

EXP2

To export selected objects to CSV file X,Y,Z,Code

7

EXP3

To export selected objects to CSV file (X,Y,Z,Z) (X,Y,Z,Code)

Print Ready

Under Print Ready, bulk print drawing, rotate text and block as well as scale text and block.

Print Ready Commands

Sl. No.

Command

Description

1

BPS

To set bulk plot settings

2

BPFS

To bulk plot and fit to sheet

3

BPGS

To bulk plot at given scale

4

RTB

To rotate text and block with given rotation angle

5

STC

To scale text with given factor

6

SBL

To scale block from its insertion point with given factor

Area

Under Area, you can find parcel and triangles area and populate parcel area find area of multiple objects.

Area Commands

Sl. No.

Command

Description

1

AMO

To add area of multiple objects

2

AE

To calculate area of selected object

3

RTR

To read triangle area

4

INA

To insert area text at pick point

5

LOA

To pick point to find lot area

Mathematics and Statistics

Under Mathematics and Statistics, you can find the minimum and maximum numeric value amongst the selected texts. View the basic statistics of the selected texts and also insert the summation for the selected texts.

Mathematics and Statistics Commands

Sl. No.

Command

Description

1

FDF

Find difference between overlapping Texts

2

MAX

Find texts having numeric value above specified value among the selected texts

3

MIN

Find Texts having Numeric value below specified value among the selected texts

4

STAT

To give basic Statistical details about selected text

5

LGP

To show a point at mentioned gradient at given scale

6

GRDL

To indicate gradient of the selected lines

7

TTL

To find the total of selected text

Elevate

Under Elevate, create 3D points and elevation text. Elevate selected objects and make elevation of selected texts to zero.

Elevate Commands

Sl. No.

Command

Description

1

CEE

Elevate a text as Per the elevation in Text

2

CEZ

Make elevation of selected text to Zero

3

CET

Create elevation text from a elevated text

4

CEP

Create 3D Points from elevation text

5

UEL

To elevate selected objects

Utilities

Under Utilities, you can measure distance, draw grid, show entities of specified color. Also, snap text to nearest grid point and trim around selected text and repeat measure command.

Utilities Commands

Sl. No.

Command

Description

1

MDI

To measure distance between two points and insert distance text

2

MCR

To repeat measure command

3

CIT

To put circle around text

4

BXT

To put box around text

5

CLR

To show entities of a specified colour

6

TRIMPT

Trim around selected text

7

ETD

To explore temporary directory

8

DTC

To delete temporary directory content

Survey Utilities

Under Survey Utilities, draw grid, snap text to nearest point the grid, find lat long of selected text, do traverse correction, and represent sea-leavel type elevation representation.

Survey Utilities Commands

Sl. No.

Command

Description

1

DGRID

To draw grid with given grid interval

2

SNAAP

To snap text to nearest point on the grid with given grid spacing

3

FLL

To show the lat long of a selected point

4

BXT

To put box around text

5

TC

To traverse correction

6

PCT

To paste clean text

7

SEA

To set sea-level type elevation representation for text and block

Setting Out

Under Setting Out, you can put leader with easting and northing, mark leaders, put easting northing, mark as well as export EN blocks, export vertex.

Setting Out Commands

Sl. No.

Command

Description

1

MPL

To mark elevation along a 3D polyline

2

LIP

To mark leader lines at given points

3

MSA

To mark easting, northing to each vertex and angle between segments

4

PLL

To put leader indicating X and Y

5

EN

To insert easting and northing at selected point

6

IEN

To insert EN block at text, block, point

7

VID

To export vertex

8

EEN

To export EN block information to file

Macros

While working with AutoCAD if you wish to save drawing editing time, it is better to use command prompt commands instead of Icons. ESurvey Lisps features over 50 macros that have been included after an extensive research which suit while working with survey drawings. In macro section ESurvey Lisps offers macros for majority of frequently used commands.

1. Select

Select Macros

Sl. No.

Command

Description

1

CC:

Short cut command for Copy Crossing

2

EW:

Erase entities with window selection

3

MW:

Move entities with window selection

2. Line Type

Line Type Macros

Set line type to selected entity easily

Sl. No.

Command

Description

1

CEN:

Set Center linetype to selected entity

2

CONT:

Set Continuous linetype to selected entity

3

Das:

Set Dashed linetype to selected entity

4

Dot:

Set Dashdot linetype to selected entity

5

HID:

Set Hidden linetype to selected entity

3. Units

Units Macros

Most of the ESurvey Lisp commands when create elevation texts depending on drawing precision create the elevation texts. To set the required units, following macros can be used

Sl. No.

Command

Description

1

UN0:

Set units to Zero Precision

2

UN1, UN2, UN3 and UN4:

Similarly sets respective unit precision

4. Zoom

Zoom Macros

Zoom is one of the highly utilized functions of drawing editor and naturally we zoom the drawing in variety of ways.

Sl. No.

Command

Description

1

ZE:

Zoom to display the drawing extents

2

ZP:

Zoom to display the previous view

3

ZC:

Zoom to display a window defined by a Centre Point

4

ZD:

Zoom to display the generated portion of the drawing with a view box

5

ZW:

Zoom to display an Area specified by the opposite corners of a rectangular window

6

ZS:

Zoom the display at a specified scale factor

7

Z8:

Reduce the current view to 80%

5. Miscellaneous

Miscellaneous Macros

Sl. No.

Command

Description

1

ELT:

Erase last drawn entity

2

OS0:

Turn off Osnap

3

QY:

Quick quit (without saving)

4

BRK:

Break Line at given Point

5

BN:

Display block name of selected entity

6

LDXF:

List DXF details of a selected entity

7

UB:

Undo back for any Lisp from ESurvey

6. Layer

Layer Macros

Sl. No.

Command

Description

1

BY:

Set the by layer property of the entities

2

LSET:

Set the Layer of picked entity

3

LC:

Change Layer of selected entities to Current Layer

4

DSL:

Delete the Objects of selected entities Layer

5

QL:

Quickly Create a New Layer

6

MCL:

Set specified Layer as Current Layer

7

RN:

Rename Layer

7. Layer ‘On and Off’

Layer ‘On and Off’ Macros

Sl. No.

Command

Description

1

OF:

Switch OFF Layers on the basis of Entity Pick

2

SLO:

Keep selected Layers ON

3

OFN:

Switch OFF Layers by specifying Layer Name

4

ON:

Switch ON the Layers

5

OFF:

Switch OFF all the Layers except the current Layer

6

ONN:

Switch ON all the Layers

8. Layer ‘Freeze and Thaw’

Layer ‘On and Off’ Macros

Sl. No.

Command

Description

1

FR:

Freeze the Layer on the basis of entity pick

2

FRN:

Freeze Layers by specifying Layer Name

3

THN:

Thaw Layers by specifying Layer Name

4

FRR:

Freeze all Layers

5

THH:

Thaw all Layers

9. Layer ‘Lock and Unlock’

Layer ‘Lock and Unlock’ Macros

Sl. No.

Command

Description

1

LK:

Lock Layer

2

UL:

Unlock Layer

3

LKN:

Lock Layer by Specifying Layer Name

4

ULN:

Unlock Layer by Specifying Layer Name

5

LKK:

Lock all the Layers

5

ULL:

Unlock all the Layers