Hi,
The following code is an example of how I am calling transparency on a custom entity.
For some reason it works in 32 bit but not in 64 bit autocad.
Any ideas?
double setTransAlpha = 40;
AcCmTransparency trans(setTransAlpha);
trans.setMethod(AcCmTransparency::transparencyMethod::kByAlpha);
if(transparency == 0)
{
setTransAlpha = 255;
}
else
setTransAlpha = 255 - ((255.0/100.0) * transparency);
trans.setAlpha(setTransAlpha);
mode->subEntityTraits().setTransparency(trans);
Solved! Go to Solution.
Solved by ow. Go to Solution.
What version of AutoCAD and ObjectARX are you using?
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
You'll need to provide more information than "it doesn't work". Does AutoCAD crash? If so, what is the exception?
I am using AutoCAD 2013 and ObjectArx 2013.
Not working means it's not working. In 32 bit the custom object is transparent. In 64 bit it isn't. No crash, no exception, no error messages. It carrys on as normal except the entity is not transparent.
The code is exactly the same.