[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAF3JN4WC3EJQH5JB11R4R":3,"skill-same:01M7FAF3JN4WC3EJQH5JB11R4R":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7FAF3JN4WC3EJQH5JB11R4R","ifcos-syntax-elements",null,"Use when querying, traversing, or extracting data from IFC elements -- by_type, by_id, by_guid, inverse references, or property extraction. Prevents the common mistake of manually traversing relationships instead of using the universal property extraction pattern (IsDefinedBy -> HasProperties). Covers get_info(), is_a(), GUID utilities, and attribute access patterns. Keywords: by_type, by_id, by_guid, get_info, is_a, inverse, IsDefinedBy, HasProperties, IFC query, element traversal, property extraction, find all walls, get element by GlobalId, list elements.","lagzgabrielmuller-dot\u002Fkit-ingenieria-3d","lagzgabrielmuller-dot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333339260?v=4","01M7F985KYC0XB2XZ97B5YWH4C","01M7F985MHK8N2NVE4VAR5WBWS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: ifcos-syntax-elements\ndescription: >\n  Use when querying, traversing, or extracting data from IFC elements -- by_type, by_id,\n  by_guid, inverse references, or property extraction. Prevents the common mistake of\n  manually traversing relationships instead of using the universal property extraction\n  pattern (IsDefinedBy -> HasProperties). Covers get_info(), is_a(), GUID utilities,\n  and attribute access patterns.\n  Keywords: by_type, by_id, by_guid, get_info, is_a, inverse, IsDefinedBy, HasProperties, IFC query, element traversal, property extraction, find all walls, get element by GlobalId, list elements.\nlicense: MIT\ncompatibility: \"Designed for Claude Code. Requires IfcOpenShell Python library.\"\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# IfcOpenShell Element Traversal and Querying\n\n## Quick Reference\n\n### Decision Tree: Finding Elements\n\n```\nNeed to find IFC elements?\n├── Know the IFC class? (IfcWall, IfcDoor, etc.)\n│   └── model.by_type(\"IfcWall\")\n│       ├── Need subtypes included? → include_subtypes=True (DEFAULT)\n│       └── Need exact type only? → include_subtypes=False\n│\n├── Know the STEP ID? (#123 in .ifc file)\n│   └── model.by_id(123)\n│       └── WARNING: STEP IDs are NOT persistent across re-exports\n│\n├── Know the GlobalId? (22-char IFC GUID)\n│   └── model.by_guid(\"2O2Fr$t4X7Zf8NOew3FLOH\")\n│       └── GlobalId is ONLY on IfcRoot-derived entities\n│\n├── Need complex filtering? (by property, container, material)\n│   └── ifcopenshell.util.selector.filter_elements(model, query)\n│\n└── Need ALL entities in the file?\n    └── for entity in model: ...\n```\n\n### Decision Tree: Reading Element Data\n\n```\nNeed data from an element?\n├── Single attribute? → element.Name, element.GlobalId, etc.\n│\n├── All attributes as dict? → element.get_info()\n│   ├── Need referenced entities expanded? → get_info(recursive=True)\n│   │   └── WARNING: EXPENSIVE on large models — avoid in loops\n│   └── Need only primitive values? → get_info(scalar_only=True)\n│\n├── Type checking?\n│   ├── Get type name → element.is_a()  # returns \"IfcWall\"\n│   └── Check inheritance → element.is_a(\"IfcElement\")  # returns True\u002FFalse\n│\n├── Property sets?\n│   ├── RECOMMENDED → ifcopenshell.util.element.get_psets(element)\n│   └── Manual pattern → element.IsDefinedBy traversal (see below)\n│\n├── Spatial container? → ifcopenshell.util.element.get_container(element)\n├── Element type? → ifcopenshell.util.element.get_type(element)\n├── Material? → ifcopenshell.util.element.get_material(element)\n└── STEP ID? → element.id()\n```\n\n### Critical Warnings\n\n- **ALWAYS** use `model.by_type()` for type-based queries — it is internally cached after the first call per type.\n- **ALWAYS** use `ifcopenshell.guid.new()` to generate GlobalIds. NEVER construct GUID strings manually.\n- **ALWAYS** use `ifcopenshell.util.element.get_psets()` for property extraction in production code. Use the manual `IsDefinedBy` traversal only when you need fine-grained control.\n- **NEVER** use STEP IDs (`entity.id()`) as persistent identifiers. They change when files are re-exported. Use `GlobalId` for cross-session identification.\n- **NEVER** call `get_info(recursive=True)` in a loop over many elements — it recursively expands all references and is extremely expensive.\n- **NEVER** assume an entity has a `GlobalId`. Only `IfcRoot`-derived entities (IfcWall, IfcProject, etc.) have GlobalIds. Low-level entities (IfcCartesianPoint, IfcDirection) do NOT.\n- **ALWAYS** handle `None` values when accessing optional attributes. Many IFC attributes are optional and return `None`.\n- **ALWAYS** check `prop.NominalValue` is not `None` before accessing `.wrappedValue` in the property extraction pattern.\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Query Elements by IFC Class\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell\n\nmodel = ifcopenshell.open(\"model.ifc\")\n\n# Get all walls (includes subtypes like IfcWallStandardCase in IFC2X3)\nwalls = model.by_type(\"IfcWall\")\n\n# Get ONLY exact IfcWall, NOT subtypes\nwalls_exact = model.by_type(\"IfcWall\", include_subtypes=False)\n\n# Common element queries\nstoreys = model.by_type(\"IfcBuildingStorey\")\nspaces = model.by_type(\"IfcSpace\")\ndoors = model.by_type(\"IfcDoor\")\nwindows = model.by_type(\"IfcWindow\")\nslabs = model.by_type(\"IfcSlab\")\ncolumns = model.by_type(\"IfcColumn\")\nbeams = model.by_type(\"IfcBeam\")\n```\n\n### Pattern 2: Query by ID and GUID\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell\nimport ifcopenshell.guid\n\nmodel = ifcopenshell.open(\"model.ifc\")\n\n# By STEP ID (the #123 number in .ifc files)\nentity = model.by_id(123)\n\n# By GlobalId (22-character IFC GUID)\nentity = model.by_guid(\"2O2Fr$t4X7Zf8NOew3FLOH\")\n\n# Generate a new GlobalId\nnew_guid = ifcopenshell.guid.new()\n\n# Convert between IFC GUID and standard UUID\nstandard_uuid = ifcopenshell.guid.expand(new_guid)   # → UUID string\nifc_guid = ifcopenshell.guid.compress(standard_uuid)  # → 22-char GUID\n```\n\n### Pattern 3: Entity Attribute Access and Type Checking\n\n```python\n# IfcOpenShell: all schema versions\nwall = model.by_type(\"IfcWall\")[0]\n\n# Direct attribute access\nprint(wall.Name)           # \"Wall 001\" or None\nprint(wall.GlobalId)       # \"2O2Fr$t4X7Zf8NOew3FLOH\"\nprint(wall.Description)    # Optional, may be None\n\n# Type checking\nwall.is_a()                # \"IfcWall\" (returns type name)\nwall.is_a(\"IfcWall\")       # True (exact match)\nwall.is_a(\"IfcElement\")    # True (parent class)\nwall.is_a(\"IfcRoot\")       # True (ancestor)\nwall.is_a(\"IfcSlab\")       # False\n\n# STEP ID\nwall.id()                  # 123 (integer)\n\n# All attributes as dict\ninfo = wall.get_info()\n# {\"id\": 123, \"type\": \"IfcWall\", \"GlobalId\": \"...\", \"Name\": \"...\", ...}\n```\n\n### Pattern 4: Inverse References\n\n```python\n# IfcOpenShell: all schema versions\nwall = model.by_type(\"IfcWall\")[0]\n\n# Get ALL entities that REFERENCE this wall\ninverse = model.get_inverse(wall)  # returns set\n\n# Find which storey contains this wall\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelContainedInSpatialStructure\"):\n        print(f\"Wall is in: {rel.RelatingStructure.Name}\")\n\n# Find property sets attached to an element\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelDefinesByProperties\"):\n        pset = rel.RelatingPropertyDefinition\n        if pset.is_a(\"IfcPropertySet\"):\n            print(f\"PSet: {pset.Name}\")\n\n# Find the type object of an element\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelDefinesByType\"):\n        print(f\"Type: {rel.RelatingType.Name}\")\n```\n\n### Pattern 5: Universal IFC Property Extraction\n\nThis is the fundamental pattern for extracting properties from ANY IFC element. It traverses: `IsDefinedBy` → `IfcRelDefinesByProperties` → `IfcPropertySet` → `HasProperties` → `wrappedValue`.\n\n```python\n# IfcOpenShell: all schema versions\n# UNIVERSAL PATTERN: Works with IfcOpenShell, Bonsai, web-ifc\ndef extract_properties(element):\n    \"\"\"Extract all property sets and their values from an IFC element.\"\"\"\n    result = {}\n    for rel in element.IsDefinedBy:\n        if rel.is_a(\"IfcRelDefinesByProperties\"):\n            pset = rel.RelatingPropertyDefinition\n            if pset.is_a(\"IfcPropertySet\"):\n                props = {}\n                for prop in pset.HasProperties:\n                    if prop.is_a(\"IfcPropertySingleValue\") and prop.NominalValue:\n                        props[prop.Name] = prop.NominalValue.wrappedValue\n                result[pset.Name] = props\n    return result\n\nwall = model.by_type(\"IfcWall\")[0]\nall_props = extract_properties(wall)\nfor pset_name, props in all_props.items():\n    print(f\"\\n{pset_name}:\")\n    for name, value in props.items():\n        print(f\"  {name}: {value}\")\n```\n\n### Pattern 6: Recommended: Use util.element Helpers\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell.util.element\n\nwall = model.by_type(\"IfcWall\")[0]\n\n# Get ALL property sets as {pset_name: {prop_name: value}}\npsets = ifcopenshell.util.element.get_psets(wall)\n\n# Include quantity sets (IfcElementQuantity)\npsets_and_qsets = ifcopenshell.util.element.get_psets(wall, psets_only=False)\n\n# Get only quantity sets\nqsets = ifcopenshell.util.element.get_psets(wall, qtos_only=True)\n\n# Get element type\nwall_type = ifcopenshell.util.element.get_type(wall)\n\n# Get spatial container (typically IfcBuildingStorey)\ncontainer = ifcopenshell.util.element.get_container(wall)\n\n# Get material\nmaterial = ifcopenshell.util.element.get_material(wall)\n\n# Get all materials as list\nmaterials = ifcopenshell.util.element.get_materials(wall)\n\n# Get parent aggregate\nparent = ifcopenshell.util.element.get_aggregate(wall)\n\n# Get decomposition (children)\nbuilding = model.by_type(\"IfcBuilding\")[0]\nchildren = ifcopenshell.util.element.get_decomposition(building)\n```\n\n---\n\n## Common Operations\n\n### Iterating Over All Entities\n\n```python\n# IfcOpenShell: all schema versions\n# Iterate over ALL entities\nfor entity in model:\n    pass\n\n# Total entity count\ntotal = len(model)\n\n# Count entities by type\nfrom collections import Counter\ntype_counts = Counter(entity.is_a() for entity in model)\nfor ifc_type, count in type_counts.most_common(20):\n    print(f\"  {ifc_type}: {count}\")\n```\n\n### Finding Openings in a Wall\n\n```python\n# IfcOpenShell: all schema versions\ndef get_openings(model, wall):\n    \"\"\"Get opening elements that void a wall.\"\"\"\n    openings = []\n    for rel in model.get_inverse(wall):\n        if rel.is_a(\"IfcRelVoidsElement\"):\n            openings.append(rel.RelatedOpeningElement)\n    return openings\n```\n\n### CSS-like Element Selection\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell.util.selector\n\n# Select walls by class\nwalls = ifcopenshell.util.selector.filter_elements(model, \"IfcWall\")\n\n# Select by property value\next_walls = ifcopenshell.util.selector.filter_elements(\n    model, 'IfcWall, \u002FPset_WallCommon\u002F.IsExternal = True')\n\n# Select by container\nground_elements = ifcopenshell.util.selector.filter_elements(\n    model, 'IfcBuildingElement, container=\"Ground Floor\"')\n```\n\n### Error Handling for Lookups\n\n```python\n# IfcOpenShell: all schema versions\n# by_id and by_guid raise RuntimeError if not found\ntry:\n    entity = model.by_id(999999)\nexcept RuntimeError:\n    print(\"Entity not found\")\n\ntry:\n    entity = model.by_guid(\"nonexistent_guid_12345\")\nexcept RuntimeError:\n    print(\"Entity not found\")\n\n# by_type returns empty tuple if no matches\nwalls = model.by_type(\"IfcWall\")  # () if none exist\n```\n\n---\n\n## Version Notes\n\n### Schema-Specific Entity Names\n\n| Concept | IFC2X3 | IFC4 | IFC4X3 |\n|---------|--------|------|--------|\n| Building elements parent | `IfcBuildingElement` | `IfcBuildingElement` | `IfcBuiltElement` |\n| Spatial elements parent | `IfcSpatialStructureElement` | `IfcSpatialElement` | `IfcSpatialElement` |\n| Wall subtype | `IfcWallStandardCase` | `IfcWall` (subtype removed) | `IfcWall` |\n| Facility types | N\u002FA | N\u002FA | `IfcBridge`, `IfcRoad`, `IfcRailway`, `IfcMarineFacility` |\n\n### Query API Compatibility\n\nThe query methods (`by_type`, `by_id`, `by_guid`, `get_inverse`, `get_info`, `is_a`) are **schema-agnostic** — they work identically across IFC2X3, IFC4, and IFC4X3. Only the entity class names passed to these methods differ per schema.\n\n### GUID Module\n\n`ifcopenshell.guid` is schema-independent. The same GUID format (22-character base64) is used across all IFC versions.\n\n| Function | Purpose |\n|----------|---------|\n| `ifcopenshell.guid.new()` | Generate a new IFC GlobalId |\n| `ifcopenshell.guid.expand(ifc_guid)` | Convert IFC GUID → standard UUID string |\n| `ifcopenshell.guid.compress(uuid_str)` | Convert UUID string → 22-char IFC GUID |\n\n---\n\n## Reference Links\n\n- [API Method Signatures](references\u002Fmethods.md) — Complete signatures for all element traversal methods\n- [Working Code Examples](references\u002Fexamples.md) — End-to-end examples for element queries and property extraction\n- [Anti-Patterns](references\u002Fanti-patterns.md) — Common element traversal mistakes and how to avoid them\n","# IfcOpenShell Element Traversal and Querying\n\n## Quick Reference\n\n### Decision Tree: Finding Elements\n\n```\nNeed to find IFC elements?\n├── Know the IFC class? (IfcWall, IfcDoor, etc.)\n│   └── model.by_type(\"IfcWall\")\n│       ├── Need subtypes included? → include_subtypes=True (DEFAULT)\n│       └── Need exact type only? → include_subtypes=False\n│\n├── Know the STEP ID? (#123 in .ifc file)\n│   └── model.by_id(123)\n│       └── WARNING: STEP IDs are NOT persistent across re-exports\n│\n├── Know the GlobalId? (22-char IFC GUID)\n│   └── model.by_guid(\"2O2Fr$t4X7Zf8NOew3FLOH\")\n│       └── GlobalId is ONLY on IfcRoot-derived entities\n│\n├── Need complex filtering? (by property, container, material)\n│   └── ifcopenshell.util.selector.filter_elements(model, query)\n│\n└── Need ALL entities in the file?\n    └── for entity in model: ...\n```\n\n### Decision Tree: Reading Element Data\n\n```\nNeed data from an element?\n├── Single attribute? → element.Name, element.GlobalId, etc.\n│\n├── All attributes as dict? → element.get_info()\n│   ├── Need referenced entities expanded? → get_info(recursive=True)\n│   │   └── WARNING: EXPENSIVE on large models — avoid in loops\n│   └── Need only primitive values? → get_info(scalar_only=True)\n│\n├── Type checking?\n│   ├── Get type name → element.is_a()  # returns \"IfcWall\"\n│   └── Check inheritance → element.is_a(\"IfcElement\")  # returns True\u002FFalse\n│\n├── Property sets?\n│   ├── RECOMMENDED → ifcopenshell.util.element.get_psets(element)\n│   └── Manual pattern → element.IsDefinedBy traversal (see below)\n│\n├── Spatial container? → ifcopenshell.util.element.get_container(element)\n├── Element type? → ifcopenshell.util.element.get_type(element)\n├── Material? → ifcopenshell.util.element.get_material(element)\n└── STEP ID? → element.id()\n```\n\n### Critical Warnings\n\n- **ALWAYS** use `model.by_type()` for type-based queries — it is internally cached after the first call per type.\n- **ALWAYS** use `ifcopenshell.guid.new()` to generate GlobalIds. NEVER construct GUID strings manually.\n- **ALWAYS** use `ifcopenshell.util.element.get_psets()` for property extraction in production code. Use the manual `IsDefinedBy` traversal only when you need fine-grained control.\n- **NEVER** use STEP IDs (`entity.id()`) as persistent identifiers. They change when files are re-exported. Use `GlobalId` for cross-session identification.\n- **NEVER** call `get_info(recursive=True)` in a loop over many elements — it recursively expands all references and is extremely expensive.\n- **NEVER** assume an entity has a `GlobalId`. Only `IfcRoot`-derived entities (IfcWall, IfcProject, etc.) have GlobalIds. Low-level entities (IfcCartesianPoint, IfcDirection) do NOT.\n- **ALWAYS** handle `None` values when accessing optional attributes. Many IFC attributes are optional and return `None`.\n- **ALWAYS** check `prop.NominalValue` is not `None` before accessing `.wrappedValue` in the property extraction pattern.\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Query Elements by IFC Class\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell\n\nmodel = ifcopenshell.open(\"model.ifc\")\n\n# Get all walls (includes subtypes like IfcWallStandardCase in IFC2X3)\nwalls = model.by_type(\"IfcWall\")\n\n# Get ONLY exact IfcWall, NOT subtypes\nwalls_exact = model.by_type(\"IfcWall\", include_subtypes=False)\n\n# Common element queries\nstoreys = model.by_type(\"IfcBuildingStorey\")\nspaces = model.by_type(\"IfcSpace\")\ndoors = model.by_type(\"IfcDoor\")\nwindows = model.by_type(\"IfcWindow\")\nslabs = model.by_type(\"IfcSlab\")\ncolumns = model.by_type(\"IfcColumn\")\nbeams = model.by_type(\"IfcBeam\")\n```\n\n### Pattern 2: Query by ID and GUID\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell\nimport ifcopenshell.guid\n\nmodel = ifcopenshell.open(\"model.ifc\")\n\n# By STEP ID (the #123 number in .ifc files)\nentity = model.by_id(123)\n\n# By GlobalId (22-character IFC GUID)\nentity = model.by_guid(\"2O2Fr$t4X7Zf8NOew3FLOH\")\n\n# Generate a new GlobalId\nnew_guid = ifcopenshell.guid.new()\n\n# Convert between IFC GUID and standard UUID\nstandard_uuid = ifcopenshell.guid.expand(new_guid)   # → UUID string\nifc_guid = ifcopenshell.guid.compress(standard_uuid)  # → 22-char GUID\n```\n\n### Pattern 3: Entity Attribute Access and Type Checking\n\n```python\n# IfcOpenShell: all schema versions\nwall = model.by_type(\"IfcWall\")[0]\n\n# Direct attribute access\nprint(wall.Name)           # \"Wall 001\" or None\nprint(wall.GlobalId)       # \"2O2Fr$t4X7Zf8NOew3FLOH\"\nprint(wall.Description)    # Optional, may be None\n\n# Type checking\nwall.is_a()                # \"IfcWall\" (returns type name)\nwall.is_a(\"IfcWall\")       # True (exact match)\nwall.is_a(\"IfcElement\")    # True (parent class)\nwall.is_a(\"IfcRoot\")       # True (ancestor)\nwall.is_a(\"IfcSlab\")       # False\n\n# STEP ID\nwall.id()                  # 123 (integer)\n\n# All attributes as dict\ninfo = wall.get_info()\n# {\"id\": 123, \"type\": \"IfcWall\", \"GlobalId\": \"...\", \"Name\": \"...\", ...}\n```\n\n### Pattern 4: Inverse References\n\n```python\n# IfcOpenShell: all schema versions\nwall = model.by_type(\"IfcWall\")[0]\n\n# Get ALL entities that REFERENCE this wall\ninverse = model.get_inverse(wall)  # returns set\n\n# Find which storey contains this wall\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelContainedInSpatialStructure\"):\n        print(f\"Wall is in: {rel.RelatingStructure.Name}\")\n\n# Find property sets attached to an element\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelDefinesByProperties\"):\n        pset = rel.RelatingPropertyDefinition\n        if pset.is_a(\"IfcPropertySet\"):\n            print(f\"PSet: {pset.Name}\")\n\n# Find the type object of an element\nfor rel in model.get_inverse(wall):\n    if rel.is_a(\"IfcRelDefinesByType\"):\n        print(f\"Type: {rel.RelatingType.Name}\")\n```\n\n### Pattern 5: Universal IFC Property Extraction\n\nThis is the fundamental pattern for extracting properties from ANY IFC element. It traverses: `IsDefinedBy` → `IfcRelDefinesByProperties` → `IfcPropertySet` → `HasProperties` → `wrappedValue`.\n\n```python\n# IfcOpenShell: all schema versions\n# UNIVERSAL PATTERN: Works with IfcOpenShell, Bonsai, web-ifc\ndef extract_properties(element):\n    \"\"\"Extract all property sets and their values from an IFC element.\"\"\"\n    result = {}\n    for rel in element.IsDefinedBy:\n        if rel.is_a(\"IfcRelDefinesByProperties\"):\n            pset = rel.RelatingPropertyDefinition\n            if pset.is_a(\"IfcPropertySet\"):\n                props = {}\n                for prop in pset.HasProperties:\n                    if prop.is_a(\"IfcPropertySingleValue\") and prop.NominalValue:\n                        props[prop.Name] = prop.NominalValue.wrappedValue\n                result[pset.Name] = props\n    return result\n\nwall = model.by_type(\"IfcWall\")[0]\nall_props = extract_properties(wall)\nfor pset_name, props in all_props.items():\n    print(f\"\\n{pset_name}:\")\n    for name, value in props.items():\n        print(f\"  {name}: {value}\")\n```\n\n### Pattern 6: Recommended: Use util.element Helpers\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell.util.element\n\nwall = model.by_type(\"IfcWall\")[0]\n\n# Get ALL property sets as {pset_name: {prop_name: value}}\npsets = ifcopenshell.util.element.get_psets(wall)\n\n# Include quantity sets (IfcElementQuantity)\npsets_and_qsets = ifcopenshell.util.element.get_psets(wall, psets_only=False)\n\n# Get only quantity sets\nqsets = ifcopenshell.util.element.get_psets(wall, qtos_only=True)\n\n# Get element type\nwall_type = ifcopenshell.util.element.get_type(wall)\n\n# Get spatial container (typically IfcBuildingStorey)\ncontainer = ifcopenshell.util.element.get_container(wall)\n\n# Get material\nmaterial = ifcopenshell.util.element.get_material(wall)\n\n# Get all materials as list\nmaterials = ifcopenshell.util.element.get_materials(wall)\n\n# Get parent aggregate\nparent = ifcopenshell.util.element.get_aggregate(wall)\n\n# Get decomposition (children)\nbuilding = model.by_type(\"IfcBuilding\")[0]\nchildren = ifcopenshell.util.element.get_decomposition(building)\n```\n\n---\n\n## Common Operations\n\n### Iterating Over All Entities\n\n```python\n# IfcOpenShell: all schema versions\n# Iterate over ALL entities\nfor entity in model:\n    pass\n\n# Total entity count\ntotal = len(model)\n\n# Count entities by type\nfrom collections import Counter\ntype_counts = Counter(entity.is_a() for entity in model)\nfor ifc_type, count in type_counts.most_common(20):\n    print(f\"  {ifc_type}: {count}\")\n```\n\n### Finding Openings in a Wall\n\n```python\n# IfcOpenShell: all schema versions\ndef get_openings(model, wall):\n    \"\"\"Get opening elements that void a wall.\"\"\"\n    openings = []\n    for rel in model.get_inverse(wall):\n        if rel.is_a(\"IfcRelVoidsElement\"):\n            openings.append(rel.RelatedOpeningElement)\n    return openings\n```\n\n### CSS-like Element Selection\n\n```python\n# IfcOpenShell: all schema versions\nimport ifcopenshell.util.selector\n\n# Select walls by class\nwalls = ifcopenshell.util.selector.filter_elements(model, \"IfcWall\")\n\n# Select by property value\next_walls = ifcopenshell.util.selector.filter_elements(\n    model, 'IfcWall, \u002FPset_WallCommon\u002F.IsExternal = True')\n\n# Select by container\nground_elements = ifcopenshell.util.selector.filter_elements(\n    model, 'IfcBuildingElement, container=\"Ground Floor\"')\n```\n\n### Error Handling for Lookups\n\n```python\n# IfcOpenShell: all schema versions\n# by_id and by_guid raise RuntimeError if not found\ntry:\n    entity = model.by_id(999999)\nexcept RuntimeError:\n    print(\"Entity not found\")\n\ntry:\n    entity = model.by_guid(\"nonexistent_guid_12345\")\nexcept RuntimeError:\n    print(\"Entity not found\")\n\n# by_type returns empty tuple if no matches\nwalls = model.by_type(\"IfcWall\")  # () if none exist\n```\n\n---\n\n## Version Notes\n\n### Schema-Specific Entity Names\n\n| Concept | IFC2X3 | IFC4 | IFC4X3 |\n|---------|--------|------|--------|\n| Building elements parent | `IfcBuildingElement` | `IfcBuildingElement` | `IfcBuiltElement` |\n| Spatial elements parent | `IfcSpatialStructureElement` | `IfcSpatialElement` | `IfcSpatialElement` |\n| Wall subtype | `IfcWallStandardCase` | `IfcWall` (subtype removed) | `IfcWall` |\n| Facility types | N\u002FA | N\u002FA | `IfcBridge`, `IfcRoad`, `IfcRailway`, `IfcMarineFacility` |\n\n### Query API Compatibility\n\nThe query methods (`by_type`, `by_id`, `by_guid`, `get_inverse`, `get_info`, `is_a`) are **schema-agnostic** — they work identically across IFC2X3, IFC4, and IFC4X3. Only the entity class names passed to these methods differ per schema.\n\n### GUID Module\n\n`ifcopenshell.guid` is schema-independent. The same GUID format (22-character base64) is used across all IFC versions.\n\n| Function | Purpose |\n|----------|---------|\n| `ifcopenshell.guid.new()` | Generate a new IFC GlobalId |\n| `ifcopenshell.guid.expand(ifc_guid)` | Convert IFC GUID → standard UUID string |\n| `ifcopenshell.guid.compress(uuid_str)` | Convert UUID string → 22-char IFC GUID |\n\n---\n\n## Reference Links\n\n- [API Method Signatures](references\u002Fmethods.md) — Complete signatures for all element traversal methods\n- [Working Code Examples](references\u002Fexamples.md) — End-to-end examples for element queries and property extraction\n- [Anti-Patterns](references\u002Fanti-patterns.md) — Common element traversal mistakes and how to avoid them\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when querying, traversing, or extracting data from IFC elements -- by_type, by_id, by_guid, inverse references, or property extraction. Prevents the common mistake of manually traversing relationships instead of using the universal property extraction pattern (IsDefinedBy -> HasProperties). Covers get_info(), is_a(), GUID utilities, and attribute access patterns. Keywords: by_type, by_id, by_guid, get_info, is_a, inverse, IsDefinedBy, HasProperties, IFC query, element traversal, property extraction, find all walls, get element by GlobalId, list elements.\n","Designed for Claude Code. Requires IfcOpenShell Python library.","main","9bb7acf0c2ec4f44373969cb14e55af3c9a8385f","plugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot","2026-11-09 13:26:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill ifcos-syntax-elements",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill ifcos-syntax-elements",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill ifcos-syntax-elements","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",9903,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",12148,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",11191,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fifcopenshell\u002Fsyntax\u002Fifcos-syntax-elements\u002Freferences\u002Fmethods.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7FBFSZ93YM463CGS91D0TZG","manimce-best-practices","Trigger when: (1) User mentions \"manim\" or \"Manim Community\" or \"ManimCE\", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.\n\nBest practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX\u002FMathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.\n\nNOT for ManimGL\u002F3b1b version (which uses `manimlib` imports and `manimgl` CLI).","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7FB2K59HNNXS9WKHAMWHC3C","drawio","Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML\u002FER, org charts, Mermaid\u002FCSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For publication figures (paper, thesis, IEEE, camera-ready) use drawio-academic-skills instead.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7FB2BWX7GWK9H2X8BGCYDDD","drawio-academic-skills","Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE\u002FACM submission, manuscript, camera-ready, Word\u002FLaTeX figure, or other publication. Applies venue, figure-type, color, caption\u002Flegend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio-academic-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7FB22JESEAV8T15DJT3D444","uncertainty-and-units","Tracks physical units and propagates measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7FB1ANRSG28R335FDY9SA3R","statistical-analysis","Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fstatistical-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7FB15KRA9D7JCPH4P9T6XJY","simpy","Builds, inspects, tests, and analyzes bounded process-based discrete-event simulations with SimPy. Use for event scheduling, resource queues, interrupts, monitoring, independent replications, warm-up, and reproducible output analysis.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[]]