|
Creating an SVG file (Using the Engine) New in Version 2025.1 |
www.CAD6.com |
|
Once you started the CAD6engine and created drawing data (or had the user create/modify it by showing him the user interface), it is very simple to create a SVG file from it.
Here's the basic code:
C++ Source CodeMKI_SVG_EXPORT cSvgExport; cSvgExport.Init(); MKI_RESULTVALUE nResult = MKI_DrawingExportSvg( L"C:\\Test.svg", MKI_EXPORTCONTEXT_SAVE, MKI_FILTERMODE_NULL, MKI_FLAG_NULL, cSvgExport );
It first initialized an SVG export data set with default values. To alter the settings used, modify the members of cSvgExport as required. Then, it exports the drawing data. The result will be an SVG file with all drawing objects.
If the file C:\Test.svg already existed before, it will be overwritten without a warning. All progress and error dialogs are suppressed.
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH