BIM.works SDKs - v1.5.0-b164
    Preparing search index...

    A ModelManager keeps track of the models that have been loaded. A ModelManager is required when using the Viewer2d or Viewer3d. Most application will only need one ModelManager, but if you have an application where you want to show different models in different viewers, you might need more. The ModelManager keeps track of:

    Index

    Constructors

    Methods

    • Add one or more models. The returned Promise will resolve after all connected components have performed the addModels call.

      Parameters

      Returns Promise<void>

    • Parameters

      • buildingStoreyQids: Iterable<Qid>
      • includeOpenings: boolean

      Returns QidSet

      A Set of Qid of the objects that belong to the given building storeys

    • Hide the given models (must already be loaded)

      Parameters

      • versionUuids: string[]

      Returns Promise<void>

    • Parameters

      • versionUuid: string

      Returns boolean

      Whether the given Version (by UUID) has been loaded

    • Remove one or more models. The returned Promise will resolve after all connected components have performed the removeModels call.

      Parameters

      Returns Promise<void>

    • Replace the existing set of loaded models, by the given set of models. This method will potentially unload models. The returned Promise will resolve after all connected components have performed the setModels call.

      Parameters

      Returns Promise<void>

    • Show the given models (must already be loaded)

      Parameters

      • versionUuids: string[]

      Returns Promise<void>