Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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 ?