mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-30 16:04:12 +02:00
7cc5790f7c
Port of the edz2qet.py prototype's mapping to C++. EdzPart parses an EPLAN part.xml into a portable model (identity/metadata, localized names, connection list); EdzElementBuilder turns that into a QET element (generic symbol: body rectangle + one west-facing terminal per pin, per-pin labels, localized <name>s, and elementInformations for the BOM). Pins are natural-sorted by designation so they stack 1,2,3,4 regardless of the order EPLAN lists them (MFH200 lists 1,3,4,2). Output verified structurally identical (uuids aside) to the Python oracle for three ifm samples — KG6000 (4-pin), MFH200 (4-pin, reordered) and R1D200 (5-pin, incl. Dutch name) — and the generated element loads in the QET editor with correct UTF-8. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>