# 获取单模型中相连通的所有构件

POST https://api.bimface.com/data/v1/pipe/files/{file-id}/element-ids 

# 说明

获取单模型中,和指定构件相连通的构件ID(返回的构件列表不包含传入的elementId),支持指定构件所属的系统类型,并可基于属性查询其中符合条件的构件ID,支持基于DSL进行组合查询,具体可参考文档 (opens new window)

# 参数

Authorization * Bearer {accessToken} string
*为必填项
# Path
file-id * 文件Id string
*为必填项
# Body
elementId * 构件Id string
relationType 系统类型,默认值为NETWORK(即管系),枚举值有BRAN、PIPE、NETWORK string
query 属性筛选条件,查询DSL string
*为必填项

# 响应

HTTP代码 说明 类型
200 OK GeneralResponseV1«EssentialPipingElementResponseBean»
401 Unauthorized -
403 Forbidden -
404 Not Found -
# 200响应参数
GeneralResponseV1«EssentialPipingElementResponseBean»
名称 说明 类型
code 状态代码 string
data 返回数据 < string >array
message 提示信息 string

# 生成

  • */*
  • application/json

# HTTP请求示例

# 请求 path
https://api.bimface.com/data/v1/pipe/files/10000000006016/element-ids
# 请求 header
"Authorization: Bearer cn-e9725999-0b36-4c0e-bdca-38ea88888888"
# 请求 body
{
    "elementId": "Cylinder-!3d16387!2f2975",
    "relationType": "BRAN",
    "query": {
        "match": {
            "TYPE": "FLAN"
        }
    }
}

# HTTP响应示例

# 响应 200
{
    "code": "bimfaceservice-0000",
    "message": null,
    "data":[
        "Cylinder-!3d16387!2f4563",
        "!2fS-020-7412!2f1",
        "Cylinder-!2fS-020-7159!2f1",
        "Cylinder-!3d16387!2f5340",
        "Cylinder-!2f022-4062-LBW-10H1A!2fB1",
        "!2fS-020-7257!2f10",
        "!3d24579!2f1919",
        "Cylinder-!2f022-3711-LBW-10H1A!2fB2",
        "Cylinder-!3d16387!2f4477",
        "Cylinder-!2fS-020-7285!2f2",
        "!3d16387!2f4463",
        "!3d16387!2f4508",
        "!3d16387!2f2995",
        "!3d16387!2f4486"
    ]
}