Export a surface to a grid file

Export a surface to a grid file

tfitzhardinge
Enthusiast Enthusiast
7,164 Views
10 Replies
Message 1 of 11

Export a surface to a grid file

tfitzhardinge
Enthusiast
Enthusiast

Hi

 

I have created a tin surface and need to export the surface into one of the following formats:

- .xyz

- .xyzs

- .txt (either as a esri grid format or xyz format)

- .asc

- .12da

 

The reason I need to export this surface into one of those format is that I need to load the surface into XPSWMM for 2D hydraulic flood modelling.

 

I am using AutoCAD Civil 3D 2016, using the Australian Map Grid of Australia Zone 56 Coordinates in the drawing settings.

0 Likes
7,165 Views
10 Replies
Replies (10)
Message 2 of 11

autoMick
Advisor
Advisor

Hi,

A .xyz or .asc file is usually just an ASCII text file (i.e. the same as a .txt or a .csv) - so you just create a text file then change the file name extension later in windows explorer if needed. The XYZ format is equivalent to ENZ.

So:

- create a surface style that displays the surface vertices

- extract those points

- convert those points to COGO points

- export those points to a text file.

A quick screencast:

Cheers

- Mick 

 

 

Civil3d user in Australia since 2012.
Message 3 of 11

tfitzhardinge
Enthusiast
Enthusiast

Hi Mike

 

Thanks for the suggestion. Unfortunately the points have to be arranged in a grid like format (refer attached image) with an elevation value at each grid point. I have a feeling that Civil 3D cannot create this type of file easily.

0 Likes
Message 4 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

in the propector your can right-click your surface, export to dem (use file type geo-tiff).

With QGIS you can then convert the geo-tiff to e.g. esri ascii-grid.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 11

autoMick
Advisor
Advisor

Yes, save as GeoTIFF, microDEM is another freeware program that can open a geotiff and export in the format you want as shown by @Pointdump http://forums.autodesk.com/t5/autocad-civil-3d-general/creation-of-dem-georeferenced-in-the-uk/m-p/6...

Cheers

- Mick

Civil3d user in Australia since 2012.
Message 6 of 11

TerryDotson
Mentor
Mentor

Beware of any operation involving DEMs in Civil3D.  From what I've seen, since USGS DEMs store the elevation in integers only (no decimal), Civil3D treats at least some DEM operations this way.  I haven't tested every operation and am not 100% sure, but verify you have not lost precision when you do anything with them.

 

If you were to consider third party software, take a look at the C3D Surface Tools on the Autodesk Apps Store.  It will write a precision ESRI Ascii Grid (and a lot more formats) directly from your Civil3D surface in a single quick process (no wasting time jumping through hoops).

Message 7 of 11

Hidden_Brain
Advisor
Advisor
This looks like the contents of a .ASC file. If you have access to ArcMap:
1. Export surface from C3D as landxml
2. Import landxml in ArcMap, landxml to tin
3. Convert tin to asc

This is the process I use to get C3D surface into InfoWorks ICM.
0 Likes
Message 8 of 11

Joe-Bouza
Mentor
Mentor
Just guessing but you'll probably want to star with a grid surface. I believe that is a choice while creating a surface. Second guess: create a grid surface and paste the tin surface into it then export

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 9 of 11

phil.pritchardN7HPY
Enthusiast
Enthusiast

how do you do this, i have been trying for some time to get this working in qgis but i cant do the conversion in the latest version of qgis. 

0 Likes
Message 10 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

please find this video showing the steps to convert DEM to TIFF:

 

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 11 of 11

vandenoosterkamp
Collaborator
Collaborator

I had to do the exact same task today. I placed a single cogopoint with z=100. Arrayed them 1x1m covering the entire surface. Then 'elevation to surface', dropped them on the surface. Quickselected the remaining cogopoints with z=100, erased those and then exported them to csv.