create_surface_based_element
Generate surface-based elements in Revit, such as floors, ceilings, or roofs, using batch creation with precise parameters like family type ID, boundary lines, thickness, and level offsets in millimeters.
Instructions
Create one or more surface-based elements in Revit such as floors, ceilings, or roofs. Supports batch creation with detailed parameters including family type ID, boundary lines, thickness, and level information. All units are in millimeters (mm).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Array of surface-based elements to create |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"data": {
"description": "Array of surface-based elements to create",
"items": {
"additionalProperties": false,
"properties": {
"baseLevel": {
"description": "Base level height",
"type": "number"
},
"baseOffset": {
"description": "Offset from the base level",
"type": "number"
},
"boundary": {
"additionalProperties": false,
"description": "Boundary definition with outer loop",
"properties": {
"outerLoop": {
"description": "Array of line segments defining the boundary",
"items": {
"additionalProperties": false,
"properties": {
"p0": {
"additionalProperties": false,
"properties": {
"x": {
"description": "X coordinate of start point",
"type": "number"
},
"y": {
"description": "Y coordinate of start point",
"type": "number"
},
"z": {
"description": "Z coordinate of start point",
"type": "number"
}
},
"required": [
"x",
"y",
"z"
],
"type": "object"
},
"p1": {
"additionalProperties": false,
"properties": {
"x": {
"description": "X coordinate of end point",
"type": "number"
},
"y": {
"description": "Y coordinate of end point",
"type": "number"
},
"z": {
"description": "Z coordinate of end point",
"type": "number"
}
},
"required": [
"x",
"y",
"z"
],
"type": "object"
}
},
"required": [
"p0",
"p1"
],
"type": "object"
},
"minItems": 3,
"type": "array"
}
},
"required": [
"outerLoop"
],
"type": "object"
},
"name": {
"description": "Description of the element (e.g., floor, ceiling)",
"type": "string"
},
"thickness": {
"description": "Thickness of the element",
"type": "number"
},
"typeId": {
"description": "The ID of the family type to create.",
"type": "number"
}
},
"required": [
"name",
"boundary",
"thickness",
"baseLevel",
"baseOffset"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"data"
],
"type": "object"
}