[general]
name=Clip to DWG
qgisMinimumVersion=3.4
qgisMaximumVersion=4.99
description=Click or click-drag a box on the map to clip the ticked vector layers and export them as a single DWG file.
about=After clicking the toolbar button, either click two opposite corners on the map or click-drag a box. A pre-flight list then shows exactly which layers are going in, their geometry, how many features fall inside the box and what each will produce, with tick boxes to narrow the set. The chosen layers are clipped at the box extents and saved as a single DWG. Polygon fill patterns are exported as DWG HATCH entities with their opacity preserved; fully transparent hatches are dropped. Layers are written bottom-of-panel first so the top of the Layers panel ends up on top in CAD. All other entities use ByLayer colour, linetype and lineweight so appearance can be controlled in the CAD layer manager. Requires the free ODA File Converter from the Open Design Alliance for the final DXF to DWG conversion; the plugin will prompt for its executable path on first run and explain how to obtain it.
version=1.1.0
author=Tom M (CDSS)
email=qgis@cdss.co.nz
tracker=https://github.com/t-n-z/QGIS-clip-to-dwg/issues
repository=https://github.com/t-n-z/QGIS-clip-to-dwg
homepage=https://github.com/t-n-z/QGIS-clip-to-dwg
category=Vector
icon=icon.svg
experimental=False
deprecated=False
tags=vector,dwg,dxf,cad,export,clip,autocad,oda,hatch,civil,surveying,12d
changelog=
    1.1.0
      - FIXED: layers inside a group set to "Render Layers as a Group" were left
        out of the export with no warning, so the DWG could come out holding only
        whatever else happened to be ticked.
      - NEW: a pre-flight list before every export - every layer going in, its
        geometry, how many features fall inside the box, and what it will produce
        (hatches + outlines, lines, or points), with tick boxes to narrow the
        selection.
      - NEW: draw order. Layers are written bottom-of-panel first, so the top of
        the Layers panel ends up on top in CAD. A layer's own hatch is still
        written before its outlines, and a custom layer order takes precedence.
      - NEW: runs on QGIS 4 as well as QGIS 3.
      - Layers that produce nothing are named in the message bar instead of
        quietly missing from the output, and each layer's feature counts are
        written to the Log Messages panel.
      - A layer with no CRS is listed as unusable and skipped by name, rather than
        QGIS raising an unexplained projection dialog part-way through the export.
      - A polygon layer with no fill is called out in the pre-flight ("outlines
        only, no hatches") instead of surprising you in CAD.
      - FIXED: a project in a custom CRS could trigger a projection prompt during
        the export with nothing to say what had asked for it.
      - Selecting or highlighting layers has never been what the plugin exports -
        it uses the tick boxes. The "no layers" message now says so.
    1.0.1
      - Polylines now exported at width 0 (DXF group codes 43/40/41 stripped from LWPOLYLINE, POLYLINE, VERTEX).
      - Symbol layers that are eye-toggled off in QGIS, fully transparent, or set to NoBrush fill are honoured during export, suppressing HATCH output for features the user has hidden.
      - Polygon boundaries are now cut at the selection bbox instead of closing along it. Polygon layers produce a HATCH for the fill plus open polylines for the boundary segments that fall inside the box.
    1.0.0
      - First public release.
      - Two selection modes: two-click corners or click-drag box.
      - Visible vector layers clipped to bbox and exported to DWG via ODA File Converter.
      - HATCH entities exported for QGIS fill patterns with opacity preserved.
      - Fully transparent hatches dropped automatically.
      - All non-hatch entities forced to ByLayer color, linetype and lineweight.
      - First-run dialog explains ODA File Converter and links to download.
