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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

how to display line in creo from another thread

maheshj
1-Newbie

how to display line in creo from another thread

Hi,


I am developing API which displays some geometry in Creo.


I have a GUI which is on different thread and calls creos API for displaying some geometry in creo.


following is the code



ProPoint3d point1;
ProPoint3d point2;



ProError err;

err=ProGraphicsModeSet(PRO_DRAW_COMPLEMENT_MODE,&old_graphics_mode);



point1[0] = 0;
point1[1] = 0;
point1[2] = 0;

point2[0] = 1000;
point2[1] = 0;
point2[2] = 0;

ProGraphicsPenPosition(point1);
ProGraphicsLineDraw(point2);
err = ProGraphicsModeSet(PRO_DRAW_SET_MODE,&old_graphics_mode);




I am not able to see drawn on creo window.


Is it possible to draw something in creo from different thread ?


if yes then what is wrong with above code ?




0 REPLIES 0
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags