Importing DXF

Import DXF drawings as a site plan, position them and convert DXF layers into pipes

VICUS Districts Page 3 of 9 in this chapter

Overview

VICUS Districts imports DXF drawings (e.g. site plans, cadastral extracts, existing-condition plans from CAD programs) as a background drawing. The drawing serves as a reference for route planning; in addition, individual DXF layers can be converted directly into pipes of the network.

VICUS Districts with an imported DXF drawing as a background plan
An imported DXF drawing as a background plan in VICUS Districts

Opening

  • Menu Import › DXF file …
  • alternatively the button DXF in the Import section of the Add geometry panel

Import dialog

OptionDefaultMeaning
NameFile nameDisplay name of the drawing in the navigation tree.
Scaling unitAutoUnit of the drawing coordinates: Auto, Meter, Decimeter, Centimeter or Millimeter. With Auto, the unit is determined automatically.

Via show detailed settings, further options are available:

OptionMeaning
Import Text (experimental)Takes over text elements (labels) from the DXF file.
Specify custom centerx/y coordinate that is used as the center point of the drawing.
Move drawing to centerMoves the drawing to the coordinate origin during import – helpful for drawings with very large coordinate values (e.g. state coordinates). Not available while georeferencing is active.

Georeferencing

If the DXF drawing uses projected map coordinates, the import places it at its real position in the project. The fields are located in the upper part of the dialog:

OptionMeaning
Use georeferencingPlaces the drawing at its real world position using the given coordinate reference system. The centering options are locked in this case.
Coordinate reference system:Coordinate reference system of the drawing, e.g. EPSG:25832.

The coordinate reference system is read automatically from a .prj file next to the DXF file or from an AcDbGeoData object in the drawing; georeferencing is then already switched on. If neither exists, enter the system manually (EPSG code, WKT or PROJ definition) – this switches georeferencing on. If the coordinates look like projected map coordinates, the dialog suggests a matching system; a note below the field always names the source.

If the project is already georeferenced, the drawing is placed relative to its world coordinate origin. If the project has no origin yet, it adopts the origin from the drawing. The drawing then fits area data, GIS data and the elevation query without further moving.

Note on the unit of measurement

Leave the Scaling unit on Auto at first. In DXF files, the unit of measurement is often not stored (correctly) and therefore has to be determined automatically. If the scaling factor specified in the file header differs from the automatically determined one, VICUS Districts asks which one should be used. If the drawing appears clearly too small or too large after import, import it again with a different unit of measurement.

Practical tip

The quickest way to check the scale is against a known distance: measure a real building or property edge in the imported plan and compare it with the actual dimension. A common mistake is plans in millimeters instead of meters – the drawing then appears too large by a factor of 1000. If the scale is wrong, importing again with the correct unit of measurement is usually faster than scaling afterwards.

Editing the drawing

Layer control and display options of the imported DXF drawing
Editing options: show/hide layers, adjust text size and line width

The imported drawing appears in the navigation tree with all layers of the DXF file:

  • Visibility: Show and hide the entire drawing or individual layers via the visibility icons.
  • Layer colour: Clicking the colour box in front of a layer opens the colour picker, see Object tree.
  • Display: Double-clicking the drawing in the navigation tree opens the settings for text size and line width.

Moving the drawing

DXF drawing in move mode with yellow sphere and coordinate system
Moving the DXF drawing using the yellow sphere and the local coordinate system
  1. Select the drawing (in the view or in the navigation tree).
  2. Switch to move mode.
  3. Drag the yellow sphere to the desired position.

For very large drawings, the move point can be hard to find. In that case, first place the local coordinate system at a suitable spot on the drawing and move precisely from there. After positioning, cancel the selection with ESC.

Converting DXF layers into pipes

If the DXF file already contains a drawn network route (e.g. from a preliminary design), the pipes do not have to be redrawn:

  1. In the Add geometry panel, switch to the Layer to pipe mode (convert DXF layer into pipe).
  2. Select the DXF layer with the route layout.
  3. The polylines of the layer are taken over as routes (edges) into the active network.

The generated routes can then be edited as usual, connected with consumers and sized.

Video tutorial

Stay up to date

New features, tutorials and updates delivered to your inbox.