Hi everyone

I'm trying to write something that gets the user to draw a closed polyline after a button is pressed on a form.

I tried using the CommandAsync method to send the PLINE command to autocad but using that didn't allow me to execute code after the polyline was drawn so I am currently using the method of creating a polyline object and adding vertices to it based on where the user clicks, however the problem with this method is that it does not show the line as I'm drawing it which would make it difficult for users to know where exactly they've drawn.

My question is, can I get autocad to show the lines of the polyline in the drawing as I add vertices?

Thanks
Joel