查看单个帖子
旧 2009-05-07, 04:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)