pyleecan.GUI.Dxf.DXF_Surf module¶
- class DXF_Surf(dxf_path=None, Zh=None, lam=None, is_vent=True)[source]¶
Bases:
Ui_DXF_Surf
,QDialog
Dialog to create Vents or BoreUD 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_Surf) – a DXF_Surf object
- update_graph()[source]¶
Clean and redraw all the lines in viewer
- Parameters:
self (DXF_Surf) – a DXF_Surf object
- check_selection()[source]¶
Check if every line in the selection form a surface
- Parameters:
self (DXF_Surf) – a DXF_Surf object
- Returns:
is_surf – True if it forms a surface
- Return type:
bool
- get_surface()[source]¶
Validate the selection and create a surface object
- Parameters:
self (DXF_Surf) – a DXF_Surf object
- save()[source]¶
Save the HoleUD object in a json file
- Parameters:
self (DXF_Surf) – a DXF_Surf object
- staticMetaObject = <PySide2.QtCore.QMetaObject object>¶