几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】how can i remove the entities from the database (http://www.dimcax.com/hust/showthread.php?t=16554)

yang686526 2009-05-05 12:19 PM

【转帖】how can i remove the entities from the database
 
how can i remove the entities from the database?
how can i remove the entities from the database?
hi,
i want to remove the entities which were erased,because the database is too large for saving.somebody give me a example?thanks.
erased entities are not saved to file.
sergey slezkin
purge
do you mean something like the purge command in autocad?
i'm new here so i have no idea how to implement this without acad but i thought i'd just try to clarify.
good luck
if you erase entities with oddbobject::erase() method they stay in memory untill database is destroyed. erased objects are not saved to file. so if the problem is that "the database is too large for saving" you need not do anything.
if the problem is that the large number of erased entities still occupy a lot of memory while you need to continue working with the drawing see developers guide / paging support.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 05:50 PM.