Get IFC Inheritance Tree
ifc_get_inheritanceGet the inheritance hierarchy of an IFC4.3 entity, showing its supertype chain or subtype tree. Choose depth, direction, and output format.
Instructions
Get the inheritance hierarchy of an IFC4.3 entity.
Shows ancestor chain (supertypes up to IfcRoot) and/or descendant tree (subtypes).
Args:
name (string): IFC entity name (e.g. "IfcRoot", "IfcProduct", "IfcWall")
direction ('descendants' | 'ancestors' | 'both'): Which direction to show (default: 'both')
depth (number): Max depth for descendant tree, 1-10 (default: 3)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: Inheritance hierarchy showing ancestors and/or descendants.
Examples:
"IfcRoot" with direction="descendants" → full class hierarchy tree
"IfcWall" with direction="ancestors" → IfcWall → IfcBuiltElement → ... → IfcRoot
"IfcProduct" with direction="both" → both ancestor chain and subtype tree
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | IFC entity name (e.g. 'IfcRoot', 'IfcProduct', 'IfcWall') | |
| depth | No | Maximum depth for descendant tree (default: 3) | |
| direction | No | Direction: 'descendants' (subtypes), 'ancestors' (supertypes), or 'both' | both |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |