CPs für Dreiwegeweichen und 180°Bogen sind angepasst.
This commit is contained in:
@@ -507,7 +507,7 @@ def process_sternweiche_items(data):
|
||||
for field in fields_to_copy:
|
||||
similar[field] = item[field]
|
||||
if __name__ == "__main__":
|
||||
json_path = os.environ.get("JSON_PATH", "JSON")
|
||||
json_path = os.environ.get("JSON_PATH_OFWEICHE", "JSON")
|
||||
input_filename = os.path.join(json_path, "omniflo_weichen.json")
|
||||
|
||||
modify_json_values(input_filename)
|
||||
+2
-2
@@ -88,7 +88,7 @@ def process_json_file(input_file, output_file):
|
||||
# CP4 exists for Dreiwegeweiche
|
||||
cp4_x = round(item["OFWeiche_CP4_x_mm"] * scale*scale_RD_W, 3)
|
||||
cp4_y = round(item["OFWeiche_CP4_y_mm"] * scale*scale_RD_H, 3)
|
||||
cp4_dir = 90.0
|
||||
cp4_dir = 0.0
|
||||
|
||||
connection_points.append({
|
||||
"id": "cp4",
|
||||
@@ -142,7 +142,7 @@ def process_json_file(input_file, output_file):
|
||||
json.dump(data, f, indent=2, ensure_ascii=False)
|
||||
|
||||
if __name__ == "__main__":
|
||||
json_path = os.environ.get("JSON_PATH", "JSON")
|
||||
json_path = os.environ.get("JSON_PATH_OFWEICHE", "JSON")
|
||||
input_filename = os.path.join(json_path, "omniflo_weichen.json")
|
||||
output_filename = os.path.join(json_path, "omniflo_weichen_output.json")
|
||||
|
||||
|
||||
+1
-1
@@ -183,7 +183,7 @@ def process_files(json_file_path, txt_files_dir):
|
||||
f.write("\n".join(report_content))
|
||||
|
||||
if __name__ == "__main__":
|
||||
json_path = os.environ.get("JSON_PATH", "JSON")
|
||||
json_path = os.environ.get("JSON_PATH_OFWEICHE", "JSON")
|
||||
json_file_path = os.path.join(json_path, "omniflo_weichen_output.json")
|
||||
|
||||
# txt_files_dir = r"C:\Program Files\RuleDesigner\RDConfigurator Fusion\WebApi\Editor2D\SSG\shapes\props"
|
||||
|
||||
@@ -108,7 +108,7 @@ def process_svg_files(svg_folder, json_file_path):
|
||||
if __name__ == "__main__":
|
||||
# Configure paths (update these with your actual paths)
|
||||
svg_folder = os.environ.get('RD_CONF_OUTPUT_OFWEICHEN')
|
||||
json_path = os.environ.get("JSON_PATH", "JSON")
|
||||
json_path = os.environ.get("JSON_PATH_OFWEICHE", "JSON")
|
||||
input_filename = os.path.join(json_path, "omniflo_weichen_output.json")
|
||||
process_svg_files(svg_folder, input_filename)
|
||||
print("Processing complete")
|
||||
|
||||
@@ -2847,7 +2847,7 @@
|
||||
"id": "cp2",
|
||||
"x": 47.592,
|
||||
"y": 0.0,
|
||||
"direction": 360
|
||||
"direction": 0
|
||||
},
|
||||
{
|
||||
"id": "cp3",
|
||||
@@ -2901,7 +2901,7 @@
|
||||
"id": "cp2",
|
||||
"x": 47.592,
|
||||
"y": 0.0,
|
||||
"direction": 360
|
||||
"direction": 0
|
||||
},
|
||||
{
|
||||
"id": "cp3",
|
||||
@@ -2955,7 +2955,7 @@
|
||||
"id": "cp2",
|
||||
"x": 47.592,
|
||||
"y": 0.0,
|
||||
"direction": 360
|
||||
"direction": 0
|
||||
},
|
||||
{
|
||||
"id": "cp3",
|
||||
|
||||
Reference in New Issue
Block a user