Skip to main content
Glama

Revit MCP

by revit-mcp

create_line_based_element

Generate line-based elements like walls, beams, or pipes in Revit with precise parameters for family type, start/end points, thickness, height, and level. Supports batch creation 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

NameRequiredDescriptionDefault
dataYesArray 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/revit-mcp/revit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server