You are here: Tutorials > Introduction > Introduction tutorial > Managing data in layers > Saving workspace settings > Layers and the Surpac work area
GEOVIA Surpac

Managing data in layers

Many computer-aided design (CAD) packages use the term “layer” to define a set of information contained within one file. In this way, a Surpac string number is the same as a CAD package “layer”. However, in Surpac, a layer is an area in memory that contains data displayed in Graphics.  Layers can contain strings from one or more string files. With this in mind, you can append data from different files into one layer, and create a new file.  All layers are contained within the Surpac Work Area (SWA).

Layers and the Surpac work area

When Surpac starts, it creates an area in memory called the Surpac Work Area (SWA). All data that is displayed in Graphics is stored within one or more layers, which are located within the SWA. Before you have displayed any data in Graphics, the SWA contains one layer, called the “main graphics layer”.

All layers in the SWA are displayed in the Layers pane, at the lower left corner of the Surpac window:

Creating layers

When you open a file by dragging it from the Navigator into Graphics, you create a new layer with the same name as the file. You can also create a new layer using the New button on the Layer pane.

Task: Create layers

  1. Click Reset graphics .
  2. Open pit1.str in Graphics.
  3. The Layers pane now shows two layers, the main graphics layer and a new layer called pit1.str that becomes the active layer.

    This symbol… indicates that the layer is…

    active

    visible

    selectable

    The SWA now contains:

  4. Open map1.str in Graphics.
  5. The Layers pane now shows three layers, and map1.str is the active layer.

    The SWA now contains:

    Next, you create a circular area, which is the boundary of a waste dump, and save the data to a separate file. As part of this process, you will create a new layer where the data is stored.

  6. On the Layers pane, click .
  7. Enter the information as shown, and click Apply.
  8. The new layer is now the active layer.

  9. Choose Create > Circle by drag.
  10. Click the centre of the circle, drag to the location shown, and then release the mouse button.
  11. Enter the information as shown, and click Apply
  12. Press ESC to finish using the function.
  13. The waste dump layer is now displayed in red, and it is preceded by an asterisk (*). This occurs when you have changed data in a layer, but you have not saved it to that layer.

  14. Choose File > Save > string/DTM.
  15. Enter the information as shown, and click Apply.
  16. The waste dump layer is now displayed in black.

    The SWA now contains:

Appending data to a layer

You can append data to a layer by holding the CTRL key when dragging a file into Graphics. You can also use an option on the Open File form to append data to a layer.

Task: Append data to a layer with the Navigator

  1. Click Reset graphics .
  2. Hold the CTRL key, then drag pit1.str into Graphics.
  3. Note: When you hold the CTRL key and drag a file into Graphics , the cursor is displayed with a plus sign ( + ) .

    After releasing the mouse button, the Layers pane still only shows one layer, the main graphics layer.

    The SWA now contains:

  4. Hold the CTRL key, and then drag map1.str into Graphics.
  5. The Layers pane still only shows one layer, the main graphics layer.

    The SWA now contains:

    Next, you save the data from both files to a new file.

  6. Choose File > Save > String/DTM file.
  7. Enter the information as shown, and click Apply.
  8. The file map_and_pit.str contains all data from pit1.str and all data from map1.str.

Task: Append data to a layer with the open file command

  1. Click Reset graphics .
  2. Choose File > Open > String/DTM file.
  3. Enter the information as shown, and click Apply.
  4. Setting String Range to 2, means that only string 2 from pit1.str is opened in the main graphics layer.

  5. Choose File > Open > String/DTM file.
  6. Enter the information as shown, and click Apply.
  7. Setting String Range to 2;12;52 means that only those three strings are opened.  Also, because the Replace current data check box was cleared, the data is appended to the main graphics layer.

    The SWA now contains:

  8. Choose File > Save > string/DTM file.
  9. Enter the information as shown, and click Apply.
  10. The file pit_and_buildings.str now contains string 2 from pit1.str and strings 2, 12, and 52 from map1.str.

Replacing data in a layer

Task: Replace data in a layer with the Navigator

  1. Click the Reset graphics icon .
  2. Open map1.str in Graphics.
  3. The Layers pane shows the two layers:

    The SWA now contains:

  4. Click pit1.str so that it is highlighted Navigator.
  5. Hold the SHIFT key, and then drag pit1.str into Graphics.
  6. When you hold the SHIFT key and drag a file into Graphics, the cursor is displayed with an X.  .

    The Layers pane still shows both layers:

    However, the contents of the map1.str layer has been replaced by the data in pit1.str:

    The SWA now contains:

Task: Replace data in a layer using the open file command

  1. Click Reset graphics.
  2. Choose File > Open > String/DTM.
  3. Enter the information as shown, and click Apply.
  4. All the data in pit1.str is displayed in the main graphics layer.

  5. Choose File > Open > String/DTM.
  6. Enter the information as shown, and click Apply.
  7. All data in the main graphics layer is replaced by the data in map1.str.

Saving workspace settings

Task: Save a workspace

  1. Click Reset graphics .
  2. Open ore1.dtm in Graphics.
  3. Choose View > Surface view options > Lighting options.
  4. Enter the information as shown, and click Apply.
  5. Open pit_design1.str in Graphics.
  6. Open topo1.str in Graphics.
  7. Click in Graphics and drag to rotate into the position shown below.
  8. Four layers exist in the Layers pane.

  9. Choose File > Save > Graphics workspace.
  10. Enter the information as shown, and click Apply.
  11. The file ore_pit_topo.swa is created.

    Note: The terms “Graphics workspace” and “SWA” both refer to the Surpac Work Area.  When you save a workspace, you create a file with a .swa extension.

  12. Click Reset graphics .
  13. All the layers are deleted except the default main graphics layer.

  14. Open ore_pit_topo.swa in Graphics.
  15. You have restored the layers in the Layers pane, as well as the lighting settings and the view direction.

    Note: SWA files are text files that store information about other files. If you want to open a SWA file on another computer, you need to make sure that the files that are referenced by the SWA file are available on the alternate computer, using the same folder structure.

  16. Choose View > Surface view options > Lighting options.
  17. Enter the following information, and click Apply.
  18. The lighting is reset to its original state.