此脚本主要针对CogToolBlock工具内编辑脚本时的差异
简单脚本可以直接使用:
//Run each tool using the RunTool functio
foreach ( IcogTool tool in Tools)
RunTool (tool, ref message, ref result) ;
CogPMAlignTool pma = new cogPMAlignTool ();pma - this.Tools.cogPMAlignTooll;
return false;
高级脚本:
if ((bool) mToolBlock.Inputs [ "usingFunction"].Value == false)
{
mToolBlock.outputs[ "flag" ].value = true;
}
else
CogCompositeColorMatchTool cmComposite = mDoolBlock. Tools ["CcogCompositeColorMatchool1"] as CogCompositeColorMatchTool;
CogIPOneImageTool ipo = mToo1Block.Tools ["CogIFOneImageTooll"] as CogIPOneImageTool;
CogColorMatchTool cm = mToo1Block.Tools ["CogColorMatchTooll"] as CogColorMatchTool;
ipo.Run () :