INNER CODE UNIT · Python

_load_default_values

wzyn20051216/solidworks-automation-skill · apps/desktop/cad_workbench/app.py:446

    def _load_default_values(self) -> None:
        self.project_name.setText("ai_cpu_cooling_shell")
        self.output_root.setText(str(default_output_root()))
        self.add_default_row(self.holes_table, "hole")
        self.add_default_row(self.cutouts_table, "cutout")
        self.add_default_row(self.bosses_table, "boss")
        self.append_log("原型已就绪。先保存参数,再执行 mock 流水线。")

    def pick_output_root(self) -> None:
        folder = QFileDialog.getExistingDirectory(self, "选择输出根目录", self.output_root.text())
        if folder:
            self.output_root.setText(folder)

    def pick_project_file(self) -> None:
        start = self.output_root.text() or str(default_output_root())
        file_path, _ = QFileDialog.getOpenFileName(self, "打开项目", start, "Project JSON (project.json)")
        if file_path:
            self.load_project(Path(file_path).parent)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…