Bim
Class in BIM.works_SDK.
API catalogue · BIM.works_SDK · Class
public class Bim : SdkNamespaceAPI Namespace for BIM related API calls
Inheritance and interfaces#
System.Object- SdkNamespace
Members#
| Member | Kind | Description |
|---|---|---|
| Bim(BimWorksClient) | Constructor | Creates the BIM query API for a client; normally use BIM.works_SDK.BimWorksClient.Bim. |
| ProcessQueryResponse(Response) | Method | Extracts query records and expands compact qid and IFC-type references. Query and Query2 call this automatically. Applications normally use those methods. |
| Query(Guid, string) | Method | Executes a BQL query on one model version and returns its records. The call blocks until the response arrives. Read array results with JsonElement.EnumerateA… |
| Query2(ISet<Guid>, Guid) | Method | Executes a saved query by its UUID across model versions. |
| Query2(ISet<Guid>, string) | Method | Executes a BQL query across a set of model versions. |
| Query2(Guid, Guid) | Method | Executes a saved query on one model version. |
Bim(BimWorksClient)#
public Bim(BimWorksClient bimWorksClient)Creates the BIM query API for a client; normally use BIM.works_SDK.BimWorksClient.Bim.
Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient | The authenticated client that sends requests. |
ProcessQueryResponse(Response)#
Extracts query records and expands compact qid and IFC-type references.
Query and Query2 call this automatically. Applications normally use those methods.
Parameters#
| Name | Type | Description |
|---|---|---|
response |
Response | A completed query response from the server. |
Returns#
The objects array when present; otherwise the response output unchanged.
Query(Guid, string)#
public JsonElement Query(Guid versionUuid, string bimQuery)Executes a BQL query on one model version and returns its records.
The call blocks until the response arrives. Read array results with JsonElement.EnumerateArray(). See Run a BQL query for record examples and Error codes for server errors.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuid |
System.Guid |
UUID of the model version to read. |
bimQuery |
System.String |
BQL text, for example GET qid, type WHERE type = IFCWALL. |
Returns#
The JSON records. Dotted GET features become nested objects; qids are strings. The shape depends on the query.
Exceptions#
BIM.works_SDK.BimWorksException— The server rejects the query, scope, or model access. Inspect GetEnum(), GetCode(), and Message.
Query2(ISet<Guid>, Guid)#
public JsonElement Query2(ISet<Guid> versionUuids, Guid queryUuid)Executes a saved query by its UUID across model versions.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuids |
System.Collections.Generic.ISet{System.Guid} |
UUIDs of the model versions to read. |
queryUuid |
System.Guid |
UUID of the saved query, rather than BQL text. |
Returns#
The saved query's JSON records, with compact wire data expanded.
Exceptions#
BIM.works_SDK.BimWorksException— The query is unavailable or the server rejects the request or model access.
Query2(ISet<Guid>, string)#
public JsonElement Query2(ISet<Guid> versionUuids, string bimQuery)Executes a BQL query across a set of model versions.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuids |
System.Collections.Generic.ISet{System.Guid} |
UUIDs of the model versions to read. |
bimQuery |
System.String |
The BQL text to execute against those versions. |
Returns#
The query's JSON records, with compact wire data expanded. The GET columns determine the record shape.
Exceptions#
BIM.works_SDK.BimWorksException— The server rejects the query, scope, or access to a version.
Query2(Guid, Guid)#
public JsonElement Query2(Guid versionUuid, Guid queryUuid)Executes a saved query on one model version.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuid |
System.Guid |
UUID of the model version to read. |
queryUuid |
System.Guid |
UUID of the saved query. |
Returns#
The saved query's JSON records.
Exceptions#
BIM.works_SDK.BimWorksException— The server rejects the request, saved query, or model access.
Inherited members#
- BimWorksClient
- Execute(Request)
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString