pyleecan.GUI.Dxf.DXF_Slot module¶
- class DXF_Slot(dxf_path=None, Zs=None, lam=None, is_notch=False)[source]¶
Bases:
Ui_DXF_Slot
,QDialog
Dialog to create SlotUD objects from DXF files
- convert_dxf_with_FEMM(file_path, tol)¶
Convert a DXF file with FEMM: - Merge point according to tolerance - Convert lines to Arc and Segments
- open_document()[source]¶
Open a new dxf in the viewer
- Parameters:
self (DXF_Slot) – a DXF_Slot object
- update_graph()[source]¶
Clean and redraw all the lines in viewer
- Parameters:
self (DXF_Slot) – a DXF_Slot object
- check_selection()[source]¶
Check if every line in the selection are connected
- Parameters:
self (DXF_Slot) – a DXF_Slot object
- Returns:
is_line – True if it forms a line
- Return type:
bool
- save()[source]¶
Save the SlotUD object in a json file
- Parameters:
self (DXF_Slot) – a DXF_Slot object
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶