Code Block |
---|
borderColor | Green |
---|
lang | xml |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
borderColor | Red |
---|
lang | xml |
---|
title | In general, the response json has following format : |
---|
| {
"id": "8dbb2a20-a75b-40b5-8079-540d9d2a2b0a",
"projectId": "ceac9b1e-31d9-4c5f-bd78-f909767b7b01",
"name": "Project Selection 1",
"description": "complete project",
"selection": {
"projectid": "ceac9b1e-31d9-4c5f-bd78-f909767b7b01",
"modelid": "f012f6e0-fa56-4234-9760-a3ca711163da",
"type": "Topology",
"elements": null,
"topology": {
"camera": null,
"topology": [
{
"id": "79de2e39-2dab-4698-81b3-d47d47baf5a7",
"visible": false,
"opaque": false,
"opacity": 0
},
{
"id": "81da639e-213d-4b1e-b390-0f4a6dd89dda",
"visible": false,
"opaque": false,
"opacity": 0
},
{
"id": "1bf9d9c6-d1e8-476c-ada2-c1826e94cdda",
"visible": false,
"opaque": false,
"opacity": 0
},
{
"id": "8b99a203-a2c6-4ac9-82ff-a04d1485239d",
"visible": false,
"opaque": false,
"opacity": 0
},
{
"id": "d93ffea5-1def-462a-9085-c626f7bedfc0",
"visible": false,
"opaque": false,
"opacity": 0
}
],
"layers": [
{
"revision": 0,
"id": "0f106af0-a919-44c5-b211-15bd5ef620b6",
"name": null,
"divisionId": "f012f6e0-fa56-4234-9760-a3ca711163da",
"divisionName": null,
"visible": false,
"opaque": false,
"opacity": 0
},
{
"revision": 0,
"id": "11555f6f-10ec-4180-88b3-699738c079c3",
"name": null,
"divisionId": "f012f6e0-fa56-4234-9760-a3ca711163da",
"divisionName": null,
"visible": false,
"selection": {
"opaqueprojectid": false"ceac9b1e-31d9-4c5f-bd78-f909767b7b01",
"modelid": "f012f6e0-fa56-4234-9760-a3ca711163da",
"opacitytype": 0"Topology",
}"elements": null,
{
"topology": {
"revisioncamera": 0null,
"idtopology": "33826b01-c267-4b25-9f8e-79ac2953c443",[
"name": null,{
"divisionIdid": "f012f6e079de2e39-fa562dab-42344698-976081b3-a3ca711163dad47d47baf5a7",
"divisionNamevisible": nullfalse,
"visibleopaque": false,
"opaqueopacity": false,0
},
"opacity": 0
{
},
{"id": "81da639e-213d-4b1e-b390-0f4a6dd89dda",
"revisionvisible": 0false,
"idopaque": "30114b52-bc05-47c1-80b5-c7d5485d5831",
false,
"opacity": 0
"name": null,
},
"divisionId": "f012f6e0-fa56-4234-9760-a3ca711163da", {
"divisionNameid": null"1bf9d9c6-d1e8-476c-ada2-c1826e94cdda",
"visible": false,
"opaque": false,
"opacity": 0
},
{
"revisionid": 0"8b99a203-a2c6-4ac9-82ff-a04d1485239d",
"idvisible": "09e623d4-1e12-4a77-b358-ea1d0b28e4a7"false,
"nameopaque": nullfalse,
"divisionIdopacity": "f012f6e0-fa56-4234-9760-a3ca711163da",0
"divisionName": null,
},
"visible": false, {
"opaqueid": false"d93ffea5-1def-462a-9085-c626f7bedfc0",
"opacityvisible": 0false,
}
"opaque": false,
]
},
"filteropacity": null,0
"structure": null
}
} |
if query parameter "children" is used, the property "children" will contain array of child objects in the same format as is the object itself. Code Block |
---|
title | If query parameter "freeattributes" is used, the "property_value" contains full attribute definition in following format: |
---|
| {
"id": "<attribute_id>",
"name": "<attribute_name>",
"group": "<attribute_group>",
"type": "<attribute_value_type>",
"isInternal": <true or false>,
"value": "<attribute_value>"
} |
Examples: Code Block |
---|
title | GET /<teamslug>/objects/<objectid> |
---|
| {
"elementtyp": "10074eef-9418-4d64-9c6d-23932835a7f1",
"id": "94f0289c-41b3-450f-9c04-0527ef9a1138",
"parent": "8015e60e-f9c6-4544-a3e8-feadbfd154ba",
"type": "Wall",
"layerid": "0f106af0-a919-44c5-b211-15bd5ef620b6",
"attributes": {
"element (default property set)": {
}
],
"layers": [
{
"revision": 0,
"id": "0f106af0-a919-44c5-b211-15bd5ef620b6",
"name": null,
"divisionId": "f012f6e0-fa56-4234-9760-a3ca711163da",
"typedivisionName": "Wall"null,
"model": "Model A",
"layervisible": "BuildingModel"false,
},
"general (default property set)": {
"name": "Basic Wall:300_21_isolatie_208.5_spouwklein:4820766",
"opaque": false,
"description": "Ifc Imported Element",
"ifcglobaluniqueidopacity": "2H$2pBsuL7TgKZ59zSDw0D",
0
"ifcelementtype": "IfcWallStandardCase"
},
"content": {
"tag": "4820766",
"objecttyperevision": "Basic Wall:300_21_isolatie_208.5_spouwklein:4296143"0,
"skipparentlocations": "False",
"extrudeprofiletype": "RectangleProfile",
"polyeder areaid": "25,851 m²11555f6f-10ec-4180-88b3-699738c079c3",
"polyeder volume": "2,036 m³",
"xdim": 5160.00000000001,
"ydimname": 208.5null,
}
},
...
} | Code Block |
---|
title | GET /<teamslug>/objects/<object_id>?freeattributes=true |
---|
| {
"elementtyp": "10074eef-9418-4d64-9c6d-23932835a7f1",
"id": "94f0289c-41b3-450f-9c04-0527ef9a1138",
"parentdivisionId": "8015e60ef012f6e0-f9c6fa56-45444234-a3e89760-feadbfd154baa3ca711163da",
"typedivisionName": "Wall"null,
"layerid "visible": "0f106af0-a919-44c5-b211-15bd5ef620b6"false,
"attributes": {
"element (default property set)": {
opaque": false,
"type": {
"idopacity": "a0e8ae2c-c869-4ec3-9019-25d3704be707",0
"name": "Type",
},
"group": "Element (default Property set)",
"subGroup": "Element",
{
"type": "Guid",
"valuerevision": "Wall"0,
},
"model": {
"id": "cd320d7b33826b01-c267-72994b25-4abc-8409-c86e46fa45f9",
9f8e-79ac2953c443",
"name": "Model"null,
"group": "Element (default Property set)",
"subGroupdivisionId": "Elementf012f6e0-fa56-4234-9760-a3ca711163da",
"type": "Guid",
"valuedivisionName": "Model A"null,
},
"layer": {
"idvisible": "4812c68a-3f8d-40c1-b3f8-551a4102a406"false,
"name": "Layer",
"groupopaque": "Element (default Property set)",
false,
"subGroup": "Element",
"typeopacity": "Guid",0
"value": "BuildingModel"
},
}
...
}
} | Code Block |
---|
title | GET <teamslug>/objects/<object_id>?internal=true |
---|
| {
"elementtyp": "10074eef-9418-4d64-9c6d-23932835a7f1",
"id": "94f0289c-41b3-450f-9c04-0527ef9a1138",
"parent": "8015e60e-f9c6-4544-a3e8-feadbfd154ba",
"type": "Wall",
"layerid": "0f106af0-a919-44c5-b211-15bd5ef620b6",
"attributes": {
"element": {
{
"revision": 0,
"id": "30114b52-bc05-47c1-80b5-c7d5485d5831",
"isparent": true,
"nrname": 4null,
"elementtyp": "10074eef-9418-4d64-9c6d-23932835a7f1",
"logparentid": "b1570b15-2786-4c22-baf0-94e07de69990",
"divisioniddivisionId": "1b6fa8aef012f6e0-568afa56-4bc04234-81b79760-c6d282834a0ca3ca711163da",
"materialstring": "ISR_Isolatie",
"matrix": {
"valuesdivisionName": [null,
1,
"visible": 0false,
0,
"opaque": 120false,
0,
1,"opacity": 0
0,
-228.5},
0,
{
0,
1,
"revision": 0,
-70,
0,
0"id": "09e623d4-1e12-4a77-b358-ea1d0b28e4a7",
0,
1"name": null,
]
},
"articleiddivisionId": "0583a9a7f012f6e0-3756fa56-48b94234-b8369760-63541bdf130ea3ca711163da",
"materialsurfaceid": "058578b6-6a32-48f5-ae4a-59dc452de287",
"layeriddivisionName": "0f106af0-a919-44c5-b211-15bd5ef620b6"
null,
},
"general": {
"namevisible": "Basic Wall:300_21_isolatie_208.5_spouwklein:4820766",
false,
"description": "Ifc Imported Element",
"isobjectvalidopaque": true
false,
},
"elementstate": {
"stateopacity": "0aaf5a1c-2453-40cb-9232-315119dd288f"0
},
"objectlog": {
"createdby": "e4d7ac3c-94f3-4507-9b8b-a1505225845c", }
"created": "2016-01-28T10:51:04.843",
"modifiedby": "e4d7ac3c-94f3-4507-9b8b-a1505225845c",
]
"modified": "2016-01-28T10:51:04.843" },
"revisionfilter": 0null,
},
...
"structure": null
}
} |
|