Represents a DWG file format version.

Instances can be constructed from either a known DWG version name (e.g. 'AC1032') or its numeric value counterpart.

Constructors

Properties

Constructors

  • Create a DWG version from a version name or numeric value.

    If a string is provided, it is treated as the version name and must match one of the known entries. If a number is provided, it is treated as the numeric version value.

    Parameters

    • nameOrValue: string | number

      The DWG version name (e.g. 'AC1032') or the DWG version numeric value.

    Returns AcDbDwgVersion

    Error if the provided name or value is not recognized.

Properties

name: string

DWG version name as defined in AcDbDwgVersionEntry.name.

value: number

Numeric DWG version value as defined in AcDbDwgVersionEntry.value.