Skip to main content

BimDrawingDwg

Represents a drawing that has been loaded using the DrawingApi class.

Hierarchy

Index

Constructors

constructor

Properties

publicreadonlydrawingChange

drawingChange: BimChangeBlob | BimChangeDwg

BimChangeDwg or BimChangeBlob that the drawing source is loaded from

Accessors

publicboundingInfo

  • get boundingInfo(): BoundingInfo
  • Bounding info for the drawing plane


    Returns BoundingInfo

publicdrawing

publicparentTransformNode

  • get parentTransformNode(): Nullable<TransformNode>
  • Returns Nullable<TransformNode>

publicvisible

  • get visible(): boolean
  • set visible(v: boolean): void
  • true if the drawing is visible, otherwise false.


    Returns boolean

  • Parameters

    • v: boolean

    Returns void

Methods

publicdispose

  • dispose(): void
  • Dispose the drawing (it is unloaded and will not longer be visualized.)


    Returns void

publicforceUpdate

  • forceUpdate(): Promise<void>
  • Force the drawing to zoom based on the camera position and render.


    Returns Promise<void>

publicinvertBackgroundColor

  • invertBackgroundColor(invert: boolean): void
  • Set if a DWG should have inverted background color.


    Parameters

    • invert: boolean

      true if you wish to render with inverted background color, otherwise false

    Returns void

publicsetGrayscale

  • setGrayscale(grayscale: boolean): void
  • Set if a DWG should render as grayscale or not.


    Parameters

    • grayscale: boolean

      true if you wish to render as grayscale, otherwise false

    Returns void