get_ifc_total_structure
Retrieve complete IFC building model structure including spatial hierarchy and all physical elements like walls, doors, windows, columns, and beams to analyze building organization and components.
Instructions
Get the complete IFC structure including spatial hierarchy and all building elements.
This function extends the basic spatial structure to include building elements like walls,
doors, windows, columns, beams, etc. that are contained within each spatial element.
It provides a comprehensive view of how the building is organized both spatially and
in terms of its physical components.
Returns:
A JSON-formatted string representing the complete hierarchical structure of the IFC model
including spatial elements and their contained building elements, plus summary statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools.py:379-402 (handler)MCP tool handler implementation for 'get_ifc_total_structure'. Connects to Blender via get_blender_connection(), sends the 'get_ifc_total_structure' command, formats the result as JSON, and handles errors.@mcp.tool() def get_ifc_total_structure() -> str: """ Get the complete IFC structure including spatial hierarchy and all building elements. This function extends the basic spatial structure to include building elements like walls, doors, windows, columns, beams, etc. that are contained within each spatial element. It provides a comprehensive view of how the building is organized both spatially and in terms of its physical components. Returns: A JSON-formatted string representing the complete hierarchical structure of the IFC model including spatial elements and their contained building elements, plus summary statistics """ try: blender = get_blender_connection() result = blender.send_command("get_ifc_total_structure") # Return the formatted JSON of the results return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting IFC total structure: {str(e)}") return f"Error getting IFC total structure: {str(e)}"