"ProBomballoonAllCreate" API returns PRO_TK_NOT_DISPLAYED error
Aug 20, 2024
02:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Aug 20, 2024
02:45 PM
"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, ®ionId);
status = ProBomballoonAllCreate(newdrawing, &tables[0], regionId);
\\
Thanks.
Solved! Go to Solution.
Labels:
- Labels:
-
ProToolkit
-
Toolkit
ACCEPTED SOLUTION
Accepted Solutions
Nov 18, 2024
09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 18, 2024
09:28 PM
Yes, I fixed it. In API "ProDrawingFromTmpltCreate" argument "PRODWGCREATE_DISPLAY_DRAWING" changed to "PRODWGCREATE_WRITE_ERRORS_TO_FILE" has solved this
3 REPLIES 3
Oct 03, 2024
05:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 03, 2024
05:58 PM
I'm not familiar with Toolkit, but should this code reference the drawing view, and not the new drawing for the BOM balloons?
Nov 06, 2024
09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 06, 2024
09:49 AM
I guess you have it already fixed, but the drawing must be displayed in a Window.
Nov 18, 2024
09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 18, 2024
09:28 PM
Yes, I fixed it. In API "ProDrawingFromTmpltCreate" argument "PRODWGCREATE_DISPLAY_DRAWING" changed to "PRODWGCREATE_WRITE_ERRORS_TO_FILE" has solved this
