Skip to main content
Glama

get_ifc_properties

Extract properties of IFC entities in Blender by GlobalId or from selected objects, returning data in JSON format for analysis and integration.

Instructions

Get properties of IFC entities. Can be used to get properties of a specific entity by GlobalId, or to get properties of all currently selected objects in Blender. Args: global_id: GlobalId of a specific IFC entity (optional if selected_only is True) selected_only: If True, return properties for all selected objects instead of a specific entity Returns: A JSON-formatted string with entity information and properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
global_idNo
selected_onlyNo

Implementation Reference

  • The handler function for the MCP tool 'get_ifc_properties'. It validates input parameters, establishes a connection to the Blender addon via socket, sends the 'get_ifc_properties' command with parameters, and returns the JSON-formatted result or error.
    def get_ifc_properties(global_id: str | None = None, selected_only: bool = False) -> str: """ Get properties of IFC entities. Can be used to get properties of a specific entity by GlobalId, or to get properties of all currently selected objects in Blender. Args: global_id: GlobalId of a specific IFC entity (optional if selected_only is True) selected_only: If True, return properties for all selected objects instead of a specific entity Returns: A JSON-formatted string with entity information and properties """ try: blender = get_blender_connection() # Validate parameters if not global_id and not selected_only: return json.dumps({"error": "Either global_id or selected_only must be specified"}, indent=2) result = blender.send_command("get_ifc_properties", { "global_id": global_id, "selected_only": selected_only }) # Return the formatted JSON of the results return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting IFC properties: {str(e)}") return f"Error getting IFC properties: {str(e)}"

Latest Blog Posts

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/JotaDeRodriguez/Bonsai_mcp'

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