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

yang686526 2009-05-06 07:11 PM

【转帖】odcmcolor bug
 
odcmcolor bug?
odcmcolor bug?
code:
odcmcolor clr(kbycolor);
clr.setred(243);
clr.setgreen(243);
clr.setblue(274);
clr.setnames("test","this");
pentity->setcolor(clr);
if i use the above code to set a color on an oddbline it renders as if i'd used kbyaci (7). if i call setnames(odstring::kempty); it renders correctly. its as if the rendering code checks to see if there are names and ignores the colormethod portion.
please advise!
sergey,
the oddbcolor entry exists in the oddbdatabase's colordictionary. we explicitly add it. and its not just white that exhibits this behavior...any color appears to use the kbyaci color instead of the kbycolor. it acts as if it calcs the nearest aci color and uses that instead. however, explicitly removing the entry\book names makes it work as expected.
thanks,
tyler edwards
ok... will it be fixed in the next release?
thanks,
tyler edwards


所有的时间均为北京时间。 现在的时间是 12:31 AM.