
Thu, 02/27/2003 - 14:56
Forums:
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.
Thu, 02/27/2003 - 21:12
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
Wed, 09/21/2011 - 16:19
try this
m_AISContext->CloseAllContexts();
m_AISContext->RemoveAll();