高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|