CATScriptUtilities* pScri=new CATScriptUtilities(); //
HRESULT rc = pScri->ExecuteScript("E:\\CATIA\\ABX.CATProduct", catScriptLibraryTypeDocument, "Macro1.catvbs",CATVariant oResult, "CATMain", NULL, 0, TRUE);
// pScri->Release();
pScri=NULL;
if (FAILED(rc))
ZGLNotify("CATScriptUtilities error");//不成功提示
else
ZGLNotify("CATScriptUtilities ");//运行成功提示
我这样操作为什么老是不执行?请指教! |