Method ExportToFile
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ExportToFile(string)
Saves the current drawing to the specified filename.
public bool ExportToFile(string filename)
Parameters
filenamestringPath to the file to create or overwrite. Must not be
nullor empty.
Returns
- bool
truewhen the export operation completed successfully; otherwisefalse.
Remarks
- Calling SaveAs(string) produces the same result for internal vdraw formats (.vdcl, .vdml).
- The method supports multiple export paths: native vdraw formats, printer-based exports (PDF, SVG, HPGL, raster, EMF, etc.), vdraw web script export, and other formats (dwg dgn dxf vds ifc skp stl dwf dae obj ply ).
- For file-export via the printer pipeline, a temporary vdPrint instance is created and configured to compute page size, resolution and scaling.
- On success the document's IsModified flag is cleared.
- If the
filenameis empty or the format is unsupported, the method raises a generic error and returnsfalse.
- See Also