Skip to main content

BimDrawingPdf

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


  • Returns BimPdf

    The BimPdf object

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>

publicgetBackgroundColor

  • getBackgroundColor(): Color3
  • Gets the background color for the current PDF


    Returns Color3

    The background color as a Color3

publicpage

  • page(p?: number): Promise<number>
  • Sets which page of PDF should be rendered or gets the current page.


    Parameters

    • optionalp: number

      Number of the page you wish to render, 1 - pageCount.

    Returns Promise<number>

publicpageCount

  • pageCount(): number

  • Returns number

    The number of pages in the PDF.

publicsetBackgroundColor

  • setBackgroundColor(color: Color3): void
  • Sets the background color of the PDF.


    Parameters

    • color: Color3

      new background color for the PDF.

    Returns void