INNER CODE UNIT · Python
_build_feature_tab
wzyn20051216/solidworks-automation-skill · apps/desktop/cad_workbench/app.py:341
def _build_feature_tab(self) -> QWidget:
page = QWidget()
layout = QVBoxLayout(page)
layout.setContentsMargins(0, 0, 0, 0)
layout.setSpacing(14)
holes_panel, holes_layout = self._panel("孔")
self.holes_table = self._table(["id", "名称", "类型", "面", "直径", "数量", "X基准", "Y基准", "X定位", "Y定位", "X节距", "Y节距", "通孔"])
holes_layout.addWidget(self.holes_table)
holes_layout.addLayout(self._table_buttons(self.holes_table, "hole"))
cutouts_panel, cutouts_layout = self._panel("接口开孔")
self.cutouts_table = self._table(["id", "类型", "面", "宽", "高", "直径", "圆角", "X定位", "Y定位", "数量", "间隙"])
cutouts_layout.addWidget(self.cutouts_table)
cutouts_layout.addLayout(self._table_buttons(self.cutouts_table, "cutout"))
bosses_panel, bosses_layout = self._panel("螺丝柱")
self.bosses_table = self._table(["id", "螺丝", "外径", "孔径", "高度", "面", "X定位", "Y定位", "数量", "加强筋"])