Checks
Class in BIM.works_SDK.
API catalogue · BIM.works_SDK · Class
public class Checks : SdkNamespaceAPI Namespace for model checks: validate an IDS (Information Delivery Specification, buildingSMART IDS 1.0) and run it on model versions. Nothing is stored on the server; the IDS travels with every call
Inheritance and interfaces#
System.Object- SdkNamespace
Members#
| Member | Kind | Description |
|---|---|---|
| Checks(BimWorksClient) | Constructor | Creates the checks API for a client; normally use BIM.works_SDK.BimWorksClient.Checks. |
| ReadTooLargeSummary(BimWorksException) | Method | The per-specification summary a RESULT_TOO_LARGE refusal of RunIdsCheck carries. |
| RunIdsCheck(ISet<Guid>, string) | Method | Runs an IDS on model versions and returns the whole result tree, with every checked object per specification. Needs the checks:run scope. The run is held in … |
| RunIdsCheck(Guid, string) | Method | Runs an IDS on one model version and returns the whole result tree. |
| RunIdsCheckSummary(ISet<Guid>, string, bool) | Method | Runs an IDS on model versions and returns the counts, without the objects. Not limited in size, unlike RunIdsCheck. Needs the checks:run scope. |
| RunIdsCheckSummary(Guid, string, bool) | Method | Runs an IDS on one model version and returns the counts, without the objects. |
| ValidateIds(string) | Method | Validates an IDS without running it: that it is well-formed XML and valid against the IDS schema. Entity names are not looked up (an unknown entity applies t… |
Checks(BimWorksClient)#
public Checks(BimWorksClient bimWorksClient)Creates the checks API for a client; normally use BIM.works_SDK.BimWorksClient.Checks.
Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient |
ReadTooLargeSummary(BimWorksException)#
public static IdsCheckSummary ReadTooLargeSummary(BimWorksException exception)The per-specification summary a RESULT_TOO_LARGE refusal of RunIdsCheck carries.
Parameters#
| Name | Type | Description |
|---|---|---|
exception |
BimWorksException |
Returns#
The summary, or null when the exception is not such a refusal.
RunIdsCheck(ISet<Guid>, string)#
public IdsCheckResult RunIdsCheck(ISet<Guid> versionUuids, string ids)Runs an IDS on model versions and returns the whole result tree, with every checked object per specification.
Needs the checks:run scope. The run is held in memory on the server; a second run of the same IDS on the same versions is answered from it.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuids |
System.Collections.Generic.ISet{System.Guid} |
UUIDs of the model versions to check. |
ids |
System.String |
The IDS XML document. |
Exceptions#
BIM.works_SDK.BimWorksException— INVALID_CHECK_DEFINITION for an IDS that cannot run; RESULT_TOO_LARGE when the run has more object results than the server answers at once (use BIM.works_SDK.Checks.ReadTooLargeSummary(BIM.works_SDK.BimWorksException) orBIM.works_SDK.Checks.RunIdsCheckSummary(System.Collections.Generic.ISet%7bSystem.Guid%7d%2cSystem.String%2cSystem.Boolean)).
RunIdsCheck(Guid, string)#
public IdsCheckResult RunIdsCheck(Guid versionUuid, string ids)Runs an IDS on one model version and returns the whole result tree.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuid |
System.Guid |
UUID of the model version to check. |
ids |
System.String |
The IDS XML document. |
Exceptions#
BIM.works_SDK.BimWorksException— INVALID_CHECK_DEFINITION for an IDS that cannot run; RESULT_TOO_LARGE when the run has more object results than the server answers at once (use BIM.works_SDK.Checks.ReadTooLargeSummary(BIM.works_SDK.BimWorksException) orBIM.works_SDK.Checks.RunIdsCheckSummary(System.Collections.Generic.ISet%7bSystem.Guid%7d%2cSystem.String%2cSystem.Boolean)).
RunIdsCheckSummary(ISet<Guid>, string, bool)#
public IdsCheckSummary RunIdsCheckSummary(ISet<Guid> versionUuids, string ids, bool specifications = true)Runs an IDS on model versions and returns the counts, without the objects. Not limited in size, unlike RunIdsCheck.
Needs the checks:run scope.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuids |
System.Collections.Generic.ISet{System.Guid} |
UUIDs of the model versions to check. |
ids |
System.String |
The IDS XML document. |
specifications |
System.Boolean |
Also the status, counts and requirement counts of every specification. |
Exceptions#
BIM.works_SDK.BimWorksException— INVALID_CHECK_DEFINITION for an IDS that cannot run.
RunIdsCheckSummary(Guid, string, bool)#
public IdsCheckSummary RunIdsCheckSummary(Guid versionUuid, string ids, bool specifications = true)Runs an IDS on one model version and returns the counts, without the objects.
Parameters#
| Name | Type | Description |
|---|---|---|
versionUuid |
System.Guid |
UUID of the model version to check. |
ids |
System.String |
The IDS XML document. |
specifications |
System.Boolean |
Also the status and counts of every specification. |
ValidateIds(string)#
public IdsValidationResult ValidateIds(string ids)Validates an IDS without running it: that it is well-formed XML and valid against the IDS schema. Entity names are not looked up (an unknown entity applies to nothing in a run), and regular expressions are checked when the IDS runs: an invalid pattern gives an ERROR result titled "IDS validation error" in the run's results.
Needs the actions:read scope.
Parameters#
| Name | Type | Description |
|---|---|---|
ids |
System.String |
The IDS XML document. |
Returns#
IsValid, or the reason the server gives in Message. An invalid IDS is an answer, not an exception.
Exceptions#
BIM.works_SDK.BimWorksException— Any other refusal: authentication, scope, ...
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