Logo : Sverchok Impl Ifcsverchok

Sverchok Impl Ifcsverchok

Organisation
Impertio-Studio
sverchok-impl-ifcsverchok

Use when generating IFC files from Sverchok geometry using IfcSverchok nodes. Prevents the critical mistake of not understanding SvIfcStore transient file management (data is purged on every full tree update -- use use_bonsai_file to persist). Covers the 31 specialized nodes, two geometry conversion modes, the 6-step IFC generation workflow, and Bonsai integration. Keywords: IfcSverchok, SvIfcStore, IFC from Sverchok, geometry to IFC, Bonsai integration, transient file, use_bonsai_file, IFC generation, node-based BIM, parametric IFC, generate IFC from nodes.

Présentation

ÉditeurImpertio-Studio
DépôtBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Nom de la compétencesverchok-impl-ifcsverchok
Étoiles
44
Forks
5
Fichiers inclus
3
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 3

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Impertio-Studio sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Sverchok Impl Ifcsverchok dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/sverchok/impl/sverchok-impl-ifcsverchok
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package.git /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
mkdir -p .claude/skills
cp -r /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/skills/sverchok/impl/sverchok-impl-ifcsverchok .claude/skills/sverchok-impl-ifcsverchok
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Sverchok Impl Ifcsverchok dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Sverchok Impl Ifcsverchok dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Sverchok Impl Ifcsverchok n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

sverchok-impl-ifcsverchok

Quick Reference

What Is IfcSverchok

IfcSverchok is an extension that bridges Sverchok parametric geometry with the IFC (Industry Foundation Classes) open BIM standard. It enables creation of native IFC models using visual node-based programming in Blender.

  • 31 specialized nodes (24 IFC + 7 Shape Builder) for BIM model creation
  • Two geometry modes: Blender mesh objects or raw Sverchok geometry to IFC
  • Transient IFC file: single shared SvIfcStore.file managed across all nodes
  • Bonsai integration: toggle to read/write Bonsai's active IFC file
  • Status: Alpha (version 0.0.0) — expect stability issues
Dependency Chain
IfcSverchok
  ├── Bonsai (BlenderBIM) — must be enabled first
  ├── Sverchok v1.2+ — node tree framework
  └── ifcopenshell 0.8.x — IFC file manipulation

All three dependencies must be installed and enabled. IfcSverchok registers its nodes only when all dependencies are available.

Critical Warnings

NEVER use Blender undo inside an IfcSverchok node tree — this causes crashes due to the transient SvIfcStore.file becoming out of sync with Blender's undo state.

NEVER assume multiple IFC files can coexist — SvIfcStore manages exactly ONE transient file shared by ALL nodes in ALL trees. Running "Re-run all nodes" calls purge() which resets the entire file.

NEVER mix use_bonsai_file=True with SvIfcWriteFile export — writing overwrites Bonsai's active file state. Use one mode or the other.

NEVER expect IfcSverchok's process() to follow standard Sverchok conventions — SvIfcCore applies zip_long_repeat TWICE (double-nested), which is different from regular Sverchok nodes that apply it once.

ALWAYS include a geometry-to-representation conversion node (SvIfcBMeshToIfcRepr or SvIfcSverchokToIfcRepr) before SvIfcCreateEntity — entities without representations produce empty IFC files.

ALWAYS let ensure_hirarchy() handle missing spatial structure on export rather than manually creating IfcProject/IfcSite/IfcBuilding — the write node auto-completes the hierarchy.

Decision Tree

Need to create IFC from Sverchok geometry?
├── From Blender mesh objects → SvIfcBMeshToIfcRepr node
├── From Sverchok vertices/faces → SvIfcSverchokToIfcRepr node
├── From IFC ShapeBuilder profiles → SvIfcSbRectangle → SvIfcSbExtrude → SvIfcSbRepresentation
└── From existing IFC file → SvIfcReadFile node

Need to build IFC hierarchy?
├── Quick setup → SvIfcQuickProjectSetup (creates project + site + building + storey)
├── Manual hierarchy → SvIfcAddSpatialElement for each level
└── Minimal → Just use SvIfcCreateEntity + SvIfcWriteFile (ensure_hirarchy fills gaps)

Need to query IFC data?
├── By STEP ID → SvIfcById node
├── By GlobalId → SvIfcByGuid node
├── By IFC class → SvIfcByType node
├── By selector query → SvIfcByQuery node
└── Read attributes → SvIfcReadEntity node

Need Bonsai integration?
├── Write to Bonsai's file → Toggle "Use Bonsai File" button, then run nodes
├── Read Bonsai's file → Toggle "Use Bonsai File", use query nodes
└── Export standalone → Keep use_bonsai_file=False (default), use SvIfcWriteFile

Essential Patterns

Pattern 1: SvIfcStore: Transient File Management

python
# IfcOpenShell 0.8.x / IfcSverchok
# SvIfcStore manages a SINGLE transient IFC file across the node tree.

class SvIfcStore:
    file: Union[ifcopenshell.file, None] = None
    id_map: dict[str, Any] = {}        # node_id -> created entity data
    schema_identifiers = ["IFC4", "IFC2X3"]
    use_bonsai_file = False

    @staticmethod
    def purge() -> None:
        """Reset all state. Called before each full node tree re-run."""
        SvIfcStore.file = None
        SvIfcStore.id_map = {}

    @staticmethod
    def get_file() -> ifcopenshell.file:
        """Return the current transient file.
        Creates boilerplate IFC4 file if none exists.
        Returns Bonsai's file when use_bonsai_file is True."""
        if SvIfcStore.use_bonsai_file:
            return tool.Ifc.get()
        if SvIfcStore.file is None:
            SvIfcStore.create_boilerplate()
        return SvIfcStore.file

Key behaviors:

  • purge() runs at the start of every full tree re-evaluation
  • id_map tracks which node created which IFC entities (keyed by node_id)
  • get_file() lazily creates a boilerplate IFC4 file on first access
  • Only ONE file exists at a time — no multi-file workflows

Pattern 2: SvIfcCore: Double-Nested Input Processing

python
# IfcOpenShell 0.8.x / IfcSverchok
# SvIfcCore applies zip_long_repeat TWICE: different from standard Sverchok.

from sverchok.data_structure import zip_long_repeat

class SvIfcCore:
    sv_input_names: list[str]

    def process(self) -> None:
        # Gather all inputs
        sv_inputs_nested = []
        for name in self.sv_input_names:
            sv_inputs_nested.append(self.inputs[name].sv_get())

        # FIRST zip_long_repeat: across objects (outer nesting level)
        for sv_input_nested in zip_long_repeat(*sv_inputs_nested):
            # SECOND zip_long_repeat: within each object (inner nesting level)
            for sv_input in zip_long_repeat(*sv_input_nested):
                sv_input = list(sv_input)
                self.process_ifc(*sv_input)

Why double-nested: Sverchok data is [[obj1_data], [obj2_data]]. The first zip matches across inputs at the object level. The second zip iterates within each object, processing individual items. This allows a single SvIfcCreateEntity node to create multiple entities across multiple objects.

Pattern 3: Sverchok Geometry to IFC Representation

python
# IfcOpenShell 0.8.x / IfcSverchok
# Converting Sverchok geometry (vertices, edges, faces) to IFC representation.
# Node: SvIfcSverchokToIfcRepr

# In a Sverchok node tree, connect:
# [Plane Generator] → Vertices → [SvIfcSverchokToIfcRepr] → Representation → [SvIfcCreateEntity]
#                   → Faces    → /

# SvIfcSverchokToIfcRepr internally:
# 1. Normalizes vertex/edge/face data to 4-deep nesting
# 2. Zips geometry objects together
# 3. For each geometry object:
#    - Creates IfcCartesianPointList3D from vertices
#    - Creates IfcTriangulatedFaceSet or IfcPolygonalFaceSet from faces
#    - Wraps in IfcShapeRepresentation with context_type/context_identifier
# 4. Outputs IFC representation entity IDs

Pattern 4: Blender Mesh to IFC Representation

python
# IfcOpenShell 0.8.x / IfcSverchok
# Converting Blender mesh objects to IFC representations.
# Node: SvIfcBMeshToIfcRepr

# In a Sverchok node tree, connect:
# [Objects In] → Objects → [SvIfcBMeshToIfcRepr] → Representations → [SvIfcCreateEntity]
#                                                 → Locations      → /

# SvIfcBMeshToIfcRepr internally:
# 1. Takes Blender mesh objects as input
# 2. Separates loose parts into individual geometry sets
# 3. Generates IFC representation per object
# 4. Preserves world matrices as Locations output
# 5. Outputs: Representations (IFC repr IDs) + Locations (4x4 matrices)

# Inputs:
#   context_type: "Model" or "Plan"
#   context_identifier: "Body", "Annotation", "Box", or "Axis"
#   target_view: geometric target view
#   blender_objects: list of Blender mesh objects

Pattern 5: 6-Step IFC Generation Workflow

python
# IfcOpenShell 0.8.x / IfcSverchok
# Complete workflow for generating a valid IFC file from Sverchok.

# Step 1: Generate Geometry
# Use any Sverchok generator nodes (Box, Plane, Cylinder, etc.)
# OR use ShapeBuilder nodes (SvIfcSbRectangle → SvIfcSbExtrude)
# OR use Blender Objects In node

# Step 2: Convert to IFC Representation
# [SvIfcSverchokToIfcRepr]: from Sverchok vertices/edges/faces
# [SvIfcBMeshToIfcRepr]   : from Blender mesh objects
# [SvIfcSbRepresentation] : from ShapeBuilder geometry

# Step 3: Create IFC Entities
# [SvIfcCreateEntity]
#   IfcClass = "IfcWall"  (or IfcSlab, IfcColumn, etc.)
#   Names = "Wall_001"
#   Representation = (from Step 2)

# Step 4: Build Spatial Hierarchy
# [SvIfcAddSpatialElement]
#   IfcClass = "IfcBuildingStorey"
#   Elements = (from Step 3)
# Or skip: ensure_hirarchy() auto-completes on export

# Step 5: Add Properties (Optional)
# [SvIfcAddPset]
#   Name = "Pset_WallCommon"
#   Properties = '{"IsExternal": true, "LoadBearing": false}'

# Step 6: Export
# [SvIfcWriteFile]
#   path = "/path/to/output.ifc"
#   Triggers ensure_hirarchy() automatically

Pattern 6: ShapeBuilder Workflow

python
# IfcOpenShell 0.8.x / IfcSverchok
# Using ShapeBuilder nodes to create IFC geometry natively.

# ShapeBuilder creates geometry directly as IFC entities,
# bypassing Blender/Sverchok mesh conversion entirely.

# Node chain:
# [SvIfcSbRectangle] → profile → [SvIfcSbExtrude] → shape → [SvIfcSbRepresentation] → repr
#   XDim = 0.3                     Magnitude = 3.0
#   YDim = 0.2

# SvIfcSbRectangle creates an IfcRectangleProfileDef
# SvIfcSbExtrude extrudes the profile into an IfcExtrudedAreaSolid
# SvIfcSbRepresentation wraps into IfcShapeRepresentation

# Available ShapeBuilder nodes:
# SvIfcSbRectangle: rectangle profile
# SvIfcSbExtrude  : extrusion along axis
# SvIfcSbRepresentation: wraps to shape representation
# SvSbMesh        : creates IFC mesh from vertices/polygons
# SvSbPolyline    : creates IFC polyline from vertices
# SvSbShapeOutput : converts IFC shape back to Sverchok geometry
# SvIfcSbTest     : debug/testing node

Pattern 7: Automatic Hierarchy Completion (ensure_hirarchy)

python
# IfcOpenShell 0.8.x / IfcSverchok
# Called automatically by SvIfcWriteFile before export.

# ensure_hirarchy() performs these steps:
# 1. Creates a default IfcBuilding if none exists in the file
# 2. Assigns orphaned IfcBuildingStorey elements to the building
# 3. Assigns uncontained IfcElement instances to the building
# 4. Creates a default IfcSite if none exists
# 5. Links Building → Site → Project

# This means a minimal workflow can skip manual hierarchy:
# [Geometry] → [Repr] → [CreateEntity] → [WriteFile]
# ensure_hirarchy() fills in Project/Site/Building automatically.

# NOTE: The function is named "ensure_hirarchy" (typo preserved from source).
# Do NOT attempt to call "ensure_hierarchy": the correct name has no second 'e'.

Common Operations

Complete Node Catalog (31 Nodes)

IFC Nodes (24)
Node ClassLabelPurpose
SvIfcCreateFileIFC Create FileCreates new empty IFC file with specified schema
SvIfcReadFileIFC Read FileOpens existing IFC file from disk
SvIfcWriteFileIFC Write FileExports transient file to disk (calls ensure_hirarchy)
SvIfcCreateEntityIFC Create EntityCreates IFC entities with geometry and placement
SvIfcCreateShapeIFC Create Blender ShapeConverts IFC entities to Blender mesh objects
SvIfcReadEntityIFC Read EntityReads entity, exposes all attributes as outputs
SvIfcPickIfcClassIFC Class PickerUI picker for IFC classes by product category
SvIfcByIdIFC By IdRetrieves entities by STEP file ID
SvIfcByGuidIFC By GuidRetrieves entities by GlobalId
SvIfcByTypeIFC By TypeQueries all entities of a given type
SvIfcByQueryIFC By QueryQueries using IfcOpenShell selector syntax
SvIfcAddIFC AddAdds an entity to the IFC file
SvIfcAddPsetIFC Add PsetCreates or edits property sets on elements
SvIfcAddSpatialElementIFC Add Spatial ElementCreates spatial elements, assigns contained elements
SvIfcRemoveIFC RemoveRemoves an entity from the IFC file
SvIfcGenerateGuidIFC Generate GuidGenerates IFC-compliant GUID
SvIfcGetPropertyIFC Get PropertyRetrieves property value from a property set
SvIfcGetAttributeIFC Get AttributeRetrieves a direct attribute value
SvIfcSelectBlenderObjectsIFC Select Blender ObjectsSelects Blender objects by matching GlobalId
SvIfcApiIFC APIGeneric node calling any ifcopenshell.api function
SvIfcBMeshToIfcReprIFC BMesh to IFC ReprConverts Blender objects to IFC representations
SvIfcSverchokToIfcReprIFC Sverchok to IFC ReprConverts Sverchok geometry to IFC representations
SvIfcCreateProjectIFC Create ProjectAdds IfcProject, units, and representation context
SvIfcQuickProjectSetupIFC Quick Project SetupCreates complete IFC file with project metadata
IFC Shape Builder Nodes (7)
Node ClassLabelPurpose
SvIfcSbRectangleIFC RectangleCreates IFC rectangle profile via ShapeBuilder
SvIfcSbExtrudeIFC ExtrudeExtrudes IFC profile along axis
SvIfcSbRepresentationIFC RepresentationWraps items into IfcShapeRepresentation
SvIfcSbTestIFC SB TestTest/debug node
SvSbShapeOutputIFC Shape OutputConverts IFC shape to Sverchok geometry
SvSbMeshIFC MeshCreates IFC mesh from vertices and polygons
SvSbPolylineIFC PolylineCreates IFC polyline from vertices

SvIfcStore Static Methods

MethodSignaturePurpose
purge() -> NoneResets file, id_map. Called before full re-run
get_file() -> ifcopenshell.fileReturns transient file (creates if needed)
create_boilerplate() -> NoneCreates minimal IFC4 file with header data

SvIfcStore Class Attributes

AttributeTypePurpose
fileifcopenshell.file | NoneThe single transient IFC file
id_mapdict[str, Any]Maps node_id to created IFC entity data
schema_identifierslist[str]Supported schemas: ["IFC4", "IFC2X3"]
use_bonsai_fileboolWhen True, get_file() returns Bonsai's file

Geometry Mode Comparison

AspectSvIfcBMeshToIfcReprSvIfcSverchokToIfcRepr
Input sourceBlender mesh objectsSverchok vertices/edges/faces
Loose partsAuto-separatedN/A (already separate objects)
World matrixPreserved as Locations outputNot applicable
OutputsRepresentations + LocationsRepresentations only
Use whenWorking with existing Blender geometryWorking with procedural Sverchok geometry

Known Issues and Limitations

IssueImpactWorkaround
Blender crashes during undoData lossSave frequently, avoid undo in IFC trees
Single transient fileNo multi-file workflowsProcess one IFC file at a time
No type/material libraryCannot manage IfcTypeProduct or IfcMaterialUse ifcopenshell.api directly via SvIfcApi node
Limited geometry typesOnly basic shapes via ShapeBuilderUse SvIfcSverchokToIfcRepr for complex geometry
No infrastructure supportIfcBridge, IfcRoad unavailableNot supported in current version
No MVD validationNo compliance checkingValidate externally after export
No quantity takeoffNo IfcElementQuantity nodesUse ifcopenshell.api via SvIfcApi node

Reference Links

Cross-References

Official Sources

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Sverchok Impl Ifcsverchok ?

Use when generating IFC files from Sverchok geometry using IfcSverchok nodes. Prevents the critical mistake of not understanding SvIfcStore transient file management (data is purged on every full tree update -- use use_bonsai_file to persist). Covers the 31 specialized nodes, two geometry conversion modes, the 6-step IFC generation workflow, and Bonsai integration. Keywords: IfcSverchok, SvIfcStore, IFC from Sverchok, geometry to IFC, Bonsai integration, transient file, use_bonsai_file, IFC generation, node-based BIM, parametric IFC, generate IFC from nodes.

Pourquoi utiliser Sverchok Impl Ifcsverchok sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Sverchok Impl Ifcsverchok se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Sverchok Impl Ifcsverchok dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/sverchok/impl/sverchok-impl-ifcsverchok. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Sverchok Impl Ifcsverchok ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Sverchok Impl Ifcsverchok ?

Autant que vous le souhaitez. Vous pouvez utiliser Sverchok Impl Ifcsverchok avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Sverchok Impl Ifcsverchok est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Impertio-Studio sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇