nobim-image-generator
БесплатноБез исполняемых скриптовНе проверенGenerate images and visualizations from Revit/IFC files without BIM software. Python-based noBIM tool for batch processing.
от datadrivenconstruction★ 461 звезда на GitHubОб этом скилле
noBIM Image Generator
Business Case
Problem Statement
Creating visualizations from BIM models typically requires:
- Expensive BIM software licenses
- Manual screenshot capture
- Time-consuming rendering
- Impossible to batch process
Solution
noBIM tool extracts data and generates visualizations using Python libraries, processing hundreds of projects without BIM software.
Business Value
- No license required - Pure Python solution
- Batch processing - Generate images for 1000s of projects
- Customizable - Create exactly the visualizations you need
- Automatable - Integrate into data pipelines
Technical Implementation
Installation
pip install pandas matplotlib seaborn plotly ifcopenshell
Core Functionality
import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
from pathlib import Path
from typing import List, Optional, Tuple
class NoBIMVisualizer:
def __init__(self):
self.elements = None
self.project_name = ""
def load_from_excel(self, xlsx_path: str) -> int:
"""Load BIM data from converted Excel file."""
self.elements = pd.read_excel(xlsx_path, sheet_name="Elements")
self.project_name = Path(xlsx_path).stem
return len(self.elements)
def generate_3d_scatter(self, output_path: str,
color_by: str = "Category",
size: Tuple[int, int] = (12, 10)) -> str:
"""Generate 3D scatter plot of elements."""
if not all(col in self.elements.columns
for col in ['BBox_CenterX', 'BBox_CenterY', 'BBox_CenterZ']):
raise ValueError("Bounding box data required. Export with 'bbox' option.")
fig = plt.figure(figsize=size)
ax = fig.add_subplot(111, projection='3d')
# Get unique categories for coloring
categories = self.elements[color_by].unique()
colors = plt.cm.tab20(np.linspace(0, 1, len(categories)))
color_map = dict(zip(categories, colors))
for cat in categories:
subset = self.elements[self.elements[color_by] == cat]
ax.scatter(
subset['BBox_CenterX'],
subset['BBox_CenterY'],
subset['BBox_CenterZ'],
c=[color_map[cat]],
label=cat[:20],
alpha=0.6,
s=10
)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
ax.set_title(f'{self.project_name} - 3D Element Distribution')
ax.legend(loc='upper left', fontsize=8, ncol=2)
plt.savefig(output_path, dpi=150, bbox_inches='tight')
plt.close()
return output_path
def generate_floor_plan(self, output_path: str, level: str,
size: Tuple[int, int] = (14, 10)) -> str:
"""Generate floor plan visualization for specific level."""
level_elements = self.elements[self.elements['Level'] == level]
if level_elements.empty:
raise ValueError(f"No elements found for level: {level}")
fig, ax = plt.subplots(figsize=size)
# Draw walls
walls = level_elements[level_elements['Category'] == 'Walls']
for _, wall in walls.iterrows():
rect = plt.Rectangle(
(wall['BBox_MinX'], wall['BBox_MinY']),
wall['BBox_MaxX'] - wall['BBox_MinX'],
wall['BBox_MaxY'] - wall['BBox_MinY'],
fill=True, facecolor='gray', edgecolor='black', alpha=0.7
)
ax.add_patch(rect)
# Draw rooms
rooms = level_elements[level_elements['Category'] == 'Rooms']
for _, room in rooms.iterrows():
center_x = (room['BBox_MinX'] + room['BBox_MaxX']) / 2
center_y = (room['BBox_MinY'] + room['BBox_MaxY']) / 2
ax.annotate(room.get('RoomName', 'Room'),
(center_x, center_y), ha='center', fontsize=8)
ax.set_aspect('equal')
ax.set_title(f'{self.project_name} - {level}')
ax.set_xlabel('X (m)')
ax.set_ylabel('Y (m)')
plt.savefig(output_path, dpi=150, bbox_inches='tight')
plt.close()
return output_path
def generate_category_chart(self, output_path: str,
size: Tuple[int, int] = (12, 8)) -> str:
"""Generate bar chart of element categories."""
cat_counts = self.elements['Category'].value_counts().head(20)
fig, ax = plt.subplots(figsize=size)
bars = ax.barh(cat_counts.index, cat_counts.values,
color=plt.cm.viridis(np.linspace(0, 1, len(cat_counts))))
ax.set_xlabel('Element Count')
ax.set_title(f'{self.project_name} - Element Categories')
# Add count labels
for bar, count in zip(bars, cat_counts.values):
ax.text(bar.get_width() + 1, bar.get_y()
Установить nobim-image-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nobim-image-generator?
Generate images and visualizations from Revit/IFC files without BIM software. Python-based noBIM tool for batch processing.
Как установить скилл nobim-image-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nobim-image-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic