查看单个帖子
旧 2009-05-06, 07:11 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odcmcolor error

odcmcolor error
odcmcolor error
i have a problem when i recover the entity color.
code:
odcmcolor color = line_->color();
std::string isa (line_->isa()->name());

odcmentitycolor entcolor(100,100,100);
entcolor.red(); // ok //
//odcmentitycolor entcolor1(line_->color().entitycolor());
odcmentitycolor entcolor1 = color.entitycolor();
//entcolor1 have a value
entcolor1.red(); // assert //code:
entcolor propierty -- m_rgbm = 3221225472code:
assert expression: colormethod(prgbm) == kbycolor
color method can be:
kbycolor (rgb specified)
kbyaci (by index in autocad's palette)
kbyblock
kbylayer
reg(), green(), blue() can be used only if color has rgb specified (color methos is kbycolor)
sergey slezkin

what is the idea of the structure of odcmcolor when all colors are indexed? is there some possibility to write rgb directly into an element? for which cases is used the method kbycolor? could you answer me please for dgn and dwg, too?
regards lapajda
from the previous post:
kbycolor (rgb specified)
color method kbycolor means that the color is defined by rgb, not by index.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)