SimpleVG › Tutorial › Chapter 5

Chapter 5: Saving and Exporting

Goal Save your drawing as an SVG file, choose which part of the canvas to export, export a PNG image, bring files back in, and look at the live SVG code.

SimpleVG works directly in SVG, an open, plain-text vector format, so saving is simply writing out what you drew. We will use the valve and pumps from the last chapter.

Part 1: Save SVG

Click Save SVG in the menu bar. A dialog asks how much of the canvas to save.

The Save / Export SVG Options dialog offering Full Canvas, Tight Extents of Shapes and Selected Entities Only
Full Canvas
The whole artboard at its full size, including empty space. The dialog shows the current canvas size.
Tight Extents of Shapes (Auto-Crop)
Crops the file tightly around your artwork. This is usually what you want for a symbol or a graphic that will be placed on another screen.
Selected Entities Only
Saves only the shapes or groups you currently have selected, leaving the rest out. Handy for saving one symbol out of a larger drawing.

When you choose a cropped option, a Padding Margin setting lets you leave a little space around the artwork. Click Save SVG in the dialog to download the file.

Note Saved files keep any SCADA tag information, gradients and clean SVG structure, so they can be opened and edited in SimpleVG again later.

Part 2: Export a PNG image

When you need a picture rather than a vector file, for a document or a slide, click Export PNG.

The Export PNG Image Options dialog with background fill, canvas bounds and resolution multiplier choices
Background Fill
Transparent (good for overlays), White, Dark, or a Custom colour.
Export Canvas Bounds
The same Full Canvas, Tight Extents and Selected Entities choices as the SVG dialog.
Resolution Multiplier
1× for the canvas size, 2× for crisp high-DPI screens, 4× for print quality.

Part 3: Opening and importing

There are two ways to bring an SVG file back in, and the difference matters.

Open SVG
Loads a file and replaces everything on the canvas. Use it to resume work on a drawing you saved earlier.
Import SVG
Adds a file to what you already have. It arrives as a single group, centred and scaled down if it is large. Use it to merge in icons or symbols from elsewhere. Ungroup it if you want to edit the individual parts.

Part 4: The live SVG code

Along the bottom of the window is the Live SVG XML Source Code drawer. Click Expand to open it and see the SVG that your drawing is made of.

The Live SVG XML Source Code drawer expanded under the canvas, showing the SVG markup for the valve and two pumps

The drawer works both ways. Draw on the canvas and the code updates. Edit the code and the canvas follows. This is covered properly in Chapter 11, but two buttons are worth knowing now:

Recap

That is the essentials covered: you can now draw, place symbols, set up your canvas and get your work out as SVG or PNG. The remaining chapters go deeper into lines, fills, arranging, tracing and tagging.

← Chapter 4: SCADA Symbol Libraries Chapter 6: Lines and Curves →