Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Gateway for 2D Data

Rescale 2D

  • Last UpdatedJul 02, 2025
  • 2 minute read

The transformation extension Rescale2dTransformation (see Transform Settings) enables you to adjust/scale the SVG graphics, OLE object resolution and line thickness. This may be needed when the drawing’s resolution is not matched with the resolution of the monitor or printer where the SVG will be viewed.

Scale resolution can be provided for three elements:

  • Drawing resolution – Rescales the entire drawing.

  • OLE resolution – Manipulates the resolution of embedded elements. This is applicable for both MicroStation and AutoCAD input files.

    Limitation: Raster images in MicroStation drawings that are rotated are not rotated in the output SVG file.

  • Line resolution – Manipulates line thickness.

Example:

<rescale2dTransformation guid="00000000-0000-0000-0000-000000000000" sourceProductName="AVEVA™ Gateway for 2D Data" componentName="Rescale2dTransformation" componentVersion="2.10.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<resize>
<drawingResolution factor="1.0" />
<OLEResolution factor="automatic" />
<lineResolution factor="2.5" type="text"/>
<lineResolution factor="automatic" type="lines"/>
</resize>
</rescale2dTransformation>

The three scale resolution elements are as follows:

  • <drawingResolution> (required) – Rescales the drawing according by the factor, default value is 1.0.

  • <OLEResolution> (optional) – Manipulates the resolution of embedded objects, either explicitly by a numeric value or ‘automatic’ (default). The ‘automatic’ mode derives the factor from the drawing resolution factor.

  • <lineResolution> (optional) – Sets the line widths used for texts and lines types. Use both type at once, for example, type="text|lines" as well as two separate line resolution settings. The factor value is used to multiply the line thickness. Only text lines generated as polylines (mapped from SHX fonts) are affected by this function and is not applicable to TTF fonts from input files. When set to ‘automatic’ (default), it derives the value from the drawing resolution factor.

When the drawing scale changes the line scale will also change if both are set to be rescaled, for example you use "automatic" for the line scale.

Note: SVG line thicknesses may be observed to be different when zoomed in compared to the original application view because they automatically update the line weight in real time. Rendering of SVGs does not have this feature, so thin lines appear to get thinner (or thicker) after zooming out (or in). In this case, automatic or manual line scaling in the Gateway can help to ensure the drawing content is still visible.

TitleResults for “How to create a CRG?”Also Available in