Skip to main content

DwgMetadata2D

Metadata for a 2D DWG

Hierarchy

Index

Properties

readonlyhasParseError

hasParseError: boolean

Set to true if the change has not been parsed correctly. For example if this happens for a .ifc or a .dwg file then it will not be possible to load the file.

readonlyheight

height: number

Height of DWG

readonlymargin

margin: { leftRight: number; topBottom: number }

DWG margin


Type declaration

  • readonlyleftRight: number

    Left and right margin

  • readonlytopBottom: number

    Top and bottom margin

readonlyoffset

offset: { left: number; top: number }

DWG offset


Type declaration

  • readonlyleft: number

    Left

  • readonlytop: number

    Top

optionalreadonlyparserVersion

parserVersion?: VersionInfo

Version of the parser that parsed this DWG file. Useful when we load DWG files which was parsed with old parsers to keep backwards compatibility. May be undefined if file was parsed before this property was introduced.

readonlytype

type: 2d

Signifies that it is a 2D DWG.

readonlyurl

url: { svg: string }

URL for the geometry file to be rendered


Type declaration

  • readonlysvg: string

readonlyversion

version: DwgVersion

DWG version the DWG was last saved in.

readonlywidth

width: number

Width of DWG

readonlyxrefs

xrefs: {}

Relative URLs to the xrefs


Type declaration

  • [relativeUrl string]: { loaded: boolean; name: string; overlay: boolean }