From 46698319f616e9227a7f072dd4319c03de3bdf76 Mon Sep 17 00:00:00 2001 From: Youen Date: Sun, 4 Feb 2024 15:00:10 +0100 Subject: [PATCH] fixed CSV export --- ahb_cmd_export_parts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahb_cmd_export_parts_list.py b/ahb_cmd_export_parts_list.py index 7eb675d..178be0a 100644 --- a/ahb_cmd_export_parts_list.py +++ b/ahb_cmd_export_parts_list.py @@ -99,7 +99,7 @@ class AHB_ExportPartsList: mass_str = str(int(part.mass + 0.5)) elif part.mass >= 0: mass_str = str(int(part.mass*10 + 0.5) / 10.0) - f.write(part.document + ", " + part.reference + "," + part.material + "," + str(int(part.size[0]+0.5)) + "," + str(int(part.size[1]+0.5)) + "," + str(int(part.size[2]+0.5)) + "," + str(int(part.volume/100+0.5)/10.0) + "," + mass_str + ", " + str(part.count) + "\n") + f.write(part.document + "," + part.reference + "," + part.material + "," + str(int(part.size[0]+0.5)) + "," + str(int(part.size[1]+0.5)) + "," + str(int(part.size[2]+0.5)) + "," + str(int(part.volume/100+0.5)/10.0) + "," + mass_str + ", " + str(part.count) + "\n") print("Part list exported to " + file_name) from ahb_command import AHB_CommandWrapper