Skip to content

Commit 5f56787

Browse files
committed
[CO] Check winding definition
1 parent 8e8e25c commit 5f56787

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyleecan/GUI/Dxf/DXF_Slot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@ def save(self):
546546
slot = self.get_slot()
547547
if slot is None:
548548
return # Uncorrect slot
549+
if self.si_wind_begin_index.value() == 0 and self.si_wind_end_index.value() == 0:
550+
QMessageBox().warning(
551+
self,
552+
self.tr("Warning"),
553+
self.tr("The winding was not defined. Please use plot to see the points indices"),
554+
)
555+
return
549556
save_file_path = QFileDialog.getSaveFileName(
550557
self, self.tr("Save file"), dirname(self.dxf_path), "Json (*.json)"
551558
)[0]

0 commit comments

Comments
 (0)