Skip to main content
13-Aquamarine
Aug 20, 2024 6:45 PM UTC
Solved

"ProBomballoonAllCreate" API returns PRO_TK_NOT_DISPLAYED error

Hi all,
 
Unable to create balloons from repeat region bom table. I'm getting return error (Drawing not displayed) for last line api "ProBomballoonAllCreate". but drawing is already displayed. Also Only one dwg table present inside drawing.
 

https://www.ptc.com/en/support/article/CS276430 . Already tried with this solution, but still no luck

 
\\
status = ProDrawingFromTmpltCreate(model_name, drawing, &model, PRODWGCREATE_DISPLAY_DRAWING, &newdrawing, &errors);
int drw_windowID;
status = ProMdlWindowGet(newdrawing, &drw_windowID);
ProWindowActivate(drw_windowID);
ProWindowRepaint(drw_windowID);
ProDwgtable *tables = NULL;
status = ProDrawingTablesCollect(newdrawing, &tables);
int regionId ;
status = ProDwgtableCellRegionGet(newdrawing, &tables[0], 0, 1, &regionId);
status = ProBomballoonAllCreate(newdrawing, &tables[0], regionId);
 
\\
 
VA_3544793_0-1724179339678.png

Thanks.

13-Aquamarine
Nov 19, 2024 2:28 AM UTC

Yes, I fixed it. In API "ProDrawingFromTmpltCreate" argument "PRODWGCREATE_DISPLAY_DRAWING" changed to "PRODWGCREATE_WRITE_ERRORS_TO_FILE" has solved this

3 replies

12-Amethyst
Oct 3, 2024 9:58 PM UTC

I'm not familiar with Toolkit, but should this code reference the drawing view, and not the new drawing for the BOM balloons?

Translate
RPN
18-Opal
Nov 6, 2024 2:49 PM UTC

I guess you have it already fixed, but the drawing must be displayed in a Window.

Translate
VA_354479313-AquamarineAuthorAnswer
13-Aquamarine
Nov 19, 2024 2:28 AM UTC

Yes, I fixed it. In API "ProDrawingFromTmpltCreate" argument "PRODWGCREATE_DISPLAY_DRAWING" changed to "PRODWGCREATE_WRITE_ERRORS_TO_FILE" has solved this

Translate