GeoTools Logo

Lesson 6

Prev: Lesson 5

Table of Contents

Next : Lesson 7


This tutorial covers some of the GeoTools Extended entity data tools used for working on Xdata.

1. Open the drawing named lesson6.dwg which is located in your GeoTools Tutorials folder. This folder is located in the folder where you have installed GeoTools.

2. You should see a drawing (see Image 8-1) containing multiple Extended Entity Data.

Image 8-1

3. We will see how we can view Extended Entity Data.


Viewing the Xdata (Extended entity data)

1.Click on menu GeoTools => Extended Entity Data  => Display extended entity data from picked objects or type GT_SHOWXD at the command prompt.

2. This will pop-up the dialog box as shown below in (Image 8-7)

Image 8-7


3. Select POLE under Xdata applications to show. And then click on OK button. You will be prompted to select object to view xdata.

4. Zoom near grid no 12 and select any one of the Block attribute and you can view the Xdata of selected object in BriscCAD / AutoCAD text window. like the sample shown below in (Image 8-8)

Image 8-8


 

After learning how to view Xdata now we will see how to export the Xdata into an ASCII file

Exporting XData to ASCII file

1. Click on menu GeoTools => Extended Entity Data  => Extract extended entity data to ASCII file or type GT_XD_EXTRACT at the command prompt.

2. This will pop-up the dialog box as shown below in (Image 8-9)

Image 8-9


3. Select Consumer under Xdata application to export and check the boxes as shown in the above (Image 8-9)

4. Click on Export text file button for specifying an appropriate file name along with the file path for extracting the Xdata.

5. Then click on OK button this will pop-up the Standard selection dialog box as shown below in (Image 8-10).

Image 8-10


6. Click on Scan entire drawing button for selecting all Objects in the drawing. It displays the number of Objects selected at the bottom left corner of the dialog box.

7. Lastly click on Apply button for exporting the Xdata to the specified text file.

After learning how to export the Xdata into an ASCII file. we will see how to find and replace xdata

Finding and Replacing Extended Entity Data

1. Click on menu GeoTools => Extended Entity Data  => Search and replace extended entity data or type GT_XD_EXTRACT at the command prompt. This will pop-p the dialog box as shown below in the (Image 8-11)

Image 8-11

2. Under Select xdata applications to search choose User-created applications only and under Xdata applications to search  drop down choose CONSUMER

3. Under Code to search drop down choose 1070

4. Under Search/Replace options check the box Replace Values

5. Under Numeric search criterion select =

6. Type the values 416 and 412 in the respective boxes as shown in the above image and click on OK button

7. This will pop-up the Standard Selection dialog box as shown in the image below

Image 8-12

8. Click on Scan entire drawing button. This will scan the entire drawing and displays the number of objects extracted at the bottom left corner of dialog box

9. Finally click on Apply button this will complete the task of replacing the Xdata

 

Prev: Lesson 5

Table of Contents

Next : Lesson 7