|
|
@@ -1456,7 +1456,7 @@ namespace TeamAAS_VP.Services
|
|
|
/// 执行相机拍照并运行 ToolBlock,返回是否成功并通过 out 参数返回 Outputs。
|
|
|
/// 该方法会发布 RenderUpdateNotification 以更新 UI。
|
|
|
/// </summary>
|
|
|
- public bool ExecutePhoto(int index, ProcedureModel procedure, Dictionary<string, string> InputTerminal, out CogToolBlockTerminalCollection outputCollection, ImageParameters imgPara)
|
|
|
+ public bool ExecutePhoto(int index, ProcedureModel procedure, Dictionary<string, string> InputTerminal, out CogToolBlockTerminalCollection outputCollection, ImageParameters imgPara,int ScrewNum=1)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
@@ -1532,6 +1532,7 @@ namespace TeamAAS_VP.Services
|
|
|
template.RegisterVariable("CameraName", () => procedure.CameraName);
|
|
|
template.RegisterVariable("ShotCount", () => index);
|
|
|
template.RegisterVariable("Result", () => Found ? "OK" : "NG");
|
|
|
+ template.RegisterVariable("Number", () => ScrewNum);
|
|
|
template.RegisterVariable("DateTime", () => DateTime.Now);
|
|
|
|
|
|
// 生成文件名
|