Message 1 of 1
LAYLOCKFADECTL - Layer settings, lock and fade
Not applicable
02-07-2008
04:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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