Floorplans
The Floorplan view draws your racks to scale on a plan of the room, in 2D or 3D, optionally over an architectural drawing. It uses geometry data stored in NetBox alongside the rest of your infrastructure record. This page explains how that geometry is modeled and the two ways to set it up: visually in Visual Explorer, which we recommend, or through the NetBox REST API.
Floorplan is part of NetBox Cloud Premium. See Plans and availability.

Before you start
To create floorplans, place racks, or calibrate images, your NetBox account needs add, change, and delete permission on the objects you edit. Anyone with read access can view floorplans.
How floorplan data is modeled
Floorplan geometry lives in NetBox in three objects:
- Floorplan: the room itself. A floorplan belongs to a NetBox location, which is required because it ties the floorplan to your site hierarchy. The floorplan also defines the plan's dimensions. All floorplan measurements are in centimeters.
- Layer: holds the shapes on a floorplan, and optionally a background image such as an architectural drawing, a CAD export, or a photo. A layer with an image carries its calibration: how many pixels represent one centimeter, where the image's origin sits, and its rotation, so the drawing lines up with the placed equipment.
- Shape: a placed object. A shape ties a NetBox object (today, a rack) to a position on a floorplan: x and y coordinates, a footprint (width and depth), and an orientation in degrees. Shapes are how "rack R101 exists" becomes "rack R101 sits here, facing this way."
Because geometry is ordinary NetBox data, it is shared: place a rack once and everyone sees it.
Two practical consequences of the model:
- A site needs at least one location before it can have a floorplan. If your site has none, Visual Explorer offers to create one when you create the floorplan, so you don't need to leave the tool.
- Racks placed on a floorplan are associated with the floorplan's location, which keeps your NetBox hierarchy consistent with the picture.
Setting up visually (recommended)
Everything below happens in the Floorplan view. No API work is required.
Create a floorplan
Select a site. If the scope has no floorplan yet, Visual Explorer shows a Create Floorplan prompt on the canvas. The dialog asks for:
- a name for the floorplan,
- the location it represents: pick an existing one, or name a new location to create on the spot,
- the room's dimensions, with defaults you can adjust later.
Place racks
Switch the floorplan into edit mode. Racks that exist in NetBox for the site but haven't been positioned appear in an unplaced racks panel. Drag them onto the canvas, rotate them as needed, and click Save. Rack footprints come from your NetBox rack data, so the plan stays to scale.
Placements are written to NetBox when you click Save, so you can experiment freely first. Cancel discards them.
Add a background image
From the floorplan's layer manager, upload an architectural drawing or CAD export. PNG, JPG, and PDF are supported. Then calibrate it so the drawing matches reality:
- Scale: tell Visual Explorer how a distance on the image maps to a real distance, and it works out the pixels-per-centimeter scale.
- Position and rotation: drag and rotate the image until walls and rows line up with your placed racks. You can also crop the image to the area you need.
Calibration is saved with the layer, so you only do it once per drawing. You can toggle and reorder layers and adjust their opacity, which helps when comparing the drawing against placements.
View in 2D and 3D
The floorplan shows in 2D for planning and editing, and in 3D for a walkable picture of the room: the same data in two projections. Selecting a rack in either mode opens the details panel, from which you can jump to the rack's elevation or its NetBox page.
Setting up via the API
Floorplan geometry is exposed under the NetBox REST API at:
/api/plugins/physical-geometry/The floorplans/, layers/, and shapes/ endpoints behave like standard NetBox REST endpoints, with the same authentication, pagination, and filtering conventions.
The geometry API is under active development. The examples below reflect the current release. Expect additions, and check field details when you upgrade.
Create a floorplan
A floorplan requires a name and a location. Dimensions are in centimeters.
POST /api/plugins/physical-geometry/floorplans/
{
"name": "DC East Floor 1",
"location": 12,
"base_unit": "cm",
"width": 3000,
"depth": 2000
}Floorplan names are unique per location.
Place racks with shapes
Each placed rack is a shape that references the rack by object type and ID. Coordinates and footprint are in centimeters, and orientation is in degrees.
POST /api/plugins/physical-geometry/shapes/
{
"floorplan": 4,
"layer": 7,
"type": "rack",
"object_type": "dcim.rack",
"object_id": 118,
"x": 450,
"y": 320,
"width": 60,
"depth": 120,
"orientation": 90
}To place many racks at once, write a script that iterates your racks, computes positions from an existing source such as a spreadsheet or a DCIM export, and posts one shape per rack. Shapes belong to a layer, so create or look up a layer on the floorplan first. A layer doesn't need an image to hold shapes.
Upload and calibrate an image layer
Create a layer with an image through a multipart upload, then calibrate it:
POST /api/plugins/physical-geometry/layers/ (multipart form)
floorplan: 4
name: "Architectural drawing"
image: <file>PATCH /api/plugins/physical-geometry/layers/7/
{
"image_scale": "5.9055",
"image_scale_unit": "cm",
"image_origin_x": 120,
"image_origin_y": 80,
"image_rotation": "0.00"
}image_scale is pixels per unit (image_scale_unit is cm or in), and the origin offsets are in centimeters. In practice, calibrating visually in Visual Explorer is much faster than computing these numbers by hand. Even API-driven setups usually finish calibration in the editor.
Requirements checklist
Before a floorplan shows for a site, you need:
- Visual Explorer on a Premium plan, turned on for your organization.
- A location on the site. Visual Explorer can create one for you.
- A floorplan attached to that location, created in Visual Explorer or through the API.
- Racks in NetBox for the site, with realistic dimensions on the rack records, because footprints are drawn from them.
- Placements: racks dragged into position, or shapes created through the API.
- Optionally, a calibrated background image for the architectural context.
Troubleshooting
The "Create Floorplan" prompt won't go away. The selected scope has no floorplan yet. Create one, or check that you're scoped to the site or location you expect.
My racks are all in the unplaced panel. That's the starting state: NetBox knows the racks exist but not where they sit. Drag them into place and save.
Rack sizes look wrong on the plan. Footprints come from the width and depth on your NetBox rack records. Correct them in NetBox and reload.
The background image doesn't line up with the racks. Recalibrate the layer. Check the scale first, since a known distance on the drawing is the quickest test, then adjust the origin and rotation. If you replaced the image with an export at a different resolution, redo the scale.
Placements I made didn't persist. Placements save when you click Save in edit mode, and Cancel discards them. If a save reported success but a reload disagrees, tell NetBox Labs support.
API shape creation is rejected. Check that coordinates are non-negative integers in centimeters, that object_type is the string "dcim.rack", and that the referenced floorplan and layer IDs exist and belong together.