Contact Info

Crumbtrail

eye4software.com » HydroMagic » Documentation » Manual » Map Display » Importing Cross Sections


Import cross sections from AutoCAD DXF file(s)

Instead of placing cross sections manually or using a boundary, it is also possible to import them directly from an AutoCad DXF drawing. To use this method, please make sure you use a separate layer in AutoCAD to store these lines.


Import dialog

To start importing the line data used to create sections, select the "Generate sections from DXF..." option by right-clicking the "Sections" folder in the project view. If the project view is not visible, you can show it by selecting "Project Explorer" from the "View" menu.

Import Cross Sections from AutoCAD DXF file(s)
The generate cross sections from AutoCAD DXF file importing tool


Select the drawing file

First, you have to click the "Browse..." button to select an AutoCAD DXF file. If your AutoCAD file is saved in the DWG format, you can export it to DXF by using the 'DXFOUT' command in AutoCAD. When a valid file has been selected, the layer names will be loaded and displayed in the dialog.

Select AutoCAD layer(s) to import
Select the AutoCAD layer(s) that contain the cross sections


Select layer(s)

After the AutoCAD file has been loaded, you have to select one or more layer(s) containing the line data to be used. You can select one or more layers, please note that only 'LINE', 'POLYLINE' and 'LWPOLYLINE' entities can be converted into cross sections.

When the selected layers do not contain lines, or unsupported line entities, the following error message will be displayed when starting the import process:

Layer doe not contain any suitable lines
When the selected Layer does not contain any suitable lines in the correct format, Hydromagic will notify you.


Section name prefix

Normally, the name of a cross section consists of a number. To provide more clarity about a cross section or to group them, the section number can be preceded by a short text. This setting is optional.


Section name start

All section names are numbered. This optional setting allows you to specify which number to start numbering with.

During numbering, Hydromagic will automatically check for duplicate numbers. If this is the case, a notification will be shown suggesting another initial number.

Numbering conflicts are handled by Hydromagic
In case of numbering conflicts, Hydromagic will suggest another initial number


Clipping Area

When a clipping area is selected, all lines will be clipped to this area. If the clipping area is set to 'N/A,' all lines will be loaded 'AS IS. To use clipping, first draw a boundary.


Starting import

To start creating cross sections, just click 'OK.' After a few seconds, you will see the imported lines in your project. The dialog box will close automatically on successful cross sections generation.

Sections generated from DXF file
Sections generated from DXF file shown above


2D vs 3D lines

In Hydromagic you use cross sections for volume calculations or to define a channel design as well. When importing cross sections from an AutoCAD DXF file, Hydromagic will automatically detect whether the line contains different Z-values. If this is the case, the Z-values are automatically stored in a cross section profile as shown below:

3D Section generated from DXF file
Example of an imported cross section with Z-values defined.

To set the Z-values of polyline vertices in AutoCAD, you need a version of AutoCAD that supports 3D. This means that these lines cannot be generated using AutoCAD LT.


Video Tutorial

The following YouTube video tutorial shows how to import sections from an AutoCAD DXF file. Click below to play the video. When you like the video, please click the like button and subscribe so you will receive an update when new video tutorials on Hydromagic are uploaded.


Hydromagic allows you to import sections from an AutoCAD DXF file.