查看单个帖子
旧 2009-05-06, 02:39 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)