几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】player-setisoff9...0 has no effec (http://www.dimcax.com/hust/showthread.php?t=17897)

yang686526 2009-05-06 09:58 PM

【转帖】player-setisoff9...0 has no effec
 
player->setisoff(...) has no effect
player->setisoff(...) has no effect
hi,
i use dwgdirect only to get an emf-object.
(using vs6, wingdi.gs)
i can set layer on/off only before the first call to
getasemf(). later calls have no effect.
i think, i'm missing something like "clear displaylist"?
bye, holger.
henhmetafile cdwgdxfdrawing_impl::getasemf()
{
hdc hemfdc=createenhmetafile(null, null, null, "test");
odrxdictionaryptr pproperties = m_pdevice->properties();
pproperties->putat("windowhdc", odrxvariantvalue((long)hemfdc));
m_pdevice->onsize(odgsdcrect(0, 30000, 0, 30000));
m_pdevice->update();
return closeenhmetafile(hemfdc);
}
up to 1.14.02 version you need to regenerate metafile to get effect of changing layer visibility.
sergey slezkin
hi,
quote:
originally posted by sergey slezkin
up to 1.14.02 version you need to regenerate metafile to get effect of changing layer visibility.
how????
sorry, still beginner to dwgdirect.
bye, holger.
ok,
odgslayouthelperptr playouthelper = odgslayouthelper::cast(m_pdevice);
if(playouthelper->gsmodel())
playouthelper->gsmodel()->invalidate(odgsmodel::kinvalidateall);
does what i want.
bye, holger.
layer gemo cache
quote:
originally posted by sergey slezkin
up to 1.14.02 version you need to regenerate metafile to get effect of changing layer visibility.
i have to re-vectorize (turn geom cache off) in 1.14.02 to get layers to work... does the above mean "up to and including 1.14.02" ... if not, can someone post an example of how they are getting this to work without re-vectoring (in ver 1.14.02).
thanks
c.
yes, "up to and including". sorry for my english.
sergey slezkin


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