Card |
---|
default | true |
---|
label | URL / Resource / JSON Structure |
---|
| Resource: projects/<project_id>/connection
URL: https://api-stage.bimplus.net/v2/ <team_slug>/projects/<project_id>/connection Example: https://api.bimplus.net/v2/bimplus/projects/e504f24c-e643-452b-b901-6a18883dc7e9/connection JSON Structure: Name | Mandatory / Optional | Type | Description |
---|
Id | will be ignored | string(guid) | Cross section definition Connection Id | name elements | mandatory | string | Cross section definition name | description | optional | string | Short description of the cross section definition | freeAttributesId | optional | JSON Array | List of | all free attribute Ids, where are defined all parameters for CSG-contour calculationcsgParameters | mandatory | JSON Array | List of objects which define all rules for calculation contour’s vertex of CSG-geometry. Structure of this objects is described belowelement Ids. Connection will be created between elements in this array. | ConnectionElement | mandatory | object | Connection definition object, in this object are defined properties of the connection element which will be created. |
JSON Structure of the object in "csgParametersConnectionElement" attribute : Name | Mandatory / Optional | Type | Description |
---|
pointOrder |
---|
Id | will be ignored | string(guid) | Connection Id | parent | will be ignored | string(guid) | Connection parent | elementtyp | mandatory |
int | Point order | commandstring(guid) | Guid of element type "ConnectionElement" | type | mandatory | string |
Command for creation CSG-Geometry contour e.g. "O", "L", "R", .... | xCoordinate | mandatory | string | Contains either direct numerical value of coordinate e.g. "0.0" or formula which can contain simple operations between numerical values and/or attribute values defined by attribute name e.g "(B-B1)/2+B1". Expression may contain mathematical operation: [sin], [cos], [tan], [pi], +, /, -, * | yCoordinate | mandatory | string | description see above in xCoordinate | zCoordinate | optional | string | description see above in xCoordinate | "ConnectionElement" | layerid | mandatory | string(guid) | Connection layer Id, in this layer will be created connection element | attributes | mandatory | object | List of free attribute Ids, where are defined name and description of the connection element. | children | optional | JSON Array | Array of objects which define single parts of connection from which is built connection. E.g. one type of connection may have only plates with welds or another one maybe assembled from plates with wholes together with screws with nuts, generally can be defined any wanted connection geometry. |
|
Card |
---|
| Creates a new connection between single objects |
Card |
---|
| JSON Structure: (JSON structure is an object DtoConnections) NAME - ElementIds, optional, List<Guid>, DESCRIPTION -- NAME - ConnectionElement, mandatory Type ConnectionElement, DESCRIPTION -- Code Block |
---|
borderColor | Green |
---|
lang | xml |
---|
title | Headers |
---|
| Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
|
Code Block |
---|
borderColor | Red |
---|
lang | xml |
---|
title | JSON |
---|
| {
"elements":["909ff986-f74e-44b5-bcf2-ec7b779e3011", "6b12bd40-a4c6-4eae-8a0b-b93592f71483"
],
"ConnectionElement":{
"elementtyp":"a48f8bcc-79c7-47ed-ab43-f8c7f0ddffdf",
"type":"ConnectionElement",
"layerid":"72b7e0ba-ae1a-4a71-b1ec-ad8f553fb3bc",
"attributes":{
"general":{
"name":"Conection_Test",
"description":"Connection_Part_Of_test"
}
},
"children":[{
"elementtyp":"0a98744d-baf5-4606-ad86-2097a93f188f",
"parent":"61d54a09-3076-41f9-93e2-810cb3df99d0",
"type":"Opening",
"layerid":"0a98744d-baf5-4606-ad86-2097a93f188f",
"attributes":{
"general":{
"name":"Hole_1"
},
"element":{
"divisionid":"6a764b22-22dd-4cdb-83cc-33366ce8b4d3",
"logparentid":"548126f3-d69e-485b-a8ba-8fc5a615ed1c",
"matrix":{
"Values":[1, 0, 0, 100,
0, 1, 0, 100,
0, 0, 1, 0,
0, 0, 0, 1 ]
}
},
"geometry":{
"csg":{
"elements":[{
"type":"Path",
"crossSection":"RD8",
"vectorX":[1, 0, 0 ],
"vectorY":[0, 1, 0 ],
"geometry":[{
"geoType":"StartPolygon",
"point":[0, 0, 2900 ]
},
{
"geoType":"Line",
"point":[0, 0, 3200 ]
}
]
}
],
"color":4286611584
}
}
}
}
]
}
} |
|
Card |
---|
| Code Block |
---|
borderColor | Green |
---|
lang | xml |
---|
title | Status |
---|
| Status: 201 Created
|
{ Code Block |
---|
borderColor | Red |
---|
lang | xml |
---|
title | JSON |
---|
| {
"id": "e5875246-7306-49b4-ab3a-30f014f01d3c" |
"elements": ["909ff986-f74e-44b5-bcf2-ec7b779e3011", "6b12bd40-a4c6-4eae-8a0b-b93592f71483"], |
{
{
"elementtyp": "a48f8bcc-79c7-47ed-ab43-f8c7f0ddffdf", |
"id": "7470de4c-6893-4a2e-9c2c-60629e28ad93", |
"parent": "61d54a09-3076-41f9-93e2-810cb3df99d0", |
"type": "ConnectionElement", |
"layerid": "72b7e0ba-ae1a-4a71-b1ec-ad8f553fb3bc", |
{ {
{
"name": "Conection_Test", |
"description": "Connection_Part_Of_test" |
} }, [ {
[ {
"elementtyp": "0a98744d-baf5-4606-ad86-2097a93f188f", |
"parent": "61d54a09-3076-41f9-93e2-810cb3df99d0", |
"id": "c5ba93c2-ef80-451f-8104-aa58f8ef787a", |
"layerid": "0a98744d-baf5-4606-ad86-2097a93f188f", |
{ " {
}, {
{
"divisionid": "6a764b22-22dd-4cdb-83cc-33366ce8b4d3", |
"logparentid": "548126f3-d69e-485b-a8ba-8fc5a615ed1c", |
{
{
"Values": [1.0, 0.0, 0.0, 100.0, 0.0, 1.0, 0.0, 100.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0] |
} }, { {
"vectorX": [1.0, 0.0, 0.0], |
"vectorY": [0.0, 1.0, 0.0], |
"geometry": [{
"geometry": [{
"geoType": "StartPolygon", |
"point": [0.0, 0.0, 2900.0] |
}, {
"point": [0.0, 0.0, 3200.0 | ] } ] } ], 4286611584 } },
4286611584
}
},
"elementstate": | {
{
"state": "0aaf5a1c-2453-40cb-9232 | -315119dd288f" } } }, ] },
-315119dd288f"
}
}
},
]
},
} |
|
|