mozman / ezdxf

Python interface to DXF

Home Page:https://ezdxf.mozman.at

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question re: drawing addon - correct way to clear view/scene/backend?

bandtank opened this issue · comments

Using the drawing addon, is there a built-in way to clear the scene/reset the view/unload the DXF file? When the example first loads without a CAD file, the scene is white and uninitialized. How would I return it to that state?

So far, I am using self._cad._backend.clear(), which seems to mostly work. However, the scene appears to still be loaded because the background is black instead of white, so I'm not sure if that is sufficient to fully reset the frontend and backend. In other words, I'm trying to figure out how to close a DXF file and return the program to the initial state.