When I export a drawing that contains a zoomed part to an .svg file, I have a result where only the part I see without zooming is exported to .svg. How can I fix it?

  1. FAQ
  2. »
  3. Export Questions

Please refer to:

  • /Drawing/Examples/OdSvgExportEx — Contains code to export the extents of model space. Search OdSvgExportEx.cpp for "zoomExtents".
  • /Kernel/Exports/RasterExport — Contains code that zooms to extents for the active layout.

Search RasterExportCmd.cpp for zoomToExtents().
Note: RasterExport works the same for all formats supported by Teigha (.dwg, .dgn, .rvt, etc.)