高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|