Clear screen ??

Hi,
Can somebody tell me a simple API (I guess it has to belong to class V3d_View or AIS_InterActiveConext)to clear the contents of a 3D OCC window. I tried EraseAll,it did not work.
Basically everytime I open a new file, I want to erase all the objects drawn by eariler opened file.
Pls help. Thanks in advance.

ekiroglu's picture

Hello,

I think that a possible solution is hidden in this phrase :"Basically everytime I open a new file". Please, check it our that algorithm, that is ::OnNewDocument()....

Erki

Saneesh Kumar's picture

try this

m_AISContext->CloseAllContexts();
m_AISContext->RemoveAll();