-->
header image

Collection of AutoLisp for Text Import / Export - Lisp Help


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)

1. EXTRACT THE TEXT WITHIN A POLYGON BOUNDARY (SUY)

Menu: Extract the Text within a Polygon Boundary (SUY)

Functionality: To extract the text within a polygon boundary ,  print it separately in the drawing in sequential order and in the meantime export the data to CSV file.

Description: While working on land acquisition projects, it is always required to make the list of survey land falling within a selected boundary.  Using the ‘SUY’ command you can select and sort all the text values representing the survey number within the selected boundary and place these selected numbers anywhere in the drawing. Also, a CSV file is created with these selected survey numbers in a temporary directory (C:/ ESurvey/temp).

Procedure:
1. Type ‘SUY’ at the command prompt.
2. Select the closed polyline boundary for window polygon selection of text: Select the closed polyline boundary.
3. Pick the first point for placing the text.
4. Second point

                                                  Extract the Text within a Polygon Boundary (SUY)
 
2. IMPORT POINT DATA IN CSV FILE AS CAD TEXT X, Y, CODE (IMP1)

Menu: Import Point Data in CSV File as CAD Text X, Y, Code (IMP1)

Functionality: To import text from CSV file as AutoCAD text.

Description: It is commonly required to create codes within AutoCAD using the information available in a CSV File. Considering this requirement different importing options  are provided. To work with this command, save the CSV file in Temporary Directory (C:\ESurvey\Temp). To import codes into AutoCAD from a CSV file, use the ‘IMP1’ command. Create a CSV file with the name ‘ImpExp1’. The Eastings, Northings and codes should be in column number 1, 2 and 3 respectively. Now, run the ‘IMP1’ command after which the codes are imported into CAD with respect to its Eastings and Northings.

Procedure:
1. Type ‘IMP1’ at the command prompt.
Import Export  SUY Lisp
                                         Import Point Data in CSV File as CAD Text X, Y, Code (IMP1)
 
3. IMPORT POINT DATA IN CSV FILE AS CAD TEXT X, Y, Z, CODE (IMP2)

Menu: Import Point Data in CSV File as CAD Text X, Y, Z, Code (IMP2)

Functionality: To import text from CSV file as AutoCAD text.

Description: To import codes along with its Z value into AutoCAD from a CSV file, use the ‘IMP2’ command. Create a CSV file with the name ‘ImpExp2’. The Eastings, Northings, Z value of the code and the code should be in column number 1, 2, 3 and 4 respectively. Now, run the ‘IMP2’ command after which the codes are imported into CAD with respect to its Eastings and Northings.

Procedure:
1. Type ‘IMP2’ at the command prompt.
Import Export  SUY Lisp
                                    Import Point Data in CSV File as CAD Text X, Y, Z, Code (IMP2)

4. IMPORT POINT DATA IN CSV FILE AS CAD (X, Y, ELEVA, CODE) (IMP3)

Menu: Import Point Data in CSV File as CAD (X, Y, Eleva, Code)

Functionality: To import text from CSV file as AutoCAD text.

Description: To import codes along with elevation into AutoCAD from a CSV file, use the ‘IMP3’ command. Create a CSV file with the name ‘ImpExp3’. The Eastings, Northings, elevation and code should be in column number 1, 2, 3 and 4 respectively. Now, run the ‘IMP3’ command after which the codes are imported into CAD with respect to its Eastings and Northings.

Procedure:
1. Type ‘IMP3’ at the command prompt.
Import Export  SUY Lisp
                           Import Point Data in CSV File as CAD Text (X, Y, Elevation, Code) (IMP3)

5. EXPORT SELECTED OBJECTS TO CSV FILE X, Y, CODE (EXP1)

Menu: Export Selected Objects to CSV File X, Y, Code (EXP1)

Functionality: To export X, Y, Code information from selected text entities to a CSV file.

Description: While working with drawings it is a common requirement to export the elevation texts or codes along with their Eastings and Northings to a CSV file. Considering this requirement provided different kinds of exporting options. To export codes of a drawing along with the Eastings and Northings to a CSV file, use the EXP1 command. After working with this command, a CSV file named ‘ImpExp1’ is created in Temporary Directory (C:/ESurvey/Temp).

Procedure:
1. Type ‘EXP1’ at the command prompt.
2. Select entities: Select the texts to export.
Import Export  SUY Lisp
                                                Export Selected Objects to CSV File X, Y, Code (EXP1)
 
6. EXPORT SELECTED OBJECTS TO CSV FILE X, Y, Z, CODE (EXP2)

Menu: Export Selected Objects to CSV File X, Y, Z, Code (EXP2)

Functionality: To export X, Y, Z, Code information from selected text entities to a CSV file.

Description: To export codes of a drawing along with its Eastings, Northings and the Z value, use the EXP2 command. However, make sure that the texts representing the codes have a Z Value. After working with this command, a CSV file named ‘ImpExp2’ is created in Temporary Directory (C:/ESurvey/Temp).

Procedure:
1. Type ‘EXP2’ at the command prompt.
2. Select entities: Select the texts to export.
Import Export  SUY Lisp
                                             Export Selected Objects to CSV File X, Y, Z, Code (EXP2)
 
7. EXPORT SELECTED OBJECTS TO CSV FILE (X, Y, ELEVATION, CODE) (EXP3)

Menu: Export Selected Objects to CSV File (X, Y, Elevation, Code) (EXP3)

Functionality: To export X, Y, Z, Code information from selected text entities to a CSV file.

Description: To export codes and elevations of a drawing along with its Eastings and Northings to a CSV file, use the EXP3 command. Note that the insertion point of the elevation and Code should be matching to get the proper results. After working with this command, a CSV file named ‘ImpExp3’ gets created in Temporary Directory (C:/ESurvey/Temp).

Procedure:
1. Type ‘EXP3’ at the command prompt.
2. Select entities: Select the texts to export.
Import Export  SUY Lisp
                                        Export Selected Objects to CSV File (X, Y, Elevation, Code) (EXP3)