查询构件树
已测完
POST
/zt/api/v1/data/component/tree
请求参数
Body 参数application/json
list
array [object {2}]
必需
documentId
string
模型id
documentVersion
string
模型版本
示例
{
"list": [
{
"documentId": "7a135f583cce473aaa7e1f77e9538142",
"documentVersion": 1
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/zt/api/v1/data/component/tree' \
--header 'Content-Type: application/json' \
--data-raw '{
"list": [
{
"documentId": "7a135f583cce473aaa7e1f77e9538142",
"documentVersion": 1
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
0 代表成功
msg
string
提示信息
data
array [object {3}]
必需
documentId
string
模型id
documentVersion
integer
模型版本
componentList
array [object {11}]
构件集合
示例
{
"data": [
{
"documentId": "7a135f583cce473aaa7e1f77e9538142",
"documentVersion": 1,
"componentList": [
{
"id": "654b28c2d67d573641834e05",
"guid": "9a73f4102f2c446a965dc7eb154df37b",
"name": "IfcBuildingElementProxy",
"children": [
{
"guid": "3VrvAcLs9E1gILoLdfFHPf",
"name": "1300-1950x1550"
}
],
"isVirtual": true,
"ifcBuildingId": "2XsMpSybHC0eB9X5j21M37",
"documentId": "7a135f583cce473aaa7e1f77e9538142",
"documentVersion": 1,
"projectId": "92f3c72f42c246d68809dca58819aa5f",
"createTime": 1699424450521,
"updateTime": 1699424450521
}
]
}
],
"code": 0,
"msg": "成功"
}
修改于 2024-03-15 11:22:42