Table of Contents

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

filename string

Path to the file to create or overwrite. Must not be null or empty.

Returns

bool

true when the export operation completed successfully; otherwise false.

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 filename is empty or the format is unsupported, the method raises a generic error and returns false.
See Also