ProMdl mdl;
ProMdl p_handle;
ProName r_mdl_name;
int p_window_id;
ProError err;
err = ProMdlCurrentGet(&mdl);
err = ProMdlNameGet(mdl, r_mdl_name);
err = ProObjectwindowCreate(r_mdl_name, PRO_DRAWING, &p_window_id); // 新开一个窗口,用来显示内存中的工程图,返回当前窗口的ID
err = ProWindowActivate(p_window_id); // 激活指定窗口
err = ProWindowCurrentSet(p_window_id);
err = ProMdlLoad(r_mdl_name, PRO_MDL_DRAWING, PRO_B_FALSE, &p_handle);
err = ProMdlDisplay(p_handle); // 显示内存中的工程图
UsrLineentityCreate((ProDrawing)p_handle, start, end, PRO_COLOR_LETTER);