<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LAYLOCKFADECTL - Layer settings, lock and fade in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/laylockfadectl-layer-settings-lock-and-fade/m-p/2173861#M19847</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a command to lock an entity's layer by selecting the entity.&lt;BR /&gt;
After the layer is locked, all the entities on that layer must appear &lt;BR /&gt;
dimmed.&lt;BR /&gt;
I've noticed that after I lock the layer i have to force a change on &lt;BR /&gt;
LAYLOCKFADECTL variabile for my entities to appear dimmed:&lt;BR /&gt;
&lt;BR /&gt;
	struct resbuf val, old_val;&lt;BR /&gt;
	val.restype = RTSHORT;&lt;BR /&gt;
	val.resval.rint =0;&lt;BR /&gt;
	&lt;BR /&gt;
	acedGetVar( _T("LAYLOCKFADECTL"), &amp;amp;old_val );&lt;BR /&gt;
	val.resval.rint = old_val.resval.rint - 1;&lt;BR /&gt;
	acedSetVar( _T("LAYLOCKFADECTL"), &amp;amp;val );&lt;BR /&gt;
	acedSetVar( _T("LAYLOCKFADECTL"), &amp;amp;old_val );&lt;BR /&gt;
&lt;BR /&gt;
This works ok if i lock the layer, but if i unlock it with my command &lt;BR /&gt;
the entities remain dimmed.&lt;BR /&gt;
&lt;BR /&gt;
Regen command does not help.&lt;BR /&gt;
&lt;BR /&gt;
Any sugestions?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Bogdan</description>
    <pubDate>Thu, 07 Feb 2008 12:30:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-07T12:30:53Z</dc:date>
    <item>
      <title>LAYLOCKFADECTL - Layer settings, lock and fade</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/laylockfadectl-layer-settings-lock-and-fade/m-p/2173861#M19847</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a command to lock an entity's layer by selecting the entity.&lt;BR /&gt;
After the layer is locked, all the entities on that layer must appear &lt;BR /&gt;
dimmed.&lt;BR /&gt;
I've noticed that after I lock the layer i have to force a change on &lt;BR /&gt;
LAYLOCKFADECTL variabile for my entities to appear dimmed:&lt;BR /&gt;
&lt;BR /&gt;
	struct resbuf val, old_val;&lt;BR /&gt;
	val.restype = RTSHORT;&lt;BR /&gt;
	val.resval.rint =0;&lt;BR /&gt;
	&lt;BR /&gt;
	acedGetVar( _T("LAYLOCKFADECTL"), &amp;amp;old_val );&lt;BR /&gt;
	val.resval.rint = old_val.resval.rint - 1;&lt;BR /&gt;
	acedSetVar( _T("LAYLOCKFADECTL"), &amp;amp;val );&lt;BR /&gt;
	acedSetVar( _T("LAYLOCKFADECTL"), &amp;amp;old_val );&lt;BR /&gt;
&lt;BR /&gt;
This works ok if i lock the layer, but if i unlock it with my command &lt;BR /&gt;
the entities remain dimmed.&lt;BR /&gt;
&lt;BR /&gt;
Regen command does not help.&lt;BR /&gt;
&lt;BR /&gt;
Any sugestions?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Bogdan</description>
      <pubDate>Thu, 07 Feb 2008 12:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/laylockfadectl-layer-settings-lock-and-fade/m-p/2173861#M19847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-07T12:30:53Z</dc:date>
    </item>
  </channel>
</rss>

