# 获取单模型楼层信息

GET https://api.bimface.com/data/v2/files/{fileId}/floors

# 参数

Authorization * Bearer {accessToken} string
*为必填项
# Path
fileId * 文件ID integer (int64)
*为必填项
# Query
includeArea 是否将楼层中的面积分区ID、名称一起返回 boolean
includeRoom 是否将楼层中的房间ID、名称一起返回 boolean

# 响应

HTTP代码 说明 类型
200 OK GeneralResponse«List«Floor»»
401 Unauthorized -
403 Forbidden -
404 Not Found -
# 200响应参数
GeneralResponse«List«Floor»»
名称 说明 类型
code 状态代码 string
data 返回数据 < Floor >array
elevation 标高 float
rooms 返回的rooms信息 < ObjectOnFloor >array
boundary 边界信息 string
maxPt 最大坐标点 Coordinate
x double
y double
z double
levelId room对应的楼层ID string
minPt 最小坐标点 Coordinate
x double
y double
z double
name 房间名称 string
id 房间ID string
boundarySegments room所附着的构件ID < string >array
miniMap 小地图路径 string
name 楼层名称 string
areas 返回的areas信息 < ObjectOnFloor >array
boundary 边界信息 string
maxPt 最大坐标点 Coordinate
x double
y double
z double
levelId area对应的楼层ID string
minPt 最小坐标点 Coordinate
x double
y double
z double
name areas名称 string
id areas的ID string
boundarySegments areas所附着的构件ID < string >array
id 楼层ID string
archElev 建筑标高 float
height 楼层标高 float
structElev 结构标高 float
message 提示消息 string

# 生成

  • */*
  • application/json

# HTTP请求示例

# 请求 path
https://api.bimface.com/data/v2/files/1938888813662976/floors
# 请求 header
"Authorization: Bearer cn-e9725999-0b36-4c0e-bdca-38ea88888888"

# HTTP响应示例

# 响应 200
{
    "code": "success",
    "message": null,
    "data": [
        {
            "archElev": 0.0,
            "areas": null,
            "elevation": 0.0,
            "height": 3500.0,
            "id": "311",
            "miniMap": "6a8ca9e2b53c2c5f017db8fe70a9777b/resource/model/maps/311.png",
            "name": "F1",
            "rooms": [
                {
                    "boundary":{"loops":[[[{"x":-2845.05,"y":5899.48,"z":0.0},{"x":-7745.05,"y":5899.48,"z":0.0}],[{"x":-7745.05,"y":5899.48,"z":0.0},{"x":-7745.05,"y":1399.48,"z":0.0}],[{"x":-7745.05,"y":1399.48,"z":0.0},{"x":-2845.05,"y":1399.48,"z":0.0}],[{"x":-2845.05,"y":1399.48,"z":0.0},{"x":-2845.05,"y":5899.48,"z":0.0}]]],"version":"2.0"} ,
                    "boundarySegments": [
                        "299019",
                        "299441",
                        "299475",
                        "301468",
                        "301578"
                    ],
                    "id": "305074",
                    "maxPt": {
                        "x": 108.78,
                        "y": 6067.71,
                        "z": 0.0
                    },
                    "minPt": {
                        "x": -5571.21,
                        "y": 1847.71,
                        "z": 0.0
                    },
                    "name": "餐厅 1"
                } 
            ],
            "structElev": 0.0
        }
    ]
}