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

yang686526 2009-05-06 07:11 PM

【转帖】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


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