CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 5954 

CAD tip CAD tip # 11511:

Question CAD 
 %  platform  category 
Q - question

Assigning elevations to 2D contours (isolines).

A - answer If you need to use a supplied survey data to create a 3D terrain model (DTM) you can sometimes find that the input data are just 2D contours (polylines) without any assigned elevation (Z-coordinate) - just a flat plan view. You obviously cannot directly generate digital terrain model (DTM, topo) from such source data. But a simple LISP utility can simplify generating a terrain model in AutoCAD Civil 3D or AutoCAD.

A sample data can be download from the drawing file LOM.DWG for Civil 3D 2008.

The LISP utility CHELEV (command CHELEV) can easily assign proper elevation (Z) to a set of contours. Just pick two points connecting a line climbing across the contour set and specify the bottom elevation and the contour step. The CHELEV.LSP file can be downloaded from www.cadstudio.cz/download. Load it into AutoCAD e.g. with APPLOAD.

The sample drawing contains an example of countours all placed in the zero elevation, Z=0. There are also pre-drawn sketched segments for specifying the connecting lines for CHELEV and bottom elevations in starting points of these connecting lines. The contour step is 10 (m) in this example.

2D isolines

As you can see in the illustation, the generated terrain model from these "null" contours (polylines) is initially just a flat surface (you can see just its yellow outline). Use the CHELEV command and specify all 3 necessary connecting lines and their parameters (for monotonous terrains a single connection is enough).

As an automatic terrain ("Surface2") update is preset in this sample drawing - after you set the elevations, the correct 3D terrain model will be automatically generated (see the viewport on the right):

Resulting 3D model

Video-sample:

Beside Civil you can also create the terrain model using the utility DTM for AutoCAD.

(inspired by "From the Ground Up")

CivilACAD
100% *  CAD 
5.7.2017    944×  
Comments   Tell a friend
applies to: AutoCAD Civil 3D · AutoCAD ·

See also:
Tip 11068:Unknown icon in an AutoCAD Civil 3D project.
Tip 9917:Cannot create terrain model from attached point cloud in AutoCAD Civil 3D 2015.


Back   All CAD Tips All CAD tips&tricks

How to display the Object snap toolbar? « | » AutoCAD problem in Windows 10 Anniversary update (F8 key)

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Link your AutoCAD block attributes with Excel tables/sheets. Automatically. Dynamically. Bidirectionally.
Try Excellink 2015 More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist