AnsweredAssumed Answered

Drawing when editing sketch

Question asked by Kostadin Vrantzaliev on Feb 4, 2021
Latest reply on Feb 5, 2021 by Kostadin Vrantzaliev

Hi all, I am trying to display / draw dynamically a simple shape in solidworks current view while the user is in edit sketch mode. It turns out that the rendering engine doesn't update the opengl graphics in this mode, so this is not an option. According to the documentation and debugging the only function that is called when I refresh the view is swViewGraphicsRenderPostNotify (2012 SOLIDWORKS API Help - DModelViewEvents_GraphicsRenderPostNotifyEventHandler Delegate (SolidWorks.Interop.sldworks) ).

But what I can do when I handle this? Get current DC and draw with simple Dc drawings? How can I do this.


Anyone experienced such a need? How do you handle this situation?


Thank you in advance.