DXF_Slot module

class DXF_Slot(dxf_path=None, Zs=None, lam=None)[source]

Bases: pyleecan.GUI.Dxf.Ui_DXF_Slot.Ui_DXF_Slot, PySide2.QtWidgets.QDialog

Dialog to create SlotUD objects from DXF files

open_document()[source]

Open a new dxf in the viewer

Parameters

self (DXF_Slot) – a DXF_Slot object

init_graph()[source]

Initialize 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

get_slot()[source]

Generate the SlotUD object corresponding to the selected lines

Parameters

self (DXF_Slot) – a DXF_Slot object

Returns

sot – User defined slot according to selected lines

Return type

SlotUD

plot()[source]

Plot the current state of the hole

Parameters

self (DXF_Slot) – a DXF_Slot object

save()[source]

Save the SlotUD object in a json file

Parameters

self (DXF_Slot) – a DXF_Slot object

staticMetaObject = <PySide2.QtCore.QMetaObject object>