# 获取多个构件的共同属性

POST https://api.bimface.com/data/v2/integrations/{integrateId}/commonElementProperties

# 说明

传入多个elementId,返回这些构件共同的属性。共同属性的定义为:属性key与value均相同。若需根据修改后的属性值查询,需要设置请求参数includeOverrides的值为true。

# 参数

Authorization * Bearer {accessToken} string
*为必填项
# Path
integrateId * 集成模型ID integer (int64)
*为必填项
# Query
includeOverrides 是否查询修改的属性 boolean
# Body
* 由文件ID及构件ID构成对象组成的列表 < FileIdHashWithElementIds >array
fileIdHash 构件所属的模型ID string
elementIds 构件ID列表 < string >array
*为必填项

# 响应

HTTP代码 说明 类型
200 OK GeneralResponse«Property»
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
# 200响应参数
GeneralResponse«Property»
名称 说明 类型
code 状态代码 string
data 返回数据 Property
elementId 构件ID string
boundingBox 包围盒信息 BoundingBox
min 最小坐标点 Coordinate
x double
y double
z double
max 最大坐标点 Coordinate
x double
y double
z double
name 构件族名称 string
guid 全局唯一标识符 string
familyGuid 族标识符 string
properties 构件属性 < PropertyGroup >array
items 属性数据 < PropertyItem >array
extension 拓展属性 object
unit 单位 string
code 属性码 string
orderNumber int32
valueType 参数值类型 int32
value 参数值 object
key 特性 string
group 属性分组类型 string
message 提示消息 string

# 消耗

  • application/json

# 生成

  • */*
  • application/json

# HTTP请求示例

# 请求 path
https://api.bimface.com/data/v2/integrations/1738888866720224/commonElementProperties
# 请求 header
"Authorization: Bearer cn-e9725999-0b36-4c0e-bdca-38ea88888888"
# 请求 body
[ {
  "fileIdHash" : "1938263713662976",
  "elementIds" : [ "281218", "110930" ]
} ]

# HTTP响应示例

# 响应 200
{
  "code" : "success",
  "data" : {
    "boundingBox" :null,
    "elementId" : null,
    "familyGuid" : "-1",
    "guid" : null,
    "name" : "norm - 150mm",
    "properties" : [ {
      "group" : "dimension",
      "items" : [ {
        "code" : "perimeter",
        "extension" : "object",
        "key" : "perimeter",
        "orderNumber" : 0,
        "unit" : "mm",
        "value" : 17200,
        "valueType" : 2
      } ]
    } ]
  },
  "message" : null
}