<?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 Re: AcEdInputPointMonitor and Transient Graphics Layer in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7540548#M7476</link>
    <description>&lt;P&gt;As per your code, I can draw an offset glyph, but it is still controlled by Layer 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer 0 Off" style="width: 410px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/425599iF87D47A56F923CF8/image-dimensions/410x205?v=v2" width="410" height="205" role="button" title="Capture1.png" alt="Layer 0 Off" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Layer 0 Off&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer Zero On" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/425598iBC3E64FBBD855EA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.png" alt="Layer Zero On" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Layer Zero On&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I'm not sure what &lt;STRONG&gt;output&lt;/STRONG&gt; is in your code. My &lt;STRONG&gt;output&lt;/STRONG&gt; is a&amp;nbsp;&lt;STRONG&gt;AcEdInputPointMonitorResult&lt;/STRONG&gt;, and doesn't have the same functions as yours?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 20:58:24 GMT</pubDate>
    <dc:creator>Kyudos</dc:creator>
    <dc:date>2017-11-13T20:58:24Z</dc:date>
    <item>
      <title>AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513276#M7472</link>
      <description>&lt;P&gt;In my ARX, one of my functions uses on input point monitor to draw some transient graphics like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcEdInputPointMonitor::monitorInputPoint(const AcEdInputPoint&amp;amp; input, AcEdInputPointMonitorResult&amp;amp; output)
{
    ...
    Adesk::Boolean b = input.drawContext()-&amp;gt;geometry().circle(pt1, pt2, pt3);
}&lt;/PRE&gt;
&lt;P&gt;Now it seems that my circle is drawn on layer 0 - if layer 0 is off, no circle!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could ensure that layer 0 is on - but surely the visibility of transient graphics shouldn't be layer dependent?&lt;/P&gt;
&lt;P&gt;Can I work around this some other way? I suppose some users might have legitimate reasons for having layer 0 off.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:24:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513276#M7472</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2017-11-02T21:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513425#M7473</link>
      <description>&lt;P&gt;Actually - this only applies to ACAD 2018. It doesn't seem to be working at all in ACAD 2017...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 22:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513425#M7473</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2017-11-02T22:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513625#M7474</link>
      <description>&lt;P&gt;OK...the problem in 2017 turned out to be related to hardware acceleration. If I turn off "High Quality Geometry" in the Graphics Performance settings my circle is back. However, its visibility is still controlled by layer 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 00:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7513625#M7474</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2017-11-03T00:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7539567#M7475</link>
      <description>&lt;P&gt;If you are drawing a circular glyph on cursor point, I don't see why a Layer turning off has any affect, I have just tried, I don't see the behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached a image for your reference, btw I have tested both&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;turning&amp;nbsp; off Layer 0 and while it is being current layer&lt;/LI&gt;
&lt;LI&gt;turning off Layer 0 and while it is not being a current layer.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In both the case, I can't reproduce, can you offset the circular glyph from the input computed point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;output.setNewPoint(input.computedPoint() + AcGeVector3d(0.2,0.2,0.0));
        input.drawContext()-&amp;gt;geometry().circle( output.newPoint(), 0.1, AcGeVector3d::kZAxis );&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="GylphOnCursor.JPG" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/425457i0DB5F899E0EA5D5C/image-size/small?v=v2&amp;amp;px=200" role="button" title="GylphOnCursor.JPG" alt="GylphOnCursor.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7539567#M7475</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2017-11-13T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7540548#M7476</link>
      <description>&lt;P&gt;As per your code, I can draw an offset glyph, but it is still controlled by Layer 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer 0 Off" style="width: 410px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/425599iF87D47A56F923CF8/image-dimensions/410x205?v=v2" width="410" height="205" role="button" title="Capture1.png" alt="Layer 0 Off" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Layer 0 Off&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Layer Zero On" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/425598iBC3E64FBBD855EA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.png" alt="Layer Zero On" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Layer Zero On&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I'm not sure what &lt;STRONG&gt;output&lt;/STRONG&gt; is in your code. My &lt;STRONG&gt;output&lt;/STRONG&gt; is a&amp;nbsp;&lt;STRONG&gt;AcEdInputPointMonitorResult&lt;/STRONG&gt;, and doesn't have the same functions as yours?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 20:58:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7540548#M7476</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2017-11-13T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: AcEdInputPointMonitor and Transient Graphics Layer</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7540601#M7477</link>
      <description>&lt;P&gt;I have found the culprit! Prior to my circle drawing I have this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcColorSettings acs;
if (acedGetCurrentColors(&amp;amp;acs))
{
    unsigned char a,r,g,b;
    DWORD dwIn = acs.dwModelCrossHairColor;

    a = (dwIn &amp;gt;&amp;gt; 24);
    r = (dwIn &amp;gt;&amp;gt; 16) &amp;amp; 255;
    g = (dwIn &amp;gt;&amp;gt; 8) &amp;amp; 255;
    b = (dwIn &amp;amp; 255);

    AcCmEntityColor cm(r, g, b);
    input.drawContext()-&amp;gt;subEntityTraits().setTrueColor(cm);
}&lt;/PRE&gt;
&lt;P&gt;I was attempting to use the crosshair colour as my graphics colour, thinking this would ensure visibility whatever the colour scheme. However, it seems like AutoCAD handles that automatically with some sort of XORing. Setting the colour seems to introduce the Layer 0 dependency, if I leave it out the graphics always show!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 21:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acedinputpointmonitor-and-transient-graphics-layer/m-p/7540601#M7477</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2017-11-13T21:17:44Z</dc:date>
    </item>
  </channel>
</rss>

