Versions Compared

Key

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

...

...

Deck of Cards
idbimCreateTeamTemplate
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: attributetemplates

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

Example: https://api-stage.bimplus.net/v2/bimplus/attributetemplates

JSON Structure

Name

Mandatory / Optional

Type

Description

name

mandatory

string

Name of the attribute template

description

optional

string

Short description of the attribute template

freeattributesmandatoryJSON ArrayList of free attribute ids
elementtypesmandatoryJSON ArrayList of element type ids
Card
labelHTTP Method
 POST
Card
labelDescription
 Creates a new attribute template using free attributes & element types.
Card
labelRequest
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
titleJSON
langxml
{
  "name": "Attribute Template 1",
  "description": "Testing template",
  "freeattributes": [
    {
      "Id": "5EED7275-0B0D-41D5-A13E-0C1C1FA87B33"
    },
    {
      "Id": "67900FFF-A744-4EA3-A0DC-4140E424B756"
    },
    {
      "Id": "B5850E23-B1DF-4D4F-AAE8-CEE0D4BB06E6"
    }
  ],
  "elementtypes": [
    {
      "id": "F18DE608-0F7F-40E3-A0F7-8088778D18CB"
    },
    {
      "id": "F8E1D9E3-82C0-4F14-8337-7FE568117616"
    }
  ]
}
Card
labelResponse
Code Block
borderColorGreen
titleStatus
langxml
Status: 201 Created
Code Block
borderColorRed
titleJSON
langxml
{
  "name": "Attribute Template 1",
  "description": "Testing template",
  "elementtypes": [
    {
      "type": "not implemented",
      "category": "/7/1/10/",
      "name": "ID_Wandobjekte",
      "ifcType": "ID_IFCWall",
      "id": "f8e1d9e3-82c0-4f14-8337-7fe568117616"
    },
    {
      "type": "not implemented",
      "category": "/",
      "name": "ID_Hall",
      "ifcType": null,
      "id": "f18de608-0f7f-40e3-a0f7-8088778d18cb"
    }
  ],
  "freeattributes": [
    {
      "type": "double",
      "minvalue": "0",
      "decimal": 2,
      "unitid": "f99f40cf-da64-4c4f-8434-cb90722ba485",
      "unit": "mm",
      "visible": 1,
      "changeable": 1,
      "controltype": "TextBox",
      "id": "b5850e23-b1df-4d4f-aae8-cee0d4bb06e6",
      "name": "bend radius",
      "description": "bend diameter for reinforcement bars"
    },
    {
      "type": "double",
      "decimal": 2,
      "unitid": "3b871b65-516e-4e7e-a35f-faa7501d5d0d",
      "unit": "kg",
      "visible": 1,
      "changeable": 1,
      "controltype": "TextBox",
      "id": "5eed7275-0b0d-41d5-a13e-0c1c1fa87b33",
      "name": "double value",
      "description": ""
    },
    {
      "type": "int",
      "minvalue": "1",
      "maxvalue": "1000",
      "defaultvalue": "1",
      "decimal": 0,
      "unitid": "f99f40cf-da64-4c4f-8434-cb90722ba485",
      "unit": "mm",
      "optionalunit": "milimeter",
      "visible": 1,
      "changeable": 1,
      "controltype": "textbox",
      "id": "67900fff-a744-4ea3-a0dc-4140e424b756",
      "name": "NewFreeAttribute1_G2",
      "description": "Test attribute"
    }
  ],
  "created": "2015-04-23T05:42:52.91",
  "createdby": {
    "id": "7c555899-5a5f-44d1-930e-284930678bed",
    "email": "sslacky@nemetschek.com"
  },
  "id": "3e5c0964-8f28-469b-b176-bcfad48f2eef"
}

Anchor
getBimUnitListgetTeamTemplatesgetBimUnitList
getTeamTemplates

...

Get all the

...

attribute templates that belongs to a team
Deck of Cards
idbimGetBimUnitListbimGetTeamTemplates
Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: content/units  attributetemplates

URLhttps://api-stage.bimplus.net/v2/content<team_slug>/unitsattributetemplates

ExampleFilter: https://api-stage.bimplus.net/v2/content/unitshttps://api-stage.bimplus.net/v2/content/units?symbol=<symbolname>", returns all the unit with the specified symbol name./attributetemplates

Card
labelHTTP Method
 GET
Card
labelDescription
 Get  Get all the units from Bimplus DBattribute templates that belongs to a team.
Card
labelRequest
Code Block
borderColorGreen
titleHeaders
langxml
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Card
labelResponse
Code Block
borderColorGreen
titleStatus
langxml
Status: 200 OK
Code Block
borderColorRed
titleJSON
langxml
[
    {
        "unitname": "kgTemplate 1",
        "contextUnitTypecreated": "MASSUNIT2015-10-27T09:22:13.27",
        "idcreatedby": "3b871b65-516e-4e7e-a35f-faa7501d5d0d",
 {
            "nameid": "kilogram71e0ac3b-fa49-e540-ac2f-8caff3dd72ed",
            "descriptionemail": "base unit for massjayaraj.purushothaman@gmail.com"
    },
    {},
        "unitchanged": "m2015-10-27T09:32:05.27",
        "contextUnitTypechangedby": "LENGTHUNIT",
{
            "id": "7be3452a71e0ac3b-47f9fa49-4fd8e540-bd94ac2f-ef6c967d684e8caff3dd72ed",
            "nameemail": "meterjayaraj.purushothaman@gmail.com",
        "description": "base unit for length"
    },
    {
        "unit": "s",
        "contextUnitType": "TIMEUNIT",
        "id": "456e899b-2bda-49a5-8e6f-e1ff8bfd9e14",
        "name": "second",
        "description": "base unit for time"
    },
    {
        "unit": "K",
        "contextUnitType": "THERMODYNAMICTEMPERATUREUNIT",
        "},
        "id": "cbd91636511f1724-49fa3848-4a4f49a2-bdcc-03f27ca205f8",
        "name": "kelvin",
        "description": "base unit for thermodynamic temperature8b21-77180b61edc0"
    },
......
] 

Anchor
getBimUnit
getBimUnit

...