The Scalable Vector Graphics (SVG) format is an XML-based format that is used for vector graphics representation.
This format supports both static and animated graphical objects.
SVG is widely used for exchanging drawing information between different software applications (graphical editors,
CAD software, web-browsers, etc.). The main advantage of the vector representation is its scalability: it is
possible to scale a vector image without quality loss (in contrast to a raster image).
An .svg file contains a set of two-dimensional vector descriptions, vector primitives and raster graphics definitions:
To export an .rvt/.rfa file from ODA BimRv SDK to SVG, use the TD_SvgExport
module that contains a special class SvgExportCommand. This class implements a custom command for exporting to the SVG format.
The SvgExportCommand class provides the following functionality:
Creates a device for exporting to an .svg file. This device inherits the OdGiGeometrySimplifier class
that implements simplifying and transferring geometry data from the vectorization framework.
Retrieves export parameters from a user (a path to the output .svg file, a lineweight scale, floating point operations precision, etc).
Gets access to the OdDbBaseDatabasePE protocol extension object passed to the command within a command context instance
and prepares a graphical interface context for the device.
Runs the rendering with the created device and gathers the output using the OdGiGeometrySimplifier class.
Currently ODA BimRv SDK can export graphics (edges).
This command is included in the OdaBimApp sample application, which is available only for Windows platforms.
To export your BimRv file (.rvt/rfa) using the OdaBimApp sample application: