![]() |
【转帖】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. |