Skip to content

BIM属性查询

BIM数据处理成功后,带有属性结构的相关查询,例如Revit数据。
其中接口返回的数据结构与该数据实际的属性信息有关。(v3.0.4.250609+)

GET 根据id获取构件信息

GET /admin/bim/element/getById

请求参数

名称位置类型必选说明
idquerystringnone
folderIdquerystring新文件ID

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": {
    "id": "string",
    "parentId": "string",
    "dataId": null,
    "name": "string",
    "type": "string",
    "sphere": "string",
    "expandField": "string",
    "originalId": "string",
    "isParent": "string",
    "parentIds": "string",
    "entityId": "string",
    "children": null
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» idstringtruenonenone
»» parentIdstringtruenonenone
»» dataIdnulltruenonenone
»» namestringtruenonenone
»» typestringtruenonenone
»» spherestringtruenonenone
»» expandFieldstringtruenonenone
»» originalIdstringtruenonenone
»» isParentstringtruenonenone
»» parentIdsstringtruenonenone
»» entityIdstringtruenonenone
»» childrennulltruenonenone
» okbooleantruenonenone

POST 根据多个id获取构件信息

POST /admin/bim/element/getByIds

请求参数示例

json
{
  "ids": [
    "4c20776386834218ac30570daa1a511c"
  ],
  "folderId": "d6707182b684465c6fb01ec2ac57a598"
}

请求参数

名称位置类型必选说明
bodybodyobjectnone
» idsbody[string]ID集合
» folderIdbodystring新文件ID

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": [
    {
      "id": "string",
      "parentId": "string",
      "dataId": null,
      "name": "string",
      "type": "string",
      "sphere": "string",
      "expandField": "string",
      "originalId": "string",
      "isParent": "string",
      "parentIds": "string",
      "entityId": "string",
      "children": null
    }
  ],
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» data[object]truenonenone
»» idstringfalsenonenone
»» parentIdstringfalsenonenone
»» dataIdnullfalsenonenone
»» namestringfalsenonenone
»» typestringfalsenonenone
»» spherestringfalsenonenone
»» expandFieldstringfalsenonenone
»» originalIdstringfalsenonenone
»» isParentstringfalsenonenone
»» parentIdsstringfalsenonenone
»» entityIdstringfalsenonenone
»» childrennullfalsenonenone
» okbooleantruenonenone

GET 获取构件总数量

GET /admin/bim/element/count

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": 1724,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataintegertruenonenone
» okbooleantruenonenone

GET 根据entityId获取构件信息

GET /admin/bim/element/getByEntityId

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID
entityIdquerystringnone

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": {
    "id": "16d1edfcf9624365b17cb55bdd302c83",
    "parentId": "49504832d68041dab407d33123df9542",
    "dataId": null,
    "name": "混凝土承台 [909984]",
    "type": "4",
    "sphere": "[2286.8308,-536.5762,438.87,2294.3644,-526.8223,440.87]",
    "expandField": "{\"__viewable_in__\":{\"viewable_in\":\"3d\"},\"其他\":{\"族与类型\":\"CT_承台: 混凝土承台\",\"类型 ID\":\"269232\",\"类别\":\"常规模型\",\"类型\":\"混凝土承台\",\"\":\"CT_承台\"},\"__category__\":{\"Category\":\"Revit FamilyInstance\"},\"__instanceof__\":{\"instanceof_objid\":\"5\"},\"尺寸标注\":{\"里程方向尺寸\":\"4.9\",\"横截面方向尺寸\":\"8.6\",\"体积\":\"84.28\",\"向上高度\":\"2.0\"},\"__node_flags__\":{\"node_flags\":\"4\"},\"__name__\":{\"name\":\"混凝土承台 [909984]\"},\"__internalref__\":{\"Level\":\"2\"},\"阶段化\":{\"拆除的阶段\":\"\",\"创建的阶段\":\"新构造\"},\"约束\":{\"主体\":\"\",\"偏移\":\"438.87\",\"与邻近图元一同移动\":\"0\"},\"__revit-internal__\":{\"element_id\":\"909984\"},\"__parent__\":{\"parent\":\"5\"},\"文字\":{\"连续梁块位置\":\"\",\"构件类型\":\"承台\",\"连续梁定位\":\"\",\"连续梁方向\":\"\",\"施工段名称\":\"跨成都东西轴线大道特大桥\"},\"标识数据\":{\"标记\":\"C0006\",\"图像\":\"<无>\",\"注释\":\"\"}}",
    "originalId": "909984",
    "isParent": "0",
    "parentIds": "978d3c93d9f3491cb7944af847fc1fdd,73481852d48c45c5a1fd387a09860d8f,b904358fefcb42879621b9a5a10defc0,49504832d68041dab407d33123df9542",
    "entityId": "12",
    "children": null
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» idstringtruenonenone
»» parentIdstringtruenonenone
»» dataIdnulltruenonenone
»» namestringtruenonenone
»» typestringtruenonenone
»» spherestringtruenonenone
»» expandFieldstringtruenonenone
»» originalIdstringtruenonenone
»» isParentstringtruenonenone
»» parentIdsstringtruenonenone
»» entityIdstringtruenonenone
»» childrennulltruenonenone
» okbooleantruenonenone

GET 获取构件列表(树结构)

GET /admin/bim/element/tree

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID
parentIdquerystringnone
keywordquerystringnone

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": [
    {
      "id": "978d3c93d9f3491cb7944af847fc1fdd",
      "parentId": "-1",
      "dataId": null,
      "name": "Model",
      "type": "5",
      "sphere": "[-2586.3402,-649.8112,393.373,2586.3402,649.8112,464.0543]",
      "expandField": "{\"__node_flags__\":{\"node_flags\":\"5\"},\"__name__\":{\"name\":\"Model\"},\"__internalref__\":{\"Level\":\"2,1587\"},\"__revit-internal__\":{\"element_id\":\"69280\"},\"其他\":{\"项目名称\":\"项目名称\",\"族与类型\":\"\",\"类型 ID\":\"-1\",\"项目编号\":\"项目编号\",\"客户姓名\":\"所有者\",\"项目状态\":\"项目状态\",\"项目地址\":\"## 街道\\n省市自治区邮政编码\",\"项目发布日期\":\"出图日期\",\"类别\":\"项目信息\",\"类型\":\"\",\"\":\"\"},\"__category__\":{\"Category\":\"Root\"},\"__child__\":{\"child\":\"2,3,1583,1587,1635\"},\"__document__\":{\"schema_version\":\"1.0\",\"is_doc_property\":\"1\",\"schema_name\":\"rvt\"},\"能量分析\":{\"能量设置\":\"\"},\"标识数据\":{\"组织名称\":\"\",\"作者\":\"\",\"建筑名称\":\"\",\"组织描述\":\"\"}}",
      "originalId": "69280",
      "isParent": "1",
      "parentIds": null,
      "entityId": "1",
      "children": null
    }
  ],
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» data[object]truenonenone
»» idstringfalsenonenone
»» parentIdstringfalsenonenone
»» dataIdnullfalsenonenone
»» namestringfalsenonenone
»» typestringfalsenonenone
»» spherestringfalsenonenone
»» expandFieldstringfalsenonenone
»» originalIdstringfalsenonenone
»» isParentstringfalsenonenone
»» parentIdsnullfalsenonenone
»» entityIdstringfalsenonenone
»» childrennullfalsenonenone
» okbooleantruenonenone

GET 获取构件列表

GET /admin/bim/element/list

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID
parentIdquerystringnone
keywordquerystringnone

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": [
    {
      "id": "978d3c93d9f3491cb7944af847fc1fdd",
      "parentId": "-1",
      "dataId": null,
      "name": "Model",
      "type": "5",
      "sphere": "[-2586.3402,-649.8112,393.373,2586.3402,649.8112,464.0543]",
      "expandField": "{\"__node_flags__\":{\"node_flags\":\"5\"},\"__name__\":{\"name\":\"Model\"},\"__internalref__\":{\"Level\":\"2,1587\"},\"__revit-internal__\":{\"element_id\":\"69280\"},\"其他\":{\"项目名称\":\"项目名称\",\"族与类型\":\"\",\"类型 ID\":\"-1\",\"项目编号\":\"项目编号\",\"客户姓名\":\"所有者\",\"项目状态\":\"项目状态\",\"项目地址\":\"## 街道\\n省市自治区邮政编码\",\"项目发布日期\":\"出图日期\",\"类别\":\"项目信息\",\"类型\":\"\",\"\":\"\"},\"__category__\":{\"Category\":\"Root\"},\"__child__\":{\"child\":\"2,3,1583,1587,1635\"},\"__document__\":{\"schema_version\":\"1.0\",\"is_doc_property\":\"1\",\"schema_name\":\"rvt\"},\"能量分析\":{\"能量设置\":\"\"},\"标识数据\":{\"组织名称\":\"\",\"作者\":\"\",\"建筑名称\":\"\",\"组织描述\":\"\"}}",
      "originalId": "69280",
      "isParent": "1",
      "parentIds": null,
      "entityId": "1",
      "children": null
    }
  ],
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» data[object]truenonenone
»» idstringfalsenonenone
»» parentIdstringfalsenonenone
»» dataIdnullfalsenonenone
»» namestringfalsenonenone
»» typestringfalsenonenone
»» spherestringfalsenonenone
»» expandFieldstringfalsenonenone
»» originalIdstringfalsenonenone
»» isParentstringfalsenonenone
»» parentIdsnullfalsenonenone
»» entityIdstringfalsenonenone
»» childrennullfalsenonenone
» okbooleantruenonenone

GET 获取所有构件的id

GET /admin/bim/element/ids

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID

返回示例

200 Response

json
{
  "code": 0,
  "msg": null,
  "data": [
    "b7a712988424477d9758cf47c533fa5a",
    "985646a1e16f407eb731f4c8bc67f840",
    "73de70bbc70546958990cb324282be56"
  ],
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» data[string]truenonenone
» okbooleantruenonenone

Released under the MIT License.