System Variable Entry: CLAUTOLISPDEFAULTDRAWINGFORMAT

← Prev | ↑ Chapter | Next → | Index | Symbols

System Variable Entry: CLAUTOLISPDEFAULTDRAWINGFORMAT

Name

CLAUTOLISPDEFAULTDRAWINGFORMAT

Type

string

Default

"DXF"

Read-Only

no

Scope

session

Description

clautolisp extension. The file format a drawing is written in when nothing else selects one — the destination path has no recognised drawing extension, and the drawing does not already know its own format (a freshly created drawing that never came from disk). The value is a container token — "DXF" (ASCII DXF, the portable form), "DXFB" (binary DXF) or "DWG" — optionally followed by a version label ("DWG-2013", "DXF2000", "DWG-R12"), case- and separator-insensitive; an unrecognised container is treated as "DXF", an absent version means the codec's newest. It is a last resort only: a recognised destination extension (.dxf, .dwg) and a drawing that already carries a format both take precedence over it. Shared by the cador and cadtui hosts.

This is the clautolisp cross-dialect equivalent of BricsCAD's SAVEFORMAT: under a BricsCAD dialect the vendor SAVEFORMAT integer is consulted instead; under every other dialect (AutoCAD, which has no save-format system variable, and clautolisp/strict/lax) this variable is the source. Both container and version are honoured — the version sets the emitted DXF $ACADVER, and the DWG writer follows it through libredwg.

Read/Written By

  • the drawing writer reached through the ActiveX object model (Document.SaveAs) and any other clautolisp path that writes a drawing without a determinable format.

Compatibility

clautolisp extension; no direct AutoCAD counterpart (AutoCAD's default save format is an Options-dialog preference, not a system variable). BricsCAD's SAVEFORMAT is the vendor analogue, and takes precedence under a BricsCAD dialect. This variable governs the engine's file output rather than AutoLISP semantics, so it is present and honoured in every dialect (not gated to :clautolisp). Seedable from the environment variable of the same name, CLAUTOLISPDEFAULTDRAWINGFORMAT (precedence setvar > env > default "DXF").

Source Notes

  • No vendor reference for this name; the analogous vendor knob is SAVEFORMAT (BricsCAD). clautolisp implementation; see the clautolisp user manual (Host backend).