create_line_based_element
Generate walls, beams, or pipes in Revit by specifying start and end points, thickness, height, and level details. Batch creation supported with precise parameters in millimeters.
Instructions
Create one or more line-based elements in Revit such as walls, beams, or pipes. Supports batch creation with detailed parameters including family type ID, start and end points, thickness, height, and level information. All units are in millimeters (mm).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Array of line-based elements to create |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"data": {
"description": "Array of line-based elements to create",
"items": {
"additionalProperties": false,
"properties": {
"baseLevel": {
"description": "Base level height",
"type": "number"
},
"baseOffset": {
"description": "Offset from the base level",
"type": "number"
},
"height": {
"description": "Height of the element (e.g., wall height)",
"type": "number"
},
"locationLine": {
"additionalProperties": false,
"description": "The line defining the element's location",
"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"
},
"name": {
"description": "Description of the element (e.g., wall, beam)",
"type": "string"
},
"thickness": {
"description": "Thickness/width of the element (e.g., wall thickness)",
"type": "number"
},
"typeId": {
"description": "The ID of the family type to create.",
"type": "number"
}
},
"required": [
"name",
"locationLine",
"thickness",
"height",
"baseLevel",
"baseOffset"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"data"
],
"type": "object"
}