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

yang686526 2009-05-04 03:36 PM

【转帖】aci with more than 8 bits
 
aci with more than 8 bits
aci with more than 8 bits
hi
i'm having problems converting from aci to rgb. i thought that the aci only could vary between 1-255 but i get values much higher than this when reading some dwg:s a customer sent to us. can someone please explain what this means and i would be very thankful.

which one function do you use to get aci?
sincerely yours,
george udov
quote:
originally posted by george udov
which one function do you use to get aci?
i'm sorry, i'm quite new at this and i'm writing code on top of an already finished datatransfer layer that has been written already. but just tell me if there is a possibility for the index to have values greater than 255. it is stored as a word so i guess there must be?
aci may have 2 special values: 0 - byblock and 256 - bylayer. if entities color is byblock and entity is inside a block oddbblockreference entity color is used.
if entity's color is bylayer, entity's layer color is used.
sergey slezkin


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