Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Detect all the clashes in a project
Deck of Cards
idbimDetectClash


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: services/postprocess

URLhttps://api-stage.bimplus.net/v2/<team_slug>/services/postprocess

Example:https://api-stage.bimplus.net/v2/bimplus/services/postprocess

JSON Structure

Name

Mandatory / Optional

Type

Description

runAsync

mandatory

bool

True sets the clash process to run asynchronously

postProcess

mandatory

object

It runs as a windows service in the server

projectId

mandatory

string

Id of the project



Card
labelHTTP Method
 POST


Card
labelDescription
 Detects all the clashes in a project. Beware, that this will more time as they will be typically 100s of clashes in a model


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
  "runAsync":"True",
  "postProcess":{
    "projectId":"0c9b514a-5b30-4f77-b0ff-2184d079fd30"
  }
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
borderColorRed
langxml
titleJSON
{
  "postProcess":{
    "projectId":"0c9b514a-5b30-4f77-b0ff-2184d079fd30"
  },
  "runAsync":false
}



Anchor
detectClashObjects
detectClashObjects

...

Deck of Cards
idbimCreateProjectClashFilter


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: projects/<project_id>/clashfilters

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/<project_id>/clashfilters

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects/48f5f0e5-4979-4c4f-b28a-fbba01d13181/clashfilters

JSON Structure : clash filter

Name

Mandatory / Optional

Type

Description

nameoptionalstringCustom table name
descriptionoptionalstringCustom table description
idwill be ignoredstring(guid)The id of the custom table. Will be taken from request url.
tolerancexoptionaldoubleTolerance by clash detection in x-direction.
toleranceyoptionaldoubleTolerance by clash detection in y-direction.
tolerancezoptionaldoubleTolerance by clash detection in z-direction.
boxsizeoptionaldoubleSize of visual clash element.
definitionsmadatoryJSON Array

Array of two clash filter definition objects for a clash filter.
An example template is specified in request json section.

JSON Structure : clash filter definition

Name

Mandatory / Optional

Type

Description

nameoptionalstringName of the filter
filteridmadatorystring(guid)The id of the filter
selectionidoptionalstring(guid)The id of the selection
definitionmadatorystringThe definition of a filter
selectionoptionalobjectObject of the selection
boxsizeoptionaldoubleSize of visual clash element.
definitionsmadatoryJSON Array

Array of two clash filter definition objects for a clash filter.
An example template is specified in request json section.



Card
labelHTTP Method
 POST


Card
labelDescription
Create a new clash filter in specified project


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
  "name":"TEST",
  "description":"test",
  "tolerancex":0.01,
  "boxsize":0.4,
  "definitions":[{
      "filterid":"0c39a1c5-2551-4587-8fd9-ec8b59372bcd",
      "definition":"[I]0F106AF0-A919-44C5-B211-15BD5EF620B6",
      "selectionId":"8541a1c5-2551-4587-8fd9-ec8b59372bcd"
    },
    {
      "filterid":"0c39a1c5-2551-4587-8fd9-ec8b59372bcd",
      "definition":"[I]0F106AF0-A919-44C5-B211-15BD5EF620B6"
    }
  ]
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK


Code Block
titleJSON
{
  "name":"TEST",
  "description":"test",
  "tolerancex":0.01,
  "boxsize":0.4,
  "definitions":[{
      "name":"Filter1",
      "filterid":"0c39a1c5-2551-4587-8fd9-ec8b59372bcd",
      "definition":"[I]0F106AF0-A919-44C5-B211-15BD5EF620B6",
      "selectionid":"8541a1c5-2551-4587-8fd9-ec8b59372bcd",
      "id":"c9d5ca15-2561-4c58-85da-870a89242b87"
    },
    {
      "name":"Filter2",
      "filterid":"0c39a1c5-2551-4587-8fd9-ec8b59372bcd",
      "definition":"[I]0F106AF0-A919-44C5-B211-15BD5EF620B6",
      "id":"c9d5ca15-2561-4c58-85da-870a89242b87"
    }
  ],
  "id":"c9d5ca15-2561-4c58-85da-870a89242b87"
}



...