贴一段我之前编的代码吧,也没调试出来。不知是何原因。请前辈们指点。
ProError status,err,error;
ProName pro_Name;
ProMdl solid_mdl;
ProPath path;
int new_window_id;
CString m_Path ="D:\\¼Ð¾ß¿â\\Ôª¼þ¿â\\1»ù´¡¼þ\\Z1010.prt";
m_Path.TrimRight();
ProStringToWstring(path,m_Path.GetBuffer(m_Path.GetLength()));
status = ProMdlLoad(path,PRO_MDL_UNUSED,PRO_B_FALSE,&solid_mdl);
err = ProMdlNameGet(solid_mdl,pro_Name);
error=ProBarewindowCreate(pro_Name,PRO_PART,&new_window_id);
ProWindowActivate(new_window_id); |