几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】help,how can i erase a text properly (http://www.dimcax.com/hust/showthread.php?t=16523)

yang686526 2009-05-05 12:08 PM

【转帖】help,how can i erase a text properly
 
help,how can i erase a text properly ?
help,how can i erase a text properly ?

help!
i cannot add and erase the oddbtext properly .
i add a oddbtext with the following code :
{
oddbtextptr postil = oddbtext::createobject();
textid = pspace->appendoddbentity(postil);
}
textid is a class member .
and i erase with the following code:
{
oddbobjectptr objtext = p->textid.openobject (oddb::kforwrite );
objtext->erase();
redrawwindow() ;
}
after i call the erase() ,the postil is disappeared, the viewer is redrawed half , but after i pan the window , the postil return .
help ! i cann't solve the problem !
last edited by shenyq; 13th march 2006 at 12:31 amfff">.
try
code:
{
{
oddbobjectptr objtext = p->textid.openobject (oddb::kforwrite );
objtext->erase();
}
redrawwindow() ;
}
this should close the text entity before redrawing the window. may be leaving it open is the cause of the problem.
best regards
chudomir
thank you , but the problem is also occured .
thank you , but the problem is not solved .
thank you , but the problem is not solved .
sorry - i think your text should be properly deleted now - may be some error in the rendering machine. what happens if you close and reopen the file?
best regards
chudomir


所有的时间均为北京时间。 现在的时间是 10:45 AM.