ConvertDXF2SVG
FunctionSyntax:
Public Function ConvertDXF2SVG(ByRef sDXFFile As String, ByRef sSVGFile As String, Optional ByRef WidthCm As Double = 12, Optional ByRef HeightCm As Double = 12) As BooleanConverts a DXF file to an SVG file. The method overwrites the target SVG when that file already exists, validates that the input DXF file exists, and requires non-zero output width and height values.
| Parameter | Description |
|---|---|
| sDXFFile | Path to the DXF input file. |
| sSVGFile | Path where the SVG output file should be written. |
| WidthCm | Optional SVG width in centimeters. Defaults to 12. |
| HeightCm | Optional SVG height in centimeters. Defaults to 12. |
Returns True when conversion completes successfully and False when validation fails or conversion cannot complete.