Skip to content

Modeling

Drawings (underlays)

Place a section drawing (PNG, JPEG, TIFF, PDF, DWG or DXF) under a model, calibrate it to the model's coordinates, snap to its lines, use its lines as boundaries, and make models of a sheet of sections.

A drawing is a picture of the section, such as a scanned sheet, a page of a PDF set or a CAD drawing (DWG or DXF), placed under a model so that you can trace the exterior boundary, the layers and the water over it. The drawing is a reference only: the analysis never reads it.

The drawing file is stored once in the project file. Each model places it on its own, with its own page, crop and calibration, so one PDF with many sections serves many models.

Place a drawing

Click Model › Drawing (or choose Place drawing… in its ▾ menu). The Place drawing window opens for the active model.

  1. Under Drawings in this project, pick a drawing, or click Add file… and choose a PNG, JPEG, TIFF, PDF, DWG or DXF file (at most 100 MB). For a PDF or a TIFF with several pages, pick the page in the strip on the left.
  2. Crop (optional): click the Crop tool and drag a rectangle around the section on the page. Without a crop, the whole page is placed; Clear crop removes the crop again.
  3. Calibrate: tell cSlope where the drawing lies in the model (below).
  4. Check the Preview, which shows the placed drawing under the model's outline, and click Place at the bottom right of the window (Update when recalibrating).

In the drawing, the mouse wheel zooms and the middle mouse button (or Space and drag, or the Pan tool) pans. Fit (or Home) shows the whole page or crop again; until you zoom or pan, the drawing is fitted again when the window is resized. The toolbar also gives the size of what is shown: a PDF page in mm, an image in pixels, a DWG or DXF drawing's extent in meters. A magnifier and a crosshair follow the pointer, so you can pick a tick mark or a corner exactly.

Calibrate

Choose how the drawing is calibrated:

  • Drawing coordinates (DWG and DXF only, chosen first): the drawing is placed at its own coordinates, so a section drawn at its true coordinates (its stations as x, its elevations as y) needs no calibration. The Drawing unit comes from the file (its $INSUNITS, such as millimeters or meters) and is converted to meters; choose it when the file does not say.
  • Axes: click two points on the horizontal axis and type their x, then two points on the vertical axis and type their y. The x and y scales are found separately, so a section drawn with vertical exaggeration is placed true to scale. The drawing is not rotated. When the same drawing is placed in another model, choose it under Reuse scale from; then one point per axis is enough, which suits a second section on the same sheet.
  • Points: click a point in the drawing and type its model x and y, then a second point. Two points give the scale and the rotation (the same scale in both directions). Add a third point or more for a best fit that also takes different scales in x and y; the misfit of each point is shown in meters.
  • Scale: click one point whose model coordinates you know, type them, and type the scale: how many meters one drawing unit is. The unit is a pixel for an image; for a PDF, a millimeter or a point (pt, 1/72 in) of the sheet; for a DWG or DXF drawing, its own unit. A sheet drawn at 1:200 has 1 mm = 0.2 m.

The window says what to do next, and refuses points that are too close together or that do not span the drawing.

Tip

Calibrate on the drawing's own axes or grid where it has them: they are where its coordinates are known best. Pick points far apart.

DWG and DXF drawings

A DWG or DXF drawing is shown as lines, not as a picture: the lines, polylines (with their arcs), arcs, circles, ellipses, splines and texts of its model space, in a neutral ink color that suits the light and the dark theme, at the drawing's opacity. Block references are drawn in place (with their scale and rotation, nested blocks too), and so are dimensions. The layouts (paper space) are not shown: only the model space is; the Place drawing window says how many entities it left out. Hatches, images and 3D objects are not shown either.

A drawing's Layers are listed in its settings under the model in the Models panel: click the eye at the end of a layer's row to hide its lines and texts (Show all and Hide all set every layer). A hidden layer is not snapped to and its lines cannot be picked. Layers that are off or frozen in the file start hidden. Each change is an undo step.

DWG files from AutoCAD Release 11 (1990) to the current version are read; DXF files must be ASCII (binary DXF is not read).

Snapping to a drawing

With Snap on in the status bar, a point you drag (a vertex of the exterior, a boundary or a water line, the end of a load or an element, a point of a custom surface, a reference line's point in the result view) also snaps to the visible drawings' lines, within the same distance as to the model's points:

  • to an end point of a line or a point where two lines cross, first: a square marks an end point, an X a crossing;
  • else to the nearest point on a line, marked by a short line along it.

A point of the model nearby still comes first. Only the part of a drawing inside its crop counts. Add point on a line puts the new point on a drawing's end point or crossing when one is under the pointer. A PDF page snaps too, where it has vector lines (a scanned page has none); its lines are read when they are first needed.

Use a drawing's lines as boundaries

You can make the model's objects of a drawing's lines instead of tracing them. Click Pick lines… in the drawing's settings under the model in the Models panel, right-click the drawing and choose Pick lines…, or choose Pick lines… in the ▾ menu of Model › Drawing (it picks the lines of the model's topmost shown DWG, DXF or PDF drawing). A hidden drawing's lines cannot be picked: show it first. A banner at the top of the canvas shows that lines are being picked; the model's objects do not take clicks then.

  • Click a line to pick it, with the lines that continue it end to end: a polyline drawn as separate lines is picked whole, up to a point where three or more lines meet.
  • Shift+click adds a line, or removes a picked one.
  • Drag a window to pick every line that lies wholly inside it.

Then click Exterior, Material boundary or Water line in the banner, or right-click and choose Use as exterior boundary, Use as material boundary or Use as water line. The picked lines are joined where their ends meet, clipped to the drawing's crop, and taken into the model through the drawing's calibration. The exterior boundary needs one closed loop: when the ends of the picked lines are close (within the snap distance), cSlope offers to close the loop; otherwise it says how far apart they are. Each command is one undo step, and the new objects are not locked. Press Esc or click Done to stop picking.

New models from a drawing

A sheet with several sections can become several models at once. Choose New models from drawing… in the ▾ menu of Model › Drawing, or File › Import › New models from drawing… (or New models from drawing… in the Place drawing window).

  1. Pick a drawing of the project or add a file (PDF, DWG, DXF or an image).
  2. With Draw frame, drag a rectangle around each section, on any page. Each frame is listed with a name taken from the texts inside it (a title such as "Section 2", else a name like "A–A", else the largest text); change the name as you like, or leave it empty for the default name.
  3. Select a frame and calibrate it as a placed drawing is calibrated. Once one frame is calibrated by its axes, each frame drawn after it reuses its scale, so one known value on each axis is enough (choose another frame, or none, under Reuse scale from). A DWG or DXF drawing starts with its own coordinates.
  4. Click Create N models (Create model for one frame) at the bottom right of the window: one model per frame, named after it, with the drawing placed under it, cropped to the frame. The models start without geometry: make it with Pick lines… or draw it over the drawing.

The models are added like imported ones: remove one in the explorer if it is not wanted.

The drawings of a model

In the Models panel, the drawings a model places are listed under it, the topmost first (the arrow before the model folds them away). Each row has an eye to show or hide the drawing and a padlock to lock or unlock it. When drawings overlap, drag a row by its grip (shown when the pointer is over the row) to change the order they are drawn in, or press Alt+↑ / Alt+↓ on the selected row; a drawing stays under its own model. The × at the end of the row (or Delete) removes the drawing from the model. The file stays in Attachments while another model places it; a file that no model places is left out when the project is saved.

Click a drawing to select it (its model becomes the active one) and open its settings below the row, where you can:

  • set its Opacity,
  • turn on Show in results, to draw it in the result view and the PDF export too,
  • turn off Invert in dark theme (an image or a PDF), to draw it with its own colors in the dark theme,
  • Rename it (or double-click its name),
  • Recalibrate…: the window opens again with the drawing's page, crop and calibration, to change them.

Every change is a step of Undo and Redo.

Attachments

The Attachments section at the bottom of the Models panel lists the drawing files of the project, each with its size and the models that place it (No files. when there are none). + Add drawing… under the list opens the Place drawing window for a new file; Place… on a file (shown when the pointer is over it) opens the window with that file, to place it in the active model as well. A file that no model places is marked not used and is left out when the project is saved.

On the canvas

A drawing is drawn above the soil colors and below the grid, the boundaries and the points of the model, at its opacity: 80 % when a DWG or DXF drawing is placed (thin lines need it), 50 % for a PDF or an image. A higher opacity shows the drawing more clearly, a lower one the soil colors.

In the dark theme an image or a PDF is drawn inverted: its black lines turn light, like the model's lines, and its white page no longer covers the sheet (colors keep their hue). Turn off Invert in dark theme in its settings for a photo or a colored scan. The light theme and the exports always show it as it is.

A drawing is locked when it is placed: clicks go through it to the model's objects, so you can trace over it. Right-click the drawing where no object of the model is to Unlock drawing, Recalibrate…, Hide drawing or Remove drawing. An unlocked drawing is selected by a click where no object of the model is, shows its frame, and moves with a drag (one undo step); lock it again when it is in place. Lock all › Drawings in the canvas menu locks every drawing of the model.

In the result view and the PDF

A drawing with Show in results on is drawn in the result view, clipped to the plot frame, and in the PDF export as a picture over the soil colors and under the model's lines. It is off by default, so a report shows the analysis only.

Limits

  • PNG, JPEG, TIFF, PDF, DWG and DXF files of at most 100 MB each; a project file with drawings may be up to 500 MB.
  • A PDF page is shown as a picture at a resolution that follows the zoom; its text is not selectable. Its vector lines are snapped to and can be picked.
  • A DWG or DXF drawing's model space only; no hatches, images, 3D solids or external references.
  • New models from drawing makes models without geometry; turning the lines in a frame into boundaries at once is not offered (pick them in each model).
  • To turn a whole DXF or DWG drawing into a model by its layers instead, use File › Import › DXF file or DWG file (see Import from DXF and Import from DWG).
Suggest a change to this page