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

    API Namespace BIM is used for BIM related API calls.

    Index

    Constructors

    Methods

    • Using "any" on purpose here, otherwise crazy casting required

      Parameters

      • models: Iterable<string>

      Returns Promise<unknown>

    • Query one or models

      Parameters

      • models: Iterable<string>

        One ore more Vid

      • query: string

        The query (BQL) to execute

      • OptionaluseCache: boolean

        Whether the results should internally be cached so that future calls to the same query+models are faster. Defaults to false. Use this judiciously as the results are cached in memory until the BimWorksClient is closed

      • OptionalforceGetQid: boolean

        Queries without a GET statement will automatically returns Qids only, but BQL with a GET statement does not. Setting this parameter to true (default: false) forces Qids to be returned even when not included in the GET statement

      Returns Promise<unknown>

      A Promise that resolves to the query results, currently untyped.

    • Specialized (and optimized) call to execute a query and get the results as a QidSet. Regardless of any GET statements that are included in the BQL query, only Qids will be retrieved

      Parameters

      • models: Iterable<string>

        The Vids of the models that you want to query

      • query: string

        The query to execute

      • OptionaluseCache: boolean

        Whether the results should internally be cached so that future calls to the same query+models are faster. Defaults to false. Use this judiciously as the results are cached in memory until the BimWorksClient is closed

      Returns Promise<QidSet>

      A Promise that resolves to a QidSet

    • Set the discipline of the given Version

      Parameters

      • versionUuid: string

        the Vid of the Version

      • discipline: Discipline

        The new discipline

      Returns Promise<void>

    • Validate a BQL query

      Parameters

      • query: string

      Returns Promise<boolean>

      A Promise that resolves to true when the query was valid, otherwise the promise fails with the appropriate error message