DXFファイル編集スキル

Edit and generate DXF files using the ezdxf library.

Updated Feb 20, 2021
One-click install
npx skills add https://github.com/YuujiKamura/trianglelist --skill dxf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DXFファイル編集スキル
Source: https://github.com/YuujiKamura/trianglelist/tree/main/.claude/skills/dxf-editing
Command: npx skills add https://github.com/YuujiKamura/trianglelist --skill dxf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ezdxf, pandas, openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

DXFファイルを安全かつ正確に編集・生成するためのガイドラインとツールを提供し、手動編集による破損やエラーを防ぎます。

Core Features & Use Cases

  • 安全なDXF編集: テキスト操作による破損を防ぎ、ezdxfライブラリの使用を強制します。
  • エンティティ操作: LINE, LWPOLYLINEなどのエンティティの追加、編集、削除方法を解説します。
  • 道路標示・区画線生成: 交差点マーク、横断歩道、停止線などの図形生成ロジックを提供します。
  • DXF→シート同期: DXF内の区画線情報をGoogle Sheetsに自動で抽出・同期します。
  • Use Case: 設計図面(DXF)に新しい道路標示(例:横断歩道)を追加し、その情報を測量データシートに自動で記録する。

Quick Start

Use the DXF editing skill to add a T-shaped intersection mark at coordinates (10000, 10000) in 'drawing.dxf'.

Frequently Asked Questions about DXFファイル編集スキル

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely edit DXF files with Python without corrupting the data?

To safely edit DXF files with Python, use the ezdxf library for programmatic manipulation of entities like lines and polylines, which prevents the structural corruption often caused by manual text editing.

Can I automatically generate road markings like crosswalks and stop lines in a DXF file?

Yes, you can automatically generate road markings in a DXF file using Python scripts that apply geometric rules and layer conventions to create crosswalks, intersection symbols, and stop lines via the ezdxf library.

Does ezdxf support synchronizing DXF entity data with external spreadsheets?

Yes, by combining ezdxf with pandas and openpyxl, you can extract entity data from a DXF file and synchronize it directly with external spreadsheet formats like Excel or Google Sheets.

What is the best way to validate a DXF file structure before programmatic editing?

The best way to validate a DXF file structure is to use Python scripts with the ezdxf library to check structural integrity and ensure entities conform to expected geometric rules before performing edits.

Why does manually editing a DXF file as text cause data corruption?

Manually editing a DXF file as text causes data corruption because it bypasses structural validation rules, which is why using the ezdxf library to enforce safe programmatic manipulation is necessary.

Can I use this DXF editing approach for large-scale CAD drawings?

Yes, using Python and the ezdxf library to programmatically manipulate DXF entities allows you to safely handle large-scale CAD drawings and automate repetitive editing tasks without manual errors.