How do I import this .ASC file?

zacharydK32M8
Explorer

How do I import this .ASC file?

zacharydK32M8
Explorer
Explorer

I have this .ASC file but when I import as DEM, civil3d says it's an invalid DEM file.

 

Anybody seen something like this before?

 

zacharydK32M8_0-1612276850349.png

Thanks for your time

0 Likes
Reply
Accepted solutions (2)
9,836 Views
26 Replies
Replies (26)

pendean
Community Legend
Community Legend
0 Likes

Pointdump
Mentor
Mentor
Accepted solution

That's not a DEM. It's just a regular PENZD or PNEZD point file.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024

Pointdump
Mentor
Mentor

A DEM ascii file is arranged like this:

NCOLS xxx
    NROWS xxx
    XLLCORNER xxx
    YLLCORNER xxx
    CELLSIZE xxx
    NODATA_VALUE xxx
    row 1
    row 2
    .
    .
    row n

And looks like this:

 

DEM.png

 


Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
0 Likes

ChicagoLooper
Mentor
Mentor

Assuming you know what you want to do with your ASC, you can do this:

 

  1. On commnad line, type in MAPCONNECT. File button=>browse to your ASC file=>Connect. Refer to image-1.
  2. Verify the native coordinate system given to the ASC file by its original author is being read correctly. Image-2
  3. MAPWSPACE on command line. Choose 'ON' from options. The ASC will be listed in the Map Task Pane. Image-3.

 

Image-1Image-1

 

 

Image-2Image-2

 

 

Image-3Image-3

.

 

 

 

Chicagolooper

EESignature

0 Likes

ChicagoLooper
Mentor
Mentor

Are you trying to create a surface? For Files of type change to *.asc using the dropdown menu.

 

40.png

Chicagolooper

EESignature

0 Likes

wfberry
Mentor
Mentor

Like Dave said:

This is just a text file with a "non existent" coordinate system.  It is a coordinate system, however, it is based on a beginning of 5000, 5000.  We used to do this all the time before GPS.

You can make a surface out of it but you will need to know where it is located.

 

Bill

 

AllenJessup
Mentor
Mentor
Accepted solution

@zacharydK32M8 wrote:

Anybody seen something like this before?

I see them all the time. As mentioned. This is a comma delimited PNEZD or PENZD file. Use Insert > Import > Points from file.

 

AllenJessup_0-1612360470777.pngAllenJessup_2-1612360498940.png

 

However. I don't see any valid elevations in your screenshot. So. Unless there are valid elevations further down in the file. It will be useless in creating a Surface.

 

 

Allen Jessup
CAD Manager - Designer
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

ChicagoLooper
Mentor
Mentor

Nope, it's not a text file. It's an ESRI ASC file.  It's a GIS type grid file, not a civil file. 

 

And no it's not a non-existent coordinate system. The coordinate  system is could be UTM or specific to the country's location. And the location may, or may not be in the US so it doesn't have to be in State Plane.

Chicagolooper

EESignature

0 Likes

AllenJessup
Mentor
Mentor

@zacharydK32M8 

 

Can you post the file or a part thereof? That way we can see what it actually is.

Allen Jessup
CAD Manager - Designer
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

0 Likes

zacharydK32M8
Explorer
Explorer

Thank you all for this helpful discussion. I'll have to give all of your suggestions a try.

 

I've attached the original file in this post. I had to change the .asc to .txt in order to upload.

0 Likes

AllenJessup
Mentor
Mentor

Our Leica equipment exports ASCII point files with an ACS extension.

 

From http://docs.mcneel.com/rhino/5/help/en-us/index.htm#fileio/points_file_asc_csv_txt_xyz_cgo_import.ht...

 

AllenJessup_0-1612363771139.png

 

Allen Jessup
CAD Manager - Designer
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

0 Likes

AllenJessup
Mentor
Mentor

OK. PNEZD or PENZD. Once you get to point 300. You have elevations that could be used to create a Surface. Try PNEZD first and see it the points look like the area of interest. Or contact the originator to find out which format it is.

Allen Jessup
CAD Manager - Designer
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

0 Likes

ChicagoLooper
Mentor
Mentor

Huh? You are manipulating the file(s).

This is a txt file. It's not an ASC file.

 

When looking, at the file displayed in your opening post, it has an .ASC extension. This one has .txt extension. I'm thinking the original file in the opening post might not even be the original ASC file.

 

Please post the original unadulterated ASC file, not a copy. BTW, the real ASC has an ASC extention, not one with a txt extension.

Chicagolooper

EESignature

0 Likes

zacharydK32M8
Explorer
Explorer

The forum wouldnt let me upload .asc format.. I had to change it to .txt in order to upload it.

 

In my opening message I had opened the .asc in Notepad since I don't know how else to open it.. is that misleading?

0 Likes

AllenJessup
Mentor
Mentor

@zacharydK32M8 

Zip the file. That will allow you to post it with the original extension.

Allen Jessup
CAD Manager - Designer
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

0 Likes

Pointdump
Mentor
Mentor

Zachary,
As Allen says, if you Zip your file this Forum will accept anything.
20+ years ago, Survey Pro on the HP48 used to store points in CR5 format. To get them into AutoCAD R14/Softdesk you had to use Survey Link, which converted the CR5 into an ASC format. ASC is exactly the same as TXT format.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
0 Likes

AllenJessup
Mentor
Mentor

I have thousands of .ASC files. They're all PNEZD point files.

 

asc.png

Allen Jessup
CAD Manager - Designer
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

ChicagoLooper
Mentor
Mentor

This may, or may not, be your exact workflow. Nevertheless, it is 'a' workflow that demonstrates how to go from a .txt formatted point file to an .ASC grid file then to AutoCad.

 

Using GLOBAL MAPPER: How to create an ASC file using a txt.

  1. Add the data. In this particular example a txt file in excess of 285,000 points. (Global Mapper can consume various ASCII files in various formats.) <<BTW, GloMap is not freeware and IDK if QGIS, which is free, has the same capability but maybe Mr @Pointdump  can offer his expertise.>>
  2. Create a GRID then Export the GRID file to ASC. 

1-This is a txt file that's opened using Excel. This file is the basis for this 'how to' demonstration.1-This is a txt file that's opened using Excel. This file is the basis for this 'how to' demonstration.

 

2-This is the exported ASC file opened in Global Mapper. This is the same file that can be read and used in AutoCad. (The imagery, csv and grid layers have been turned off.)2-This is the exported ASC file opened in Global Mapper. This is the same file that can be read and used in AutoCad. (The imagery, csv and grid layers have been turned off.)

 

 

Change the workspace to Planning & Analysis. Using the Data Connect palette, the ASC data is added as a raster. The ASC is in modelspace and is also displayed in the Map Task Pane on the right. If you don't like the green blob, you can use the Map3D toolset and use a 'theme' to display the ASC, such as a color oriented elevation theme. Themes vary according to the ASC's inherent data so you may, or may not, have more options beyond an elevation theme.

 

3-The ASC added to the dwg using a Data Connection.3-The ASC added to the dwg using a Data Connection.

 

 

Alternatively, you may use the ASC as a definition for your TINN surface.

 

4-You can create a surface.4-You can create a surface.

 

 

Here's the surface.

 

5-The ASC was used for the TINN definition.5-The ASC was used for the TINN definition.

 

 

Using the point file displayed in image-1 above, you can also use it to create EG, a TINN surface. What are the similarities of image-5 and image-6?

 

6-Surface created by the point file itself.6-Surface created by the point file itself.

Chicagolooper

EESignature

tcorey
Mentor
Mentor

No one mentioned it, so I will. The screenshot you posted shows all points at elevation -999999. This indicates a null elevation. If you're trying to use this file to create a surface, it is not going to work.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut