几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem enablegsmodel and layers (http://www.dimcax.com/hust/showthread.php?t=18017)

yang686526 2009-05-06 10:41 PM

【转帖】problem enablegsmodel and layers
 
problem: enablegsmodel and layers
problem: enablegsmodel and layers
i use version 1.13.02,
when enablegsmodel is true,
i can make then layer off but it is still visible.
the code:
pcontextfordb->enablegsmodel(true);
....
m_player->upgradeopen();
if (m_player->iswriteenabled())
{
m_player->setisoff(true);
m_player->downgradeopen();
}
when i don't use enablegsmodel everything is ok?
last edited by michał krzesiak; 6th january 2006 at 05:55 amfff">.
enablegsmodel
yes, you need to update your view.
if (m_pdevice.isnull())
return;
//oddbobjectptr pent2erase = ident2erase.safeopenobject();
odgslayouthelperptr plh = m_pdevice;
if(plh->gsmodel())
plh->gsmodel()->invalidate(odgsmodel::kinvalidateall);
thanks,
laurent


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