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

yang686526 2009-05-05 11:19 AM

【转帖】getcecolor90
 
getcecolor()
getcecolor()
in objectarx function acdbdatabase::cecolor() return accmcolor object. but in dd function getcecolor() return odcmentitycolor instead odcmcolor. why?
best regards,
ivan obraztsov

this should be changed.
sergey slezkin

if i'm right in 1.08 this problem isn't fixed. may be there is a simple workaround for my issue?
i have to translate color to our own format. and now i have to write 2 same function for translating odcmentitycolor (cecolor) and odcmcolor (color of oddbentity). may be there is a way to convert odcmentitycolor to odcmcolor or vice versa? or another way?
best regards,
ivan obraztsov

you can use
odcmentitycolor odcmcolor::entitycolor()
sergey slezkin

thanks. it works.
but there is another bug during save cecolor to dwg-2004.
if cecolor is bylayer or byblock autocad after opening in dropdown list show not "bylayer" or "byblock" but "color 0" or "color 256".
best regards,
ivan obraztsov

this is caused by dd bug which effects saving colors to dwg 2004.
sergey slezkin


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