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

yang686526 2009-05-07 04:35 PM

【转帖】switching Layers On And Off
 
switching layers on and off
switching layers on and off
how do i do this? i have a database to which i have added some layers and some blocks. that all seems fine, but i now want to turn off and on the display of some of the layers. i've tried the playerrec->setisoff() call, but that seems to have no effect on the display, although if i do a playerrec->isoff() call afterwards, i get the expected reply, i.e. it seems to have set the state correctly. it's just the display of the layer which seems to be unaffected. have i missed something?
more info
in fact, the layers are being switched on and off correctly. if i save the drawing after switching the layers, then when i reload it, it shows the correct state of on/off they should have. so the only thing to sort out is why the drawing i'm displaying is not being updated to reflect the layer changes in real time.
it seems you are using gs model (geometry cash).
its current implementation needs regen after changing layer visibility.
see also
sergey slezkin


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