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

yang686526 2009-05-06 07:08 PM

【转帖】odavelight - remove
 
odavelight - remove
odavelight - remove
hi to all,
i work with the dwg library - version 1.12.1.
my question is : how can i remove a light from the drawing scene?
i use the global oddbgetlights() to obtain the lights, so i can change their behaviour by the functionality in the odavelight class, but i cannot find a way to delete any of them.
the question can be the same about the materials. but there, a material id is available, so i think it can be used for deleting.
all suggestions will be appreciated.
thanks in advance.
nino
hi,
the odavelight class has holderid() method which can be used for deleting as well.
regards,
sergey vishnevetsky
hi, sergey,
i saw it but i was not sure that it can be used for this purpose.
thanks a lot!
nino


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