SkillAgentSearch skills...

Kecb

Python program to generate industrial electrical symbol library.

Install / Use

/learn @kozbot/Kecb
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Where are the symbols?

They are generated in the ./dxf folder when the generate_dxf.py script is run. See 'img' folder for example output.

Design:

Symbols are drawn by default where 1 block = 20 units x 20 units = 1/8" x 1/8" There is no claim that these symbols adhere to any sort of official standard.

Purpose:

This program is intended to bootstrap an electrical CAD symbol library by generating common symbols in .dxf format. The symbols are all aligned to a common 2D grid and have a consistent style. Since they are generated using common building blocks a change to how a Normally Open contact is drawn will require (if kept to the same block dimensions) no changes to the rest of the library and it can easily be proliferated throughout.

External Libraries Used:

  • Affine : For transformation of coordinates.
    https://pypi.python.org/pypi/affine
    https://github.com/sgillies/affine
  • anytree : For keeping track of the entity list.
    https://pypi.python.org/pypi/anytree
    https://github.com/c0fec0de/anytree
  • exdxf : For exporting DXF files.
    https://pypi.python.org/pypi/ezdxf
    https://github.com/mozman/ezdxf
  • svgwrite : For exporting SVG files.
    https://pypi.python.org/pypi/svgwrite
    https://github.com/mozman/svgwrite
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated6mo ago
Forks4

Languages

Python

Security Score

82/100

Audited on Sep 14, 2025

No findings