---
title: Checks
summary: Class in BIM.works_SDK.
order: 10
languages: [csharp]
sdk-package: .NET · BIM.works_SDK
---

# Checks

[[page:reference/dotnet/api|API catalogue]] · `BIM.works_SDK` · Class

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public class Checks : SdkNamespace
````

API 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`
- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14|SdkNamespace]]

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-ctor-4654582ed1f8|Checks(BimWorksClient)]] | Constructor | Creates the checks API for a client; normally use BIM.works_SDK.BimWorksClient.Checks. |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-readtoolargesummary-3fba097aa167|ReadTooLargeSummary(BimWorksException)]] | Method | The per-specification summary a RESULT_TOO_LARGE refusal of RunIdsCheck carries. |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-runidscheck-17e201d64320|RunIdsCheck(ISet&lt;Guid&gt;, 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 … |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-runidscheck-854269b27b0b|RunIdsCheck(Guid, string)]] | Method | Runs an IDS on one model version and returns the whole result tree. |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-runidschecksummary-3cc91d946feb|RunIdsCheckSummary(ISet&lt;Guid&gt;, 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. |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-runidschecksummary-f477cf37fbbd|RunIdsCheckSummary(Guid, string, bool)]] | Method | Runs an IDS on one model version and returns the counts, without the objects. |
| [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-validateids-eb3a291515dc|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)` {#member-ctor-4654582ed1f8}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public Checks(BimWorksClient bimWorksClient)
````

Creates the checks API for a client; normally use [[page:reference/dotnet/bim-works-sdk/bimworksclient-38b8aecc#member-checks-fce07e1a3cef|BIM.works_SDK.BimWorksClient.Checks]].

### Parameters

| Name | Type | Description |
|---|---|---|
| `bimWorksClient` | [[page:reference/dotnet/bim-works-sdk/bimworksclient-38b8aecc|BimWorksClient]] |  |

## `ReadTooLargeSummary(BimWorksException)` {#member-readtoolargesummary-3fba097aa167}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public static IdsCheckSummary ReadTooLargeSummary(BimWorksException exception)
````

The per-specification summary a RESULT_TOO_LARGE refusal of RunIdsCheck carries.

### Parameters

| Name | Type | Description |
|---|---|---|
| `exception` | [[page:reference/dotnet/bim-works-sdk/bimworksexception-a2ba1743|BimWorksException]] |  |

### Returns

The summary, or null when the exception is not such a refusal.

## `RunIdsCheck(ISet<Guid>, string)` {#member-runidscheck-17e201d64320}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
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 <code>checks:run</code> 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 [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-readtoolargesummary-3fba097aa167|BIM.works_SDK.Checks.ReadTooLargeSummary(BIM.works_SDK.BimWorksException)]] or `BIM.works_SDK.Checks.RunIdsCheckSummary(System.Collections.Generic.ISet%7bSystem.Guid%7d%2cSystem.String%2cSystem.Boolean)`).

## `RunIdsCheck(Guid, string)` {#member-runidscheck-854269b27b0b}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
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 [[page:reference/dotnet/bim-works-sdk/checks-2170f5f1#member-readtoolargesummary-3fba097aa167|BIM.works_SDK.Checks.ReadTooLargeSummary(BIM.works_SDK.BimWorksException)]] or `BIM.works_SDK.Checks.RunIdsCheckSummary(System.Collections.Generic.ISet%7bSystem.Guid%7d%2cSystem.String%2cSystem.Boolean)`).

## `RunIdsCheckSummary(ISet<Guid>, string, bool)` {#member-runidschecksummary-3cc91d946feb}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
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 <code>checks:run</code> 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)` {#member-runidschecksummary-f477cf37fbbd}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
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)` {#member-validateids-eb3a291515dc}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
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 <code>actions:read</code> 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

- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14#member-bimworksclient-1be9291fd000|BimWorksClient]]
- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14#member-execute-c04f7171437b|Execute(Request)]]
- `System.Object.Equals(System.Object)`
- `System.Object.Equals(System.Object,System.Object)`
- `System.Object.GetHashCode`
- `System.Object.GetType`
- `System.Object.MemberwiseClone`
- `System.Object.ReferenceEquals(System.Object,System.Object)`
- `System.Object.ToString`
