dwg-vert-modeling
v0.1.2
Published
Agent skill: parse shear walls and structural columns from column/wall plan DWG sheets and batch-create them in Revit
Maintainers
Readme
dwg-vert-modeling
Agent Skill: Parses shear wall outlines and structural columns from column/wall plan DWG drawings (COL drawings), rebuilds a wall/column schedule, and batch-creates vertical members in Autodesk Revit.
Features
- Shear wall closed-LWPOLYLINE outline parsing with L/T-shaped outline rectangle decomposition (bbox expansion forbidden)
- Wall/column classification: near-square closed outlines → columns, elongated → walls; filled (blackened) columns are often drawn on wall outline layers and identified by shape
- Section whitelist filtering to remove fake columns from openings masquerading as columns
- Level mapping: drawing title
NF-NC-COL→ base constraint = level N, top constraint = level C (one element continuous to the top across levels) - Revit C# script generation: top constraint + zeroed base/top offsets in one step; precise delete ranges by constraint interval
- matplotlib verification plots and final validation (counts / type distribution / all-zero offsets / top-constraint connections)
Install
npx dwg-vert-modeling # Installs to ./.agents/skills/dwg-vert-modeling in the current project
npx dwg-vert-modeling -g # Installs to ~/.agents/skills/dwg-vert-modeling (user level)
npx dwg-vert-modeling --dir D:\skills # Custom skills directoryInstalled content is the skill itself (SKILL.md + references/ + scripts/) for coding agents that support the Agent Skills protocol to trigger on demand; it never enters the conversation context.
Dependencies
cadcli(npm package@miclivs/cadcli): DWG → normalized JSONrevit-cliskill (npx revit-cli-skill): RevitCLI Bridge connection, raw mode, and C# hard constraints- Python 3 + matplotlib (verification plots)
- Autodesk Revit (Revit CLI Bridge plugin, AI Mode enabled)
Quick Start (workflow summary)
cadcli json col-plan.dwg > col_dwg.json
python scripts/parse_col.py col_dwg.json col_parsed.json --name "2F-5F" --plan-box 0,34400,0,34550 --secs 500x700,400x700
python scripts/gen_vert_script.py col_parsed.json rebuild.csx --range "2F-5F:2:5" --keep-base 1
# Execute rebuild.csx via the revit-cli skillFor the full workflow, layer-role parameters (--wall-layers/--col-layers/--num-layers), core rules, and field-tested pitfalls, see the installed SKILL.md and references/.
Authors
ZHOU YUEKAI, CHEN YIN
License
UNLICENSED — All rights reserved.
