IFClite TypeScript API
    Preparing search index...

    Interface DXFExportOptions

    interface DXFExportOptions {
        coordinateTransform?: (p: Point2D) => Point2D;
        metadataComment?: string;
        polylineLayers?: DXFPolylineLayer[];
        showHatching?: boolean;
        showHiddenLines?: boolean;
        underlays?: DXFUnderlayOptions[];
    }
    Index
    coordinateTransform?: (p: Point2D) => Point2D

    Applied to every emitted point (drawing geometry and underlays alike) as the very last step before it reaches the writer. Identity by default. The viewer uses this to re-derive true world/map coordinates for a plan-view export — see apps/viewer/src/hooks/dxfExportGeoref.ts.

    metadataComment?: string

    999 comment written at the top of the file (R12 has no $INSUNITS to state the unit instead — see dxf/writer.ts). Defaults to a generic "units: metres" note; pass one naming the IfcProjectedCRS for a georeferenced export.

    polylineLayers?: DXFPolylineLayer[]

    Extra polyline layers drawn on top of the drawing, each on its own DXF layer (e.g. the viewer's traced scan outline, #6871). Points are in drawing space and go through coordinateTransform like everything else.

    showHatching?: boolean

    Include cut-polygon boundaries (hatch regions, represented as closed POLYLINE boundaries — see module docs). Default true.

    showHiddenLines?: boolean

    Include lines whose visibility === 'hidden' (default true, matching SVG).

    underlays?: DXFUnderlayOptions[]

    DXF reference underlays composited alongside the drawing (issue #1782 parity).