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

yang686526 2009-05-07 04:15 PM

【转帖】specifying Entity Colors Using Rgb
 
specifying entity colors using rgb
specifying entity colors using rgb
i can't find the way to set the color of an oddbline entity using the rgb value of the color i want.
the only way i've found to change the color is calling setcolorindex with the aci number corresponding to the color i want.
another not so related question: 縲here could i find the complete list of aci values?

in next release oddbentity::setcolor(const odcmcolor&) method will be available. odcmcolor can be specified by rgb value.
1.06 release have some helper methods declared in colormapping.h
sergey slezkin

since 1.07 rgb color can be set directly to entity using setcolor(const odcmcolor &color, bool dosubents = true);
starting with ac2004 exact rgb value can be stored in file. while saving to minor versions dwgdirect will map colors itself.
sergey slezkin


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