Import Floor Plan To Coohom

With this API, you can import floor plan data to Coohom.

Request Body

NameRequiredTypeDescription
namefalsestringfloor plan name
communityNamefalsestringcommunity name
cityfalsestringcity
provincefalsestringprovince
heightfalsedoublefloor plan height in meters, default is 2.8
roomsfalselist<Room>room list
wallsfalselist<Wall>wall list
holesfalselist<Hole>doors and windows list
pillarsfalselist<Pillar>pillar list
fluesfalselist<Flue>flue list
beamsfalselist<Beam>beam list

Room

NameRequiredTypeDescription
namefalsestringroom name
roomTypeIdfalseintID of the room type in Coohom system.
enumeration.
see below
positiontruePointany point in the room (Such as the center point, should not on the wall)

Note: Rooms will be automatically constructed based on the given information of walls, pillars, doors and windows. Add room name to the room with the given room coordinates.
It is recommended to specify the room type ID, or this room will be treated as a "untitled" type in Coohom system.
Room information can be null.

enumeration for roomTypeId

roomTypeIdname
1living room
2corridor
3dining room
4bedroom
5children room
6study
7kitchen
8bathroom
9multifunctional room
10second bedroom
11guest bedroom
12elderly room
13balcony
14entrance
16entrance hall
17custom
18storage room
19walk-in closet
20outdoor
21lounge
22guest dining room
23terrace

Wall

NameRequiredTypeDescription
starttruePointstarting point of the wall
endtruePointend point of the wall
typefalsestringtype of wall centerline, default is LINE.
valid values are
LINE,
ARC,
QUADRATIC_BEZIER_CURVE
bulgefalsedoublebulge of the arc of a curved wall
controlfalsePointcontrol point for the quadratic Bezier curve of a curved wall
heightfalsedoublewall height in meters, default height: floor plan height
thicknessfalsedoublewall thickness in meters , default thickness: 0.12m

Note: It is treated as a line, if there is no type, or there is type without corresponding curve information.
All curves will be fitted as quadratic Bezier curves after import.

Hole

NameRequiredTypeDescription
starttruePointstart point
endtruePointend point
openSidefalsestringopen direction, default is LEFT.
valid values are
LEFT,
RIGHT
heighttruedoubleheight in meters
groundClearancetruedoubleheight above floor in meters
typetruestringhole type.
valid values are
DOOR,
DOUBLE_DOOR,
SLIDE_DOOR,
WINDOW,
BAY_WINDOW,
FRENCH_WINDOW
429

Note: openSide is only valid for single doors, double doors and bay windows.

Pillar

NameRequiredTypeDescription
polygontruelist<Point>outline of pillar

Note: Pillars are the same height as the floor plan.

Flue

NameRequiredTypeDescription
idfalsestringid for the flue
polygontruelist<Point>outline of flue

Beam

NameRequiredTypeDescription
starttruePointstart point
endtruePointend point
heighttruedoubleheight in meters
thicknesstruedoublethickness in meters

Point

NameRequiredTypeDescription
xtruedoubleX-axis offset in meters
ytruedoubleY-axis offset in meters

Note: The positive Y direction towards the top of the screen, and the floor plan faces north.

488

Response

If the import or update is successful, the code is 0, and the plan id is returned.
If the operation fails, an error code and error message will be returned.

Language
Credentials
Click Try It! to start a request and see the response here!