-->
header image

Collection of AutoLisp for Maths and Stat - Lisp Help


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

1. FIND DIFFERENCE BETWEEN OVERLAPPING TEXTS (FDF)

Menu: Find difference between Overlapping Texts (FDF)

Functionality: To find difference between overlapping texts.

Description: In excel,you can find the difference between two columns easily and you use it many times. In CAD, using the ‘FDF’ command the difference between overlapping texts can be found out. If you need to find the difference between 2 Values, say ground level and formation level, ‘FDF’ command can be used.

Procedure:
  • Type ‘FDF’ at the command prompt.
  • Specify the Base Layer: Specify the base Layer Name
  • Select Entities: Select the texts of Base layer where you wish to compare
  • Specify the Compare Layer : Specify comparison Layer Name
Maths Stats FDF Lisp
                                               Find difference between Overlapping Texts (FDF)

2. FIND TEXTS HAVING NUMERICAL VALUE ABOVE THE SPECIFIED VALUE AMONG THE SELECTED TEXTS (MAX)

Menu: Find texts having numerical value above the specified value among the selected texts (MAX)

Functionality: To find and mark all the texts having numerical value above the specified value among the selected texts.

Description: ‘MAX’ command is used to mark all the texts that have numerical value above the specified value among the selected set of texts. When working with elevation data, to locate values which are above specific value, you can use this utility.

Procedure:
  • Type ‘MAX’ at the command prompt.
  • Select Entities: Select the text entities.
  • Enter a number above which all the texts are to be identified: Enter the number above which the color of the text is to be changed.
  • Put Circles or Mark Colour  <Circles>/colour: Type C, system will place circle around the text. If you type R, system will change text color.
Maths Stats MAX Lisp
            Find texts having numerical value above the specified value among the selected texts (MAX)

3. FIND TEXTS HAVING NUMERICAL VALUE BELOW THE SPECIFIED VALUE AMONG THE SELECTED TEXTS (MIN)

Menu: Find texts having numerical value below the specified value among the selected texts (MIN)

Functionality: To find and mark all the texts those have numerical value below the specified value among the selected texts.

Description: ‘MIN’ command is used to mark all the texts that have numerical value below the specified value among the selected texts. When working with elevation data, to locate values which are below the specific value, you can use this utility.

Procedure:
  • Type ‘MIN’ at the command prompt.
  • Select Entities: Select the text entities.
  • Enter a Number below which all the texts are to be identified: Enter the number below which the color of the text is to be changed.
  • Put Circles or Mark Colour <Circles>/colour: Type C, system will place circle around text. If you type R, system will change text Colour.
Maths Stats MIN Lisp
                                             Find difference between Overlapping Texts (FDF)

4. GIVE BASIC STATISTICAL DETAILS ABOUT SELECTED TEXTS (STAT)

Menu: Give basic statistical details about selected texts (STAT)

Functionality: To find basic statistical information for the selected texts.

Description: Using the ‘STAT’ command the maximum, minimum value amongst the selected elevations can be found out. This information is useful for statistical study of elevation data.

Procedure:
  • Type ‘STAT’ at the command prompt.
  • Select Entities: Select the texts for which the statistics are to be displayed.
Maths Stats STAT Lisp
                                      Give basic statistical details about selected texts (STAT)

5. SHOW A POINT AT MENTIONED GRADIENT AT GIVEN SCALE (LGP)

Menu: Show a Point at mentioned Gradient at given scale (LGP)

Functionality: To show a point at mentioned gradient at given scale.

Description: Using ‘LGP’ a grade point can me marked at a given distance from a reference point with specified horizontal and Vertical scale factor.

Procedure:
  • Type ‘LGP’ at the command prompt.
  • Select the Reference Point: Pick a point.
  • Type the Horizontal Scale: Specify the Scale along X Direction.
  • Type the Vertical Scale: Specify the Scale along Y Direction.
  • Type the Distance: Mention the distance.
  • Type the Gradient: Mention the gradient.
Maths Stats LGP Lisp
                                       Show a Point at mentioned Gradient at given scale (LGP)

6. INDICATE GRADIENT OF THE SELECTED LINES (GRDL)

Menu: Indicate Gradient of the selected Lines (GRDL)

Functionality: To mark the gradient of Segments of Selected Polylines.

Description: Gradient is a very important factor as it helps in taking important decisions related to a design. ‘GRDL’ command reads gradient of each segment of the Polyline with given Horizontal and Vertical scale factor.

Procedure:
  • Type ‘GRDL’ at the command prompt.
  • Select entities: Select polylines for which gradient is to be marked.
  • Type the Horizontal Scale Factor: Specify the Scale along X Direction.
  • Type the Vertical Scale Factor: Specify the Scale along Y Direction.
Maths Stats GRDL Lisp
                                             Indicate Gradient of the selected Lines (GRDL)

7. FIND THE TOTAL OF THE SELECTED TEXTS (TTL)

Menu: Find the total of the selected texts (TTL)

Functionality: To find the total of all the selected texts.

Description: CAD is not a spread sheet but still many times you may need to find the total of the selected text entities within CAD. The normal method for this is either to use the calculator or to manually calculate and create a new text caption representing the sum. But using the ‘TTL’ command a new text indicating the total of selected texts can be created easily.

Procedure:
  • Type ‘TTL’ at the command prompt.
  • Select Entities: Select all the text entities that are to be added.
  • Select the Point to Place Text: Select the point where the sum text is to be placed.
Maths Stats TTL Lisp
                         Total of the selected texts (TTL)