MKI_SVG_EXPORT (Import and Export Classes) New in Version 2025.1

www.CAD6.com

C++ Syntax

class MKI_SVG_EXPORT

{

  public:

 

  MKI_COMMENTLONG m_szFileTitle;

  MKI_FONTDEF     m_cStandardFont;

  MKI_FILENAMEW   m_szBitmapAbsolute,

                  m_szBitmapRelative;

 

  bool     m_fCompressFile;

  __int32  m_nBitmapFileType,

           m_nBitmapMode,

           m_nOptions,

           m_nFractionDigits,

           m_nEnumMode;

  double   m_dMinLineWidth;

  MKI_RECT m_cMargin;

 

  MKI_SVG_EXPORT( void );

 

  void

  Init( void );

};

 

This structure contains information for an SVG export.

 

Element Description

m_szFileTitle

[MKI_COMMENTLONG] Title to be written to the SVG file.

m_cStandardFont

[MKI_FONTDEF] Default font to be used as replacement for all system fonts (such as "DinDraft").

m_szBitmapAbsolute

[MKI_FILENAMEW] Absolute path to store all referenced bitmaps to.

m_szBitmapRelative

[MKI_FILENAMEW] Relative path to store all referenced bitmaps to.

m_fCompressFile

[bool] If true, the resulting will be a compressed SVG files (SVGZ).

m_nBitmapFileType

[__int32] Identifier of the file type the bitmap shall be written to (see MKI_BITMAPMODE_*). Supported types are:

MKI_BITMAPMODE_PNG

MKI_BITMAPMODE_JPEG_HIGHEST

MKI_BITMAPMODE_JPEG_HIGH

MKI_BITMAPMODE_JPEG_MEDIUM

MKI_BITMAPMODE_JPEG_LOW

MKI_BITMAPMODE_JPEG_LOWEST

m_nBitmapMode

[__int32] Determines where referenced bitmaps shall be stored:

BITMAP_EMBED

Referenced bitmaps shall be embedded into the SVG file.

BITMAP_INSITU

Referenced bitmaps shall copied as individual bitmap files to the same location as the SVG file.

BITMAP_ABSOLUTE

Referenced bitmaps shall copied as individual bitmap files to the absolute location stated in BitmapAbsolute.

BITMAP_RELATIVE

Referenced bitmaps shall copied as individual bitmap files to the location stated in BitmapRelative relative the SVG file's location.

m_nOptions

[__int32] Bit-wise OR combination of some options. Possible values are:

OPTION_USE_SCREEN_PROP

If set, screen properties will be used for the export (instead of output properties).

OPTION_RESOLVE_TEXT

If set, all texts will be resolved into surfaces.

OPTION_RESOLVE_LINES

If set, all lines with patterns will be resolved into individual lines.

OPTION_OUTPUT_GEO

If set, Construction Aid objects will be exported.

OPTION_RESOLVE_BLOCK

If set, all blocks will be resolved into individual objects.

m_nFractionDigits

[__int32] Determines the number of fractional digits to be used. Valid range is 0 to 14.

m_nEnumMode

[__int32] Determines into which object types outlines shall converted during export. Possible values are:

LINES_ARCS_BEZIER

Outlines will be converted into lines, circular arcs, and/or Bézier curves.

LINES_ARCS

Outlines will be converted into lines and/or circular arcs.

LINES_ONLY

Outlines will be converted into lines only.

m_dMinLineWidth

[_double] Minimum line width to be used during export in units of 1/96 inch.

m_cMargin

[MKI_RECT] Margins in [mm] to be added to the surrounding frame of the exported objects when calculating the output area.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH