cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

"ProBomballoonAllCreate" API returns PRO_TK_NOT_DISPLAYED error

VA_3544793
13-Aquamarine

"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.

2 REPLIES 2

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

RPN
17-Peridot
17-Peridot
(To:VA_3544793)

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

Announcements


Top Tags