Table of contents
Clash Detection
This operation is deprecated. Please upgrade to the current version of this API as soon as possible.
get https://dev-api.bentley.com/clashdetection/results/{id}

Gets the clash detection result details for the specified result id.

Authentication

Requires Authorization header with valid Bearer token for scope itwin-platform.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Request parameters

Name
Required?
Description
id
Yes

Result id

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Response 200 OK

OK

json
{
    "result": [{
        "clashType": "Collision",
        "clearance": -1,
        "elementAId": 2199023257345,
        "elementALabel": "Pipe 6 1-SWS-0104",
        "elementACategoryIndex": 0,
        "elementAModelIndex": 0,
        "elementBId": 2199023260071,
        "elementBLabel": "Pipe 6 1-SWS-0107",
        "elementBCategoryIndex": 1,
        "elementBModelIndex": 0,
        "center": {
            "x": 39.0157794952393,
            "y": -20.889575958252,
            "z": 5.11492538452148
        },
        "suppressingRuleIndexArray": [0],
        "status": "New"
    }],
    "categoryList": [{
        "id": 2199023255623,
        "displayName": "SWS-1-SWS-0104"
    }, {
        "id": 2199023255625,
        "displayName": "SWS-1-SWS-0107"
    }],
    "modelList": [{
        "id": 2199023255600,
        "displayName": "3D-PLANT"
    }],
    "suppressingRuleList": [{
        "id": "ZuO3OCC8sUuVcgeXz1Ih_TGCT5rBByBBqcycpQKmKtY",
        "displayName": "test1"
    }]
}

Response 401 Unauthorized

This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.

json
{
    "$ref": "#/components/examples/401.HeaderNotFound.example"
}

Response 404 Not Found

This response indicates that the specified result was not found.

json
{
    "error": {
        "code": "ClashDetectionResultNotFound",
        "message": "Requested result is not available."
    }
}

Response 429 Too many requests

This response indicates that the client sent more requests than allowed by this API for the current tier of the client.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

Clash

The details for a clash between two elements.

Name
Type
Description
status
String

The status of clash result - possible values: New, Open, Resolved, Not Available.

clashType
String

The type of clash detected - possible values: Collision, Clearance, Touching, Not Initialized.

clearance
Number

When the clash type is Clearance, the value is returned in meters. Otherwise -1 is returned.

elementAId
String

The unique id of element A.

elementBId
String

The unique id of element B.

elementALabel
String

The display label of element A.

elementBLabel
String

The display label of element B.

elementAModelIndex
Integer

The zero-based index used to lookup the element A model in the modelList.

elementBModelIndex
Integer

The zero-based index used to lookup the element B model in the modelList.

elementACategoryIndex
Integer

The zero-based index used to lookup the element A category in the categoryList.

elementBCategoryIndex
Integer

The zero-based index used to lookup the element B category in the categoryList.

suppressingRuleIndexArray
Integer[]

The array of zero-based indices used to lookup the suppressing rules.

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

Clash Center

The clash center point.

Name
Type
Description
x
Number
y
Number
z
Number

Error Response

Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.

Name
Type
Description
error

Error information.

Model Lookup Entry

Name
Type
Description
id
String

Unique identifier of the model.

displayName
String

Display name of the model.

Category Lookup Entry

Name
Type
Description
id
String

Unique identifier of the category.

displayName
String

Display name of the category.

Clash Detection Result

Name
Type
Description
result

Array of all the clashes in this clash detection result.

modelList

Model lookup table.

categoryList

Category lookup table.

suppressingRuleList

Suppression rule lookup table.

Suppression Rule Lookup Entry

Name
Type
Description
id
String

Unique identifier of the suppression rule.

displayName
String

Display name of the suppression rule.

Was this page helpful?