Ghost lines left after deleting imported dwg

Hi everyone!

I hope you’re all doing well.

I’m having an issue with removing an imported DWG file from Rhino. When I import a DWG file using c# script component, the content is added to the Rhino view as expected. However, after deleting all the content, even the script component, there are some ghost lines left behind in the viewport.

I have the same problem using LunchBox Rhino Command component, though I would prefere to use c# in this case.

I’ve tried various methods to clear these remnants (such as different ways to import it or deleting all blocks from the BlockManager), but nothing seems to work. They can’t be selected in the Rhino view. Can anyone please advise me on how to completely remove these ghost lines after deleting the imported geometry?

Alternatively, is there a way to import the DWG file so that it won’t be visible in Rhino at all?

Thank you in advance for your help!

Best,
Camilla



Hello @Camilla1,

Welcome to the forum!

This sounds like something left in the display pipeline, which would be good to get fixed.

I have a few requests

  • Can you include the DWG in the post?
  • Could you include the code as text (enclosing it in ```cs <my-code>```)
  • What version of Rhino are you using?