Versions Compared

Key

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

...

Object Service

...

Objects are the primary component of the project tree and it exists in two forms.

...

A view of an object can be created similar to the Slideshow & Topics by updating the object (i.e PUT objects/<object_id>) This is similar to creating slides & the template for creating slides is present here

 

Anchor
deleteObjectdeleteObject

Delete the object

...

idbimObjDelete

...

defaulttrue
labelURL / Resource / JSON Structure

...

chunk&templates
chunk&templates

Improve the get model geometries performance using chunks & templates

The performance of the Get Geometry call can be improved by using templates & chunks.

Templates

  • Templates are geometry references which are generated if more than one object has same geometry information. Templates are automatically generated on Bimplus import.
  • Templates can be got for the whole project or per layer/discipline
    eg:

...

...

...

...

...

 

Code Block
 {
            "id": "1e9d3697-cde5-4d67-8998-267edd4fe968",
            "type": "Door",
            "attributes": {
                "geometry": {
                    "colorid": 1,
                    "template": "5ad3b016-a9d8-4f8a-9e12-8919c411f076",
                    "matrix": [
                        1,
                        0,
                        0,
                        75957.48,
                        0,
                        0,
                        1,
                        17100,
                        0,
                        -1,
                        0,
                        -64025,
                        0,
                        0,
                        0,
                        1
                    ]
                }
            }


Chunks

 

 

Anchor
deleteObject
deleteObject

Delete the object
Deck of Cards
idbimObjDelete
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: objects/<object_id> 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/objects/<object_id>

Examplehttps://api-stage.bimplus.net/v2/bimplus/objects/7cf910cb-e357-43f6-aa3a-b45c26380f75

7cf910cb-e357-43f6-aa3a-b45c26380f75
Card
label
Card
labelHTTP Method
 DELETE
Card
labelDescription
 Deletes a specified object.
Card
labelRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
borderColorRed
langxml
titleJSON
[3]
0:  {
id: "0d2ce2cc-3588-45d6-a59a-f6b89ebed34e"
name: "!!!!!_VORTEILSHAUS V40 SD45 Traufeingang"
}-
1:  {
id: "2d703abe-b4f9-407c-af53-a39c5b7ba872"
name: "__5 999 Parklife Salzburg Lehen"
}-
2:  {
id: "c480cc54-aec4-4bef-8d35-93bb090e1aba"
name: "0811-Wohnhaus Kraus - Carport1"
}

 

{
id"1e9d3697-cde5-4d67-8998-267edd4fe968"
type"Door"
attributes
{
geometry
{
colorid1
template"5ad3b016-a9d8-4f8a-9e12-8919c411f076"
matrix
[
16]
0:  1
1:  0
2:  0
3:  75957.48
4:  0
5:  0
6:  1
7:  17100
8:  0
9:  -1
10:  0
11:  -64025
12:  0
13:  0
14:  0
15:  1
-
}
-
}