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

yang686526 2009-05-06 02:39 PM

【转帖】how to get byblock rgb color
 
how to get byblock rgb color?
how to get byblock rgb color?
hi,
i have a class derived from odgigeometrysimplifier and odgsbasevectorizedevice.
i want to get rgb color of current entity. it's simple, when it's bycolor, when it's bylayer, i can use
pentity->layerid()
and get color from layer.
but how to do that when color is byblock? how to get blockreference? i can only get entity owning block which has not any color in opposite to blockreference.
tia
michal sliwka

use odgsbasevectorizeview::effectivetraits(). this method will return odgisubentitytraitsdata reference, containing real color, linetype, etc (byblock and bylayer will be "decoded")
sincerely yours,
george udov


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