Converting Blocks

In this exercise, you’ll convert blocks with data that can be extracted into Civil 3D points:
  1. Open the 0303_ConvertBlocks.dwg or (0303_ConvertBlocks_METRIC.dwg) file.
    Notice the point data in the form of blocks. You’ll see that all of them are instances of the same block, their insertion point coincides with the origin of the field shot, they have a z value assigned to each that corresponds to the field elevation, and the attribute data assigned to each instance actually contains fields that you can use. This is the best scenario for conversion of blocks (see the Figure).
    Block with data that can be extracted to a text file and reimported as a Civil 3D point
    Block with data that can be extracted to a text file and reimported as a Civil 3D point.
    To convert the data, you need to generate the text file that you can import back and create points.
  2. Go to the Insert tab ➢ Linking & Extraction Panel and click the Extract Data icon.
  3. In the Data Extraction – Begin (Page 1 Of 8) dialog, select Create A New Data Extraction. Click Next.
    You will be prompted to save your data extraction as a new .dxe file.
  4. Select the location and give it a proper name.
  5. Click Save to go to the next step.
  6. In the Data Extraction – Define Data Source (Page 2 Of 8) dialog, change the selection from the default to Select Objects In The Current Drawing.
  7. Using the selection icon to the right of the option, select the point blocks in the drawing, press , and then click Next.
  8. In the Data Extraction – Select Objects (Page 3 Of 8) dialog in the Display Options section, clear all check boxes with the exception of Display Blocks With Attributes Only. The BLOCKPOINT object should be the only item displayed and selected in the object area. Click Next.
  9. In the Data Extraction – Select Properties (Page 4 Of 8) dialog, in the Category Filter area, clear the selection for everything but the Attribute and Geometry filters.
    Once these two filters are selected, you will have options for which properties you want to extract.
  10. To have a working PNEZD file, select and extract the following:
    1. POINT property for the Point Number
    2. Position Y for the northing
    3. Position X for the easting
    4. ELEV property for Elevation
    5. DESC property for Description
    Since the block already has a z value assigned to it, you can swap, if needed, the ELEV property for the Position Z, but for this exercise you will just use the ELEV property.
  11. Check the selection for the items listed here, clear the ones not in the list, and click Next.
  12. In the Data Extraction – Refine Data (Page 5 Of 8) dialog, clear the selections for Show Count Column and Show Name Column.
    You will be left with the five known columns for a PNEZD file, which you will need to rearrange to meet your point format requirement.
  13. Select the column headers and drag them into this order from left to right: POINT, Position Y, Position X, ELEV, and DESC. Click Next.
  14. In the Data Extraction – Choose Output (Page 6 Of 8) dialog, select to output data to an external file.
  15. When you see the file path and file type the data will be saved into, click the ellipsis icon to select a new path.
  16. Select where you want to save, select the name for the file, and choose .xls from the Files Of Type drop-down menu.
  17. Click Save to exit the dialog and Next to advance to the next step.
    Clicking Next will take you to Page 8. In this particular workflow, you will not see Page 7.
  18. In the Data Extraction – Finish (Page 8 Of 8) dialog, click the Finish button to end the extraction process.
  19. Open the file in Microsoft Excel and delete the first row, which contains the header cells.
  20. Save the modified file as CSV (Comma Delimited) by doing the following:
    1. Browse to a location of your choice.
    2. Assign a name to the file.
    3. Click Yes in the Microsoft Excel dialog warning about the loss of functionality when saving to CSV.
    The dialog box might provide you with different warnings based on what version of the Office suite you have. When closing the file, you will see the same Microsoft Excel warning again.
  21. Click Yes to force the file to close.
  22. In Civil 3D, using the Import Points option from the Creation Points toolbar, choose PNEZD (Comma Delimited) as the format for points, and select the created CSV file as the source for the data.
  23. Add the points to a point group.
    A point group called Mastering Survey Data is already in the drawing, so you can use that as the point group for the insertion of this data. Once the import is complete, the points will be created in the drawing, and you can safely delete the source blocks or change their layer if you still want to keep them in the drawing.
    The Extraction file (.dxe) can be used for future extractions that match the settings for your non–Civil 3D data.
  24. Save the drawing.
To compare your work with a completed example, see 0303_ConvertBlocks_FINISHED.dwg or (0303_ConvertBlocks_METRIC_FINISHED.dwg).
0303_ConvertBlocks.csv or (0303_ConvertBlocks_METRIC.csv).
===o0o===
Next Post
Previous Post