-->
header image

Collection of AutoLisp for Infra Utilities - Lisp Help


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 TRIMT Trim around selected text
7 ETD To explore temporary directory
8 DTC To delete temporary directory content
 
1.  MEASURE DISTANCE BETWEEN TWO POINTS AND INSERT DISTANCE TEXT (MDI)

Menu: Measure distance between two points and insert distance text (MDI)

Functionality: To measure the distance between two selected points and insert the corresponding distance text.

Description: In survey drawing, distances are represented by text and not by dimensions as in mechanical drawings. Using MTP command, text representing the distance between two points can be measured easily.

Procedure:
  • Type ‘MDI’ at the command prompt.
  • Pick the first point: Select the first point among the points.
  • Pick the second point: Select the second point among the points.
Utilities MDI Lisp
                            Measure distance between two points and insert distance text (MDI)

2. REPEAT MEASURE COMMAND (MCR)

Menu: Repeat Measure command (MCR)

Functionality: To repeat the measure command. This is very helpful when multiple polylines are to be measured within same drawing.

Description: Measure command is one of the useful CAD commands. When working on big drawing if you have to measure many lines, then the measure command should be repeated multiple times. However, using ‘MCR’ command measure command can be run on multiple lines in one go.

Procedure:
  • Type ‘MCR’ at the command prompt.
  • Enter the First Layer: Enter the name of the layer for  the first intersecting line.
  • Enter the Other Layer: Enter the name of the layer for  the second intersecting line.
Utilities MCR Lisp
                                                      Repeat Measure command (MCR)

3. PUT CIRCLE AROUND TEXT (CIT)

Menu: Put Circle around Text (CIT)

Functionality: To put circle around text.

Description: This option is used to put circle around selected texts.

Procedure:
  • Type ‘CIT’ at the command prompt.
  • Select entities: Select text entities to create circle around them.
Utilities CIT Lisp
                                                             Put Circle around Text (CIT)

4. PUT BOX AROUND TEXT (BXT)

Menu: Put Box around Text (BXT)

Functionality: To put box around text.

Description: This option is used to put box around selected texts.

Procedure:
  • Type ‘BXT’ at the command prompt.
  • Select entities: Select text entities to draw the box around them.
 Utilities BXT Lisp
                                                     Put Box around Text (BXT)

5. SHOW ENTITIES OF THE SPECIFIED COLOUR (CLR)

Menu: Show entities of the specified colour (CLR)

Functionality: To show the entities of specified color.

Description: In CAD it is always better to have all the entities color same as the layer color. However, for practical reasons entity color might be different for some set of entities in the drawing. For quality purpose or for giving pen assignments during plotting, having a clear knowledge of various colors in the drawing is better. This can be done by viewing entities in different colors separately. Using ‘CLR’ command you  can see the entities of different color.

Procedure:
  • Type ‘CLR’ at the command prompt.
  • Type the color number: Enter the color number to display particular entity.
  • Type any key to continue: Keep entering color number for which you wish to see the drawing entities. Press Enter to come out of the lisp.
Utilities CLR Lisp
                                               Show entities of the specified colour (CLR)

6. TRIM AROUND SELECTED TEXT (TRIMT)

Menu: Trim Around Selected Text (TRIMT)

Functionality: To trim around the selected text and make it clear to view.

Description: Using the trim around selected texts option you  can trim texts to avoid overlapping of text on other entities. One common example where this can be used is when there are texts on the contour lines in a drawing, if text labels are overlapping the contour line, and then reading the contour lines becomes difficult. Using ‘TRIMT’ command, lines around the text can be trimmed.

Procedure:
  • Type ‘TRIMT’ at the command prompt.
  • Select Entities: Select all the texts around for which objects are to be trimmed.
Utilities TRIMT Lisp
                                                      Trim Around Selected Text (TRIMT)

7. EXPLORE TEMPORARY DIRECTORY (ETD)

ESurvey Lisps creates temporary files in Temporary directory set. These don’t have much significance after which particular functions get executed. However, ESurvey range of products doesn’t delete the files automatically. If you wish to quickly access the directory you may use ‘ETD’ command. It opens up temporary folder (C:\ESurvey\Temp). Using ‘DTC’ command you can delete the content in Temporary directory.

8. DELETE TEMPORARY DIRECTORY CONTENTS (DTC)