FileSvg Module

Inheritance diagram of FileSvg

Module for saving ERACS SVG files.

class TEracsFileSvg

Descends from TEracsFileXml since the SVG transformation requires XML data. This class handles writing ERACS data to an SVG format.

Inherits

FileXml.TEracsFileXml.

Save(AFilePathAndName)

Uses the internal XML files to save to an XML object, then performs a transformation to SVG using the XSLT file inside the ERACS directory.

Required

lxml Python library.

Parameters

AFilePathAndName (str) – A full file path and name to save the SVG data to.

Returns

True if successful.

Raises

TEracsDataError – If the required library is missing.