create_surface_based_element
Creates a floor or ceiling from a closed boundary outline in Revit. Returns the new element's ID, name, and category.
Instructions
Create a floor or ceiling from a closed boundary outline.
ALL COORDINATES ARE IN DECIMAL FEET (see create_line_based_element).
The boundary is an ordered list of at least three points that trace the outline. Do not repeat the first point at the end - the closing segment is added automatically. The outline must be planar and must not self-intersect.
Returns the new element's id, name and category.
Does NOT support openings, sloped floors, or boundaries built from arcs. Use execute_revit_code for those.
Ceiling creation requires Revit 2022 or newer.
Args: element_kind: Either "floor" or "ceiling". boundary: Ordered points, e.g. [{"x": 0, "y": 0, "z": 0}, {"x": 20, "y": 0, "z": 0}, {"x": 20, "y": 15, "z": 0}, {"x": 0, "y": 15, "z": 0}] level_name: Host level. Defaults to the lowest level. type_name: Floor/ceiling type name. Defaults to the first found. structural: Mark the floor as structural. Floors only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boundary | Yes | ||
| type_name | No | ||
| level_name | No | ||
| structural | No | ||
| element_kind | Yes |