Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating surface from .dgn contours

9 REPLIES 9
Reply
Message 1 of 10
Crass
2649 Views, 9 Replies

Creating surface from .dgn contours

This is the first time I have imported a .dgn file into Civil. The drawing contains contours lines with Z elevation data. When I create a surface using this geometry (polylines + some lines) the surface seems to be scaled in the Z axis by 12.

 

For example pline (from dgn) is at elevation 46' but the Civil3D surface is 552'

 

I assume this is a setting in the Surfaces dialog box, but I cannot find it.

 

Also the elevation field in Properties from the dgn contours is weird. For example, in one area the (pline) contours display -28', 26', -24', -22', -20', -18' in Properties but Civil3D interprets this as a downward slope - which is the actual field conditions. I don't understand the conversion going on here.

 

The geometry of the pline and contours generated from the surface seem to line up in a side or isometric view (see attachment).

 

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
Tags (4)
9 REPLIES 9
Message 2 of 10
Jay_B
in reply to: Crass

Sounds a lot like one drawing may be set a unit of Inches and the other set to Feet.
1'= 12".
C3D 2018.1
C3D 2016 SP4

Win 7 Professional 64 Bit
Message 3 of 10
Neilw_05
in reply to: Crass

Look at the units of length reported in the properties dialogue on the left side of the screen cap. It is in feet and inches. That indicates your drawing units are not set to feet. You'll need to correct that before you import the DGN. Also make sure the units are set correctly in the DGN import settings.

If you want to post part of your dgn I'll take a look at it.
Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 4 of 10
Crass
in reply to: Neilw_05

Thanks Neil. I figured it was something like that. Ideally the surface would be in decimal. When importing I tried both feet (unit) and inches (subunit) options in the dgn import dialog box. Also I had the dgn open in a new drawing rather than the current dwg. I assume this is using a template drawing where the units are engineering, and this is causing the problem. Do you think that is the case? If you want to take a look and try it, the file it is linked here: contours.zip. The file is 10mb, above the 5.2mb attachment limit.

 

I really appreciate it.

 

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
Message 5 of 10
_Hathaway
in reply to: Crass

I think the posters have identified the problem with the scale of 12. You will also want to be aware of the US Survey foot - vs International foot horizontal shift that 'may' affect your data.

Also, never create a surface from contours as it is a very poor way to create a surface. You may be aware of this but it is worth pointing out.
Message 6 of 10
Crass
in reply to: _Hathaway

Thank you for the reply Mike. Unfortunately, contour data is all I have for this project at this point.

 

Can you elaborate on the "US Survey foot - vs International foot horizontal shift" or link me to a post or website that discusses this?

 

Much appreciated.

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
Message 7 of 10
Crass
in reply to: Neilw_05

I was finally able to mess with this import again. The replies above seem to be correct. However, I doubt my solution is the preferred method of dealing with this issue. I simply imported the dgn, selected all geometry and scaled by 1/12. There must be a more sophisticated and accurate process.

 

I would think the "Conversion units" option in the Import DGN Settings dialog box would provide a way to fix this, but it seems to have no effect. I actually imported the model twice into the same drawing using both "Master units" and "Sub units" and the drawings came in at the exact same scale and location. I have tried changing the Insertion scale in the Drawing Units dialog box as well. This does not seem to have an effect either.

 

What am I missing?

 

Thanks

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021
Message 8 of 10
Neilw_05
in reply to: Crass

You don't mention correcting your units in your C3D dwg. To eliminate any issues with your template, please try starting a new file with an unadulterated default C3D template.

If that does not correct the problem then the only other explanation I can think of is the DGN was created in inches.
Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 9 of 10
andrewpuller3811
in reply to: Crass

Just regarding the negative contour elevations, I encountered this same problem a few years back. I wasn't sure if it was due to the dgn or civil 3d import process. I had some 600 odd files to process so I wrote a vba routine to import the dgn and find any contours with bad values and correct them.

I do also recall that I found a few contours that had values that were +/- 0.05 from a whole number. Big pain.



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 10 of 10
Crass
in reply to: andrewpuller3811

Thanks for weighing in Andrew. it is very weird. All the contours behave as if they are negative (-x.xx from an unknown datum), but some are labeled with the - and some are not. Yet they seem to be in the correct location along the Z axis. In the photo below, the contour labeled 66.00 says elevation 66.00 in properties but actuallys exists at -66.00 in the dwg.

 

CAD_neg cont dgn.JPG

 

 

-----
AutoCAD 2018/2021
AutoCAD Civil 3D 2021

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report