|
本帖最后由 amateurmcj 于 2019-6-12 19:58 编辑
ProDwgtable *tables = NULL;
ProWstring *cell_mc = NULL,*cell_th = NULL;
ProPath temp_dwg_name,dwg_num_name;
status = ProDrawingSheetsCount((ProDrawing)drawing, &n_sheets);
status = ProDrawingTablesCollect((ProDrawing)drawing,&tables);
status = ProArraySizeGet((ProArray)tables,&n_table);
status = ProArrayAlloc(1, sizeof(ProWstring),1, (ProArray*)&cell_th);
status = ProArrayAlloc(4, sizeof(ProWstring),1, (ProArray*)&cell_mc);
status = ProDwgtableCelltextGet(&tables[1],1,5,PRODWGTABLE_NORMAL,&cell_th);
status = ProDwgtableCelltextGet(&tables[1],5,3,PRODWGTABLE_NORMAL,&cell_mc);
status = ProWstringConcatenate(cell_mc[0],cell_th[0],PRO_VALUE_UNUSED);
status = ProWstringCopy((wchar_t*)cell_th[0],(wchar_t*)dwg_num_name,PRO_VALUE_UNUSED);
status = ProWstringCopy((wchar_t*)cell_th[0],(wchar_t*)temp_dwg_name,PRO_VALUE_UNUSED);
status = ProWstringArrayFree(&cell_th);
status = ProWstringArrayFree(&cell_mc);
主要是字符串赋值方面,谢谢! |
|