Translations:A2plus Workbench/129/zh-hans

while angle < 360: # run this loop until we have one full turn (360 degrees) # 增加旋转角度 angle += step # 设置进度对话框的新角度 progressDialog.setValue(angle) # 更改零件“ star_wheel_001”的旋转角度 starWheel.Placement.Rotation.Angle = math.radians(angle) # 解决约束 a2p_solver.solveConstraints(document, useTransaction=True) # 解决后更新视图（“ Gui”代表“图形用户界面”） FreeCADGui.updateGui # 将进度对话框置于最前面 PySide.QtGui.QWidget.raise_(progressDialog) #等待一段时间再执行下一步 if progressDialog.wasCanceled: angle = 360 # wait some time before performing the next step time.sleep(timeout) }}
 * 1) while程序块是更改角度和求解的主循环
 * 2) 随后的装配体约束