Community Tip - Need help navigating or using the PTC Community? Contact the community team.
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; point1 = 0; point1 = 0; point2 = 1000; point2 = 0; point2 = 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 ?