TRO_EDIT/TRO_INSERT: ein Dialog mit Slot-Liste fuer alle TRO-Typen

- tro_edit.dcl: Kennung, Typ, Liste der Slots des Typs (aus *TRO-SLOTS*
  in tro_types.lsp) mit TeileId je Slot, Edit-Zeile, "Im Plan waehlen <"
  (naechstes Bauteil passender Art aus dem XRECORD SPS_SKEL_PARTS),
  +/- fuer Lagerlinien, Warnzeile (leer/doppelt/in anderem Marker)
- Typwechsel behaelt gleichnamige Slots; gespeichert im Attribut SLOTS
- TRO_INSERT nutzt denselben Dialog (Enter = Mitte der Bauteile),
  tro_insert.dcl entfaellt
- tro_types.lsp neu erzeugt (sps_skel tro_annotate --emit-lisp)
- Rueckweg nach sps_skel: tro_annotate --read-tros

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 14:35:19 +01:00
parent a318ddebf5
commit 56c926cc07
9 changed files with 627 additions and 154 deletions
+14 -2
View File
@@ -937,15 +937,27 @@
"tro-edit-modul-fehlt": "%1 not loaded - editing attributes with EATTEDIT instead.",
"tro-edit-block": "Block: %1",
"tro-edit-fb": "Function block: %1 UID: %2",
"tro-edit-hinweis": "Symbol and FB follow on the next tro_annotate.py run.",
"tro-edit-hinweis": "Back to sps_skel: save as DXF, run tro_annotate --read-tros. Symbol/FB follow on the next run.",
"tro-edit-id-leer": "The TRO id must not be empty - nothing changed.",
"tro-edit-gespeichert": "\nTRO saved: ID = %1, TYPE = %2",
"tro-edit-typ-geaendert": "\nType changed - re-run tro_annotate.py so symbol and FB match.",
"tro-insert-kein-typ": "No TRO types available (tro_types.lsp missing) - run lib/tro_annotate.py --emit-lisp.",
"tro-insert-hinweis": "The block shape must already exist in the drawing (from an earlier tro_annotate.py run).",
"tro-insert-kein-block": "No symbol for this type in the drawing (%1) - run tro_annotate.py with this type first.",
"tro-insert-prompt-punkt": "\nInsertion point: ",
"tro-insert-prompt-punkt": "\nInsertion point <centre of the parts>: ",
"tro-insert-eingefuegt": "\nTRO inserted: ID = %1, TYPE = %2",
"tro-edit-neu": "New TRO - tro_annotate --read-tros takes it over as a new TRO",
"tro-edit-keine-slots": "Marker %1 has no SLOTS attribute (annotated before 2026-10-26) - please re-run tro_annotate.py.",
"tro-edit-keine-teile": "Part table SPS_SKEL_PARTS is missing in the drawing - re-annotate with tro_annotate.py or type the part ID.",
"tro-edit-prompt-teil": "\n%1: pick %2 in the drawing: ",
"tro-edit-gewaehlt": "\n%1 = %2 (%3)",
"tro-edit-kein-teil": "No matching part within %1 mm.",
"tro-edit-falsche-art": "%1 is a %2 - %3 needs a %4.",
"tro-edit-linien": "%1 lines (default %2)",
"tro-edit-leer": "empty: %1",
"tro-edit-doppelt": "twice: %1",
"tro-edit-fremd": "%1 is in %2",
"tro-edit-ok": "Parts ok.",
"cmd-jam-bearbeiten": "\nEdit jam area: %1",
"jam-edit-kein-jam": "Block %1 is not a jam area (expected JAM_*).",
"jam-edit-dialog-fehlt": "Dialog file not found:\n%1\nCheck DXFM_DCL (setenv.bat).",