ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Transparency not working in 64 bit

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
dshKSS
766 Views, 5 Replies

Transparency not working in 64 bit

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);

Tags (2)
5 REPLIES 5
Message 2 of 6
Alexander.Rivilis
in reply to: dshKSS

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
Expert Elite Member

Message 3 of 6
owenwengerd
in reply to: dshKSS

You'll need to provide more information than "it doesn't work". Does AutoCAD crash? If so, what is the exception?

--
Owen Wengerd
ManuSoft
Message 4 of 6
dshKSS
in reply to: dshKSS

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.

Message 5 of 6
ow
Contributor
in reply to: dshKSS

And the system variable TRANSPARENCYDISPLAY is set to 1?

Message 6 of 6
dshKSS
in reply to: ow

That was it, so simple, thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost