LAYLOCKFADECTL - Layer settings, lock and fade

LAYLOCKFADECTL - Layer settings, lock and fade

Anonymous
Not applicable
560 Views
0 Replies
Message 1 of 1

LAYLOCKFADECTL - Layer settings, lock and fade

Anonymous
Not applicable
Hello,

I have a command to lock an entity's layer by selecting the entity.
After the layer is locked, all the entities on that layer must appear
dimmed.
I've noticed that after I lock the layer i have to force a change on
LAYLOCKFADECTL variabile for my entities to appear dimmed:

struct resbuf val, old_val;
val.restype = RTSHORT;
val.resval.rint =0;

acedGetVar( _T("LAYLOCKFADECTL"), &old_val );
val.resval.rint = old_val.resval.rint - 1;
acedSetVar( _T("LAYLOCKFADECTL"), &val );
acedSetVar( _T("LAYLOCKFADECTL"), &old_val );

This works ok if i lock the layer, but if i unlock it with my command
the entities remain dimmed.

Regen command does not help.

Any sugestions?

Thank you,
Bogdan
0 Likes
561 Views
0 Replies
Replies (0)