Positionen von Elementen und Dimensionen von MA und POT korrigiert
This commit is contained in:
Vendored
+25
-4
@@ -367,10 +367,20 @@
|
|||||||
"args": [
|
"args": [
|
||||||
"--filename", "BGMG.dxf",
|
"--filename", "BGMG.dxf",
|
||||||
"--errorfile", "BGMG_errors.json",
|
"--errorfile", "BGMG_errors.json",
|
||||||
"--write", "BGMG_symbols.json"
|
"--info", "BGMG_symbols.json"
|
||||||
]
|
]
|
||||||
},
|
},{
|
||||||
{
|
"name": "create_numbers.py with Nummerierung1.dxf",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${file}",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"args": [
|
||||||
|
"--filename", "Nummerierung1.dxf",
|
||||||
|
"--errorfile", "Nummerierung1_errors.json",
|
||||||
|
"--info", "Nummerierung1_symbols.json"
|
||||||
|
]
|
||||||
|
}, {
|
||||||
"name": "create_numbers.py with BGMG-UndefSymbols.dxf",
|
"name": "create_numbers.py with BGMG-UndefSymbols.dxf",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
@@ -379,7 +389,18 @@
|
|||||||
"args": [
|
"args": [
|
||||||
"--filename", "BGMG-UndefSymbols.dxf",
|
"--filename", "BGMG-UndefSymbols.dxf",
|
||||||
"--errorfile", "BGMG-UndefSymbols_errors.json",
|
"--errorfile", "BGMG-UndefSymbols_errors.json",
|
||||||
"--write", "BGMG-UndefSymbols_symbols.json"
|
"--info", "BGMG-UndefSymbols_symbols.json"
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
"name": "create_numbers.py with POT.dxf",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${file}",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"args": [
|
||||||
|
"--filename", "POT.dxf",
|
||||||
|
"--errorfile", "POT_errors.json",
|
||||||
|
"--info", "POT_symbols.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+43
-17
@@ -25,7 +25,7 @@
|
|||||||
"name": "MA-2@@_bottom",
|
"name": "MA-2@@_bottom",
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"layout_type": "horizontal_offset",
|
"layout_type": "horizontal_offset",
|
||||||
"base_x": 2000,
|
"base_x": 1800,
|
||||||
"base_y": 400,
|
"base_y": 400,
|
||||||
"spacing": 1450
|
"spacing": 1450
|
||||||
}
|
}
|
||||||
@@ -37,10 +37,10 @@
|
|||||||
"kennzeichnung": "A01+UH00",
|
"kennzeichnung": "A01+UH00",
|
||||||
"layer_name": "ILS_MOTOR",
|
"layer_name": "ILS_MOTOR",
|
||||||
"direction": "LEFT_RIGHT",
|
"direction": "LEFT_RIGHT",
|
||||||
"x": 800,
|
"x": 1400,
|
||||||
"y": 900,
|
"y": 1200,
|
||||||
"width": 4000,
|
"width": 4000,
|
||||||
"height": 450,
|
"height": 680,
|
||||||
"use_polyline": false
|
"use_polyline": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -61,9 +61,9 @@
|
|||||||
"kennzeichnung": "A01+UH00",
|
"kennzeichnung": "A01+UH00",
|
||||||
"layer_name": "ILS_MOTOR",
|
"layer_name": "ILS_MOTOR",
|
||||||
"direction": "TOP_BOTTOM",
|
"direction": "TOP_BOTTOM",
|
||||||
"x": 1400,
|
"x": 1600,
|
||||||
"y": 250,
|
"y": 250,
|
||||||
"width": 3600,
|
"width": 4000,
|
||||||
"height": 680,
|
"height": 680,
|
||||||
"use_polyline": false
|
"use_polyline": false
|
||||||
}
|
}
|
||||||
@@ -335,28 +335,28 @@
|
|||||||
"description": "Test-Szene für POT-Erdungssymbole mit drei verschiedenen Typen (POT-RA30@@, POT-MA30@@, POT-UC30@@)",
|
"description": "Test-Szene für POT-Erdungssymbole mit drei verschiedenen Typen (POT-RA30@@, POT-MA30@@, POT-UC30@@)",
|
||||||
"pot_groups": [
|
"pot_groups": [
|
||||||
{
|
{
|
||||||
"name": "POT-RA30@@",
|
"name": "POT-RA30@@_RA",
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"layout_type": "horizontal",
|
"layout_type": "horizontal",
|
||||||
"base_x": 1000,
|
"base_x": 1000,
|
||||||
"base_y": 3000,
|
"base_y": 3000,
|
||||||
"spacing": 2000
|
"spacing": 2500
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "POT-MA30@@",
|
"name": "POT-MA30@@_MA",
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"layout_type": "horizontal",
|
"layout_type": "horizontal",
|
||||||
"base_x": 1000,
|
"base_x": 1000,
|
||||||
"base_y": 2000,
|
"base_y": 2000,
|
||||||
"spacing": 2000
|
"spacing": 2500
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "POT-UC30@@",
|
"name": "POT-UC30@@_UC",
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"layout_type": "horizontal",
|
"layout_type": "horizontal",
|
||||||
"base_x": 1000,
|
"base_x": 1000,
|
||||||
"base_y": 1000,
|
"base_y": 1000,
|
||||||
"spacing": 2000
|
"spacing": 2500
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"renaming_frames": [
|
"renaming_frames": [
|
||||||
@@ -372,7 +372,7 @@
|
|||||||
"direction": "LEFT_RIGHT",
|
"direction": "LEFT_RIGHT",
|
||||||
"x": 800,
|
"x": 800,
|
||||||
"y": 800,
|
"y": 800,
|
||||||
"width": 5500,
|
"width": 7200,
|
||||||
"height": 2800,
|
"height": 2800,
|
||||||
"use_polyline": false
|
"use_polyline": false
|
||||||
}
|
}
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
"attributes": {
|
"attributes": {
|
||||||
"SPS": "1",
|
"SPS": "1",
|
||||||
"IO": "MA0000",
|
"IO": "MA0000",
|
||||||
"VERW": "ILSMotor",
|
"VERW": "ILS-M03@@",
|
||||||
"BEZEICHNUNG": "Motor MA0000",
|
"BEZEICHNUNG": "Motor MA0000",
|
||||||
"ARTIKELNR": "790902001",
|
"ARTIKELNR": "790902001",
|
||||||
"ARTIKELBEZEICHN": "E-Teile für SEW Motor ASE1-HAN10ES-BG",
|
"ARTIKELBEZEICHN": "E-Teile für SEW Motor ASE1-HAN10ES-BG",
|
||||||
@@ -418,9 +418,35 @@
|
|||||||
},
|
},
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
"_comment": "Symbol-Dimensionen für POT-Erdung. Basiert auf Block-Analyse: 816 × 618",
|
"_comment": "Symbol-Dimensionen für POT-Erdung. Basiert auf Block-Analyse: 816 × 618",
|
||||||
"width": 820,
|
"width": 1400,
|
||||||
"height": 620
|
"height": 300
|
||||||
}
|
},
|
||||||
|
"attrib_defs": [
|
||||||
|
{
|
||||||
|
"tag": "REALE_POSITION",
|
||||||
|
"insert": [0.0, 200.0, 0.0],
|
||||||
|
"height": 50.0,
|
||||||
|
"default": "x",
|
||||||
|
"layer": "ILS_POT-Erdung",
|
||||||
|
"invisible": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "NAME",
|
||||||
|
"insert": [50, 100, 0.0],
|
||||||
|
"height": 128.0,
|
||||||
|
"default": "POT-1@@@",
|
||||||
|
"layer": "ILS_POT-Erdung",
|
||||||
|
"invisible": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "KENNZEICHNUNG",
|
||||||
|
"insert": [0.0, -150, 0.0],
|
||||||
|
"height": 128.0,
|
||||||
|
"default": "=A01+UH00-X01",
|
||||||
|
"layer": "ILS_POT-Erdung",
|
||||||
|
"invisible": true
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"bg_defaults": {
|
"bg_defaults": {
|
||||||
"_description": "Standard-Werte für BG/MB-Symbole (Eingänge/Ausgänge). Basiert auf Analyse von BG3240 aus easy.dxf",
|
"_description": "Standard-Werte für BG/MB-Symbole (Eingänge/Ausgänge). Basiert auf Analyse von BG3240 aus easy.dxf",
|
||||||
|
|||||||
@@ -1105,8 +1105,6 @@ if __name__ == '__main__':
|
|||||||
error_data = error_collector.get_all_issues()
|
error_data = error_collector.get_all_issues()
|
||||||
write_json_file(error_data, dxf_path.parent, error_filename)
|
write_json_file(error_data, dxf_path.parent, error_filename)
|
||||||
print(f"Fehler/Warnungen gespeichert: {dxf_path.parent / error_filename}")
|
print(f"Fehler/Warnungen gespeichert: {dxf_path.parent / error_filename}")
|
||||||
else:
|
|
||||||
print("\nKeine Fehler oder Warnungen - keine Fehlerdatei wird geschrieben")
|
|
||||||
|
|
||||||
# Exit-Code basierend auf Fehlern
|
# Exit-Code basierend auf Fehlern
|
||||||
if error_collector.has_errors():
|
if error_collector.has_errors():
|
||||||
|
|||||||
Reference in New Issue
Block a user