点击查看详细介绍

WGM下载模型到本地工作区功能代码,从Windchill下载模型到本地

nxopen 7年前 2524 2

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


//WGM下载模型到本地工作区功能代码,从Windchill下载模型到本地
//代码如有不明白可联系qq85585969
string ToolPath = HuBase::GetFolderPath("1");
string strConfigPath = ToolPath + "Config\\tempCS\\partName.txt";
string strWGMpath = ToolPath + "application\\WGM\\WGMHelper.exe";
vector<string> vecTextStrs;
HuBase::ReadTextStrs(strConfigPath, 1, vecTextStrs);
for(int i=0; i<vecTextStrs.size(); i++)
{
string partnamestr = HuBase::trim(vecTextStrs[i]);
HuBase::print(partnamestr);
char szSysPath[1024];
strcpy(szSysPath, "");
strcat(szSysPath, strWGMpath.c_str());
DWORD dwTimeout = 3600000; //1小时
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
●●●请先 登陆注册 后查看●●●

ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_HIDE;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
DWORD dwRet = WaitForSingleObject(ShExecInfo.hProcess,dwTimeout);
}

0

最新回复 (2)
  • zhjc516 7年前
    1

    看看。。。。。。。。。。。。。。。。。。

  • WHY0007 7年前
    2

    谢谢楼主分享,谢谢大家技术支持!

请登录后发表新帖