Dxf-Handle for Openclaw

Dxf-Handle is a specialized CAD utility for traversing layers and calculating area or perimeter metrics within DWG and DXF drawing files.

mapleslove
v1.0.0
Mar 31, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install dxf-handle

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install dxf-handle using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Dxf-Handle?

Dxf-Handle is a technical utility designed for architects and interior designers who need to extract quantitative data from CAD drawings. By leveraging the ezdxf library, this Openclaw Skills contribution allows users to programmatically scan drawing layers, identify polyline boundaries, and generate precise measurements for rooms or specific zones.

The tool is particularly effective for floor plan statistics, where manual measurement is time-consuming and prone to error. It bridges the gap between raw CAD data and actionable reports by converting complex drawing entities into simple area ($m^2$) and perimeter ($m$) values.

Dxf-Handle Use Cases

  • Automating room area calculations for interior design projects.
  • Generating perimeter measurements for baseboard or molding material estimations.
  • Batch processing CAD drawings to extract layer-specific spatial data.
  • Auditing CAD files to ensure specific layers (like zone boundaries) contain valid polyline data.

How Dxf-Handle Works

  1. The user provides a DWG/DXF file path and a JSON configuration mapping CAD layer names to human-readable descriptions.
  2. The skill initializes the ezdxf engine to load and parse the drawing's database.
  3. It iterates through the specified layers in the configuration, filtering for polyline entities.
  4. For each valid entity, the script calculates the geometric area or length based on the requested query mode.
  5. Results are aggregated and either displayed in the terminal or exported to a CSV file for further analysis.

Dxf-Handle Setup

To use this skill, ensure you have Python installed and install the required ezdxf dependency:

pip install ezdxf

Place your CAD files and the layers.json configuration file in the appropriate project directories before running the scripts provided by Openclaw Skills.

Dxf-Handle Data Schema & Taxonomy

Dxf-Handle relies on a structured JSON input for layer mapping and can produce CSV outputs.

Layer Configuration (layers.json)

Key Type Description
layerName String The exact name of the layer in the CAD file (e.g., JS_LivingRoom).
description String A friendly alias for the layer (e.g., Living Room).

CSV Export Format

Column Description
Name The friendly description from the JSON config.
Layer The original CAD layer name.
Quantity Number of valid polyline entities found on that layer.
Area/Perimeter The calculated numerical value.

Dxf-Handle Advanced Features

  • Multi-mode querying: Supports global scans of all configured layers or targeted queries for a single specific room.
  • CSV Export: Integrated --output flag to pipe geometric data directly into spreadsheets for procurement and bidding.
  • Layer Mapping: Decouples technical CAD naming conventions from business reporting via the references/layers.json mapping layer.
  • Flexible Measurements: Toggle between area and perimeter calculations using the --type parameter.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*