PHoleMUD module

class PHoleMUD[source]

Bases: pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.PHoleMUD.Ui_PHoleMUD.Ui_PHoleMUD, PySide2.QtWidgets.QWidget

Page to set the Hole from DXF

saveNeeded
hole_name = 'Import from DXF'
hole_type

alias of pyleecan.Classes.HoleUD.HoleUD

update_mag_list()[source]

Update the material selector list according to hole magnet

update_graph()[source]

Plot the lamination with/without the hole

load_hole()[source]

Load the selected json file and display the hole

open_dxf_hole()[source]

Open the GUI to define the HoleUD

set_dxf_path()[source]

Update the hole according to the file defined by DXF_Hole

comp_output()[source]

Compute and display the hole output

Parameters

self (PHoleMUD) – A PHoleMUD widget

check()[source]

Check that the current machine have all the needed field set

Parameters

self (PHoleMUD) – A PHoleMUD widget

Returns

error – Error message (return None if no error)

Return type

str

emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

staticMetaObject = <PySide2.QtCore.QMetaObject object>