You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
788 B
28 lines
788 B
from utils.show_import_dialog import clickFileIMportShow |
|
from utils.import_all_file import modify_file_dialog_path_and_import_all |
|
from utils.click_sliceing import begingClickSliceing |
|
import time |
|
|
|
from utils.exe_operate import start_exe, click_confirm, close |
|
|
|
|
|
|
|
#"C:/test/10192_small_No4/data" |
|
def BeginSliceing(folderPath): |
|
# 打开3d切片软件 |
|
start_exe() |
|
time.sleep(1) |
|
#点击确认按钮 |
|
click_confirm() |
|
#先打开导入文件的弹框 |
|
clickFileIMportShow() |
|
time.sleep(1) |
|
#在输入路径导入obj文件 |
|
isSuccess = modify_file_dialog_path_and_import_all(folderPath) |
|
if not isSuccess: |
|
print("导入文件失败") |
|
exit() |
|
#点击开始切片 |
|
time.sleep(5) |
|
begingClickSliceing() |
|
|