1. 获取模型变更概要
查询模型对比结果概要。
请求方式:GET
请求地址:/api/{databaseKey}/compares?compareKey={compareKey}
1.1. 请求参数
Headers:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
Authorization | string | c4570cb9ca324bc8ba7dd9d1967710ea | 是 | 操作的通关令牌 |
PathParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
databaseKey | string | test | 是 | 数据库key,必传 |
SearchParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
compareKey | string | NULL | 是 | 模型对比key |
Body
application/json:
NULL
1.2. 参数说明
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
NULL | NULL | NULL | NULL | NULL |
1.3. 正确返回
{
"message": "请求处理成功",
"code": "SUCCESS",
"data": {
"added": {
"componentCount": 0,
"categories": []
},
"deleted": {
"componentCount": 1,
"categories": [
{
"componentCount": 1,
"elements": [
{
"name": "冷弯空心型钢方管",
"componentKey": "M1578910068590_2Tbx"
}
],
"categoryName": "IfcBeam"
}
]
},
"changed": {
"componentCount": 1,
"categories": [
{
"componentCount": 1,
"elements": [
{
"newName": "冷弯空心型钢",
"oldComponentKey": "M1578910068590_2",
"oldName": "冷弯空心型钢",
"newComponentKey": "M1578968731564_2",
"type":"attribute"
}
],
"categoryName": "IfcBeam"
}
]
}
}
}
1.4. 状态码
状态码 | code | message | data | 原因 |
---|---|---|---|---|
400 | COMPARE_FAILED | 模型对比(xxxx)失败 | NULL | 当模型对比已经失败时 |
400 | COMPARE_NOT_FINISHED | 模型对比(xxxx)正在进行 | NULL | 当模型对比尚未完成时 |
1.5. 备注
暂无备注
1.6. 注意事项
修改构件分为三类(返回结果中用type属性标识):
geometry:几何变更(包括矩阵、顶点)。
attribute:属性变更(包括name、guid、type、attribute)。
both:几何和属性均有变更。