<?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: viewport specific graphics in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5680619#M11070</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No idea how to do that, but here is a suggestion. Get value of the&amp;nbsp;&lt;EM&gt;CVPORT&amp;nbsp;&lt;/EM&gt;variable to get the current &lt;EM&gt;AcDbViewportTableRecord&lt;/EM&gt; and compare to the viewport of your &lt;EM&gt;AcGiViewportDraw&lt;/EM&gt;. But I guess that in model space&amp;nbsp;&lt;EM&gt;AcGiViewportDraw::viewportObjectId&lt;/EM&gt; will be null...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cvport==1 &amp;amp;&amp;amp; tilemode==0 =&amp;gt; PSPACE&lt;BR /&gt;cvport&amp;gt;1 &amp;amp;&amp;amp; tilemode==0 =&amp;gt; MSPACE (PSPACE view with an activated floating MSPACE viewport)&lt;BR /&gt;cvport&amp;gt;1 &amp;amp;&amp;amp; tilemode==1 =&amp;gt; MSPACE&lt;BR /&gt;cvport==1 &amp;amp;&amp;amp; tilemode==1 =&amp;gt; This is not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach is to "link" your entity to a certain view. Per example, your entity is only drawn when the view direction is codirectionnal to your entity's normal vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2015 08:51:34 GMT</pubDate>
    <dc:creator>maisoui</dc:creator>
    <dc:date>2015-06-17T08:51:34Z</dc:date>
    <item>
      <title>viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678648#M11067</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to draw some autocad entities only on the active viewport while there are multiple viewports in&amp;nbsp;modelspace. I don't want these entities to be shown on&amp;nbsp;the other viewports&amp;nbsp;which are not active. How could I do that ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;AcGiViewportDraw.geometry() to draw these entities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreicated. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 06:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678648#M11067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T06:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678785#M11068</link>
      <description>&lt;P&gt;Here you get the current viewport&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/objectarx/current-viewport/td-p/1658244"&gt;http://forums.autodesk.com/t5/objectarx/current-viewport/td-p/1658244&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;with subViewportDraw you can draw the entities you want.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678785#M11068</guid>
      <dc:creator>ynapeu</dc:creator>
      <dc:date>2015-06-16T09:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678897#M11069</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is, how do I connect&amp;nbsp;&lt;SPAN&gt;subViewportDraw's AcGiViewportDraw object with the current viewport ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 11:23:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5678897#M11069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5680619#M11070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No idea how to do that, but here is a suggestion. Get value of the&amp;nbsp;&lt;EM&gt;CVPORT&amp;nbsp;&lt;/EM&gt;variable to get the current &lt;EM&gt;AcDbViewportTableRecord&lt;/EM&gt; and compare to the viewport of your &lt;EM&gt;AcGiViewportDraw&lt;/EM&gt;. But I guess that in model space&amp;nbsp;&lt;EM&gt;AcGiViewportDraw::viewportObjectId&lt;/EM&gt; will be null...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cvport==1 &amp;amp;&amp;amp; tilemode==0 =&amp;gt; PSPACE&lt;BR /&gt;cvport&amp;gt;1 &amp;amp;&amp;amp; tilemode==0 =&amp;gt; MSPACE (PSPACE view with an activated floating MSPACE viewport)&lt;BR /&gt;cvport&amp;gt;1 &amp;amp;&amp;amp; tilemode==1 =&amp;gt; MSPACE&lt;BR /&gt;cvport==1 &amp;amp;&amp;amp; tilemode==1 =&amp;gt; This is not valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach is to "link" your entity to a certain view. Per example, your entity is only drawn when the view direction is codirectionnal to your entity's normal vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 08:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5680619#M11070</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2015-06-17T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5680662#M11071</link>
      <description>&lt;P&gt;&lt;FONT color="#880000" face="Consolas" size="2"&gt;not tested only an idea.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;subViewportDraw&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcGiViewportDraw&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt; *&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pV&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;assertReadEnabled&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;name_activ&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;acedVports2VportTableRecords&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcDbViewportTable&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;* &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTbl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;acdbHostApplicationServices&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;()-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;workingDatabase&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;())-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;getSymbolTable&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTbl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcDb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;::&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;kForRead&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcDbViewportTableIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTbl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;newIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;long&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;iview_number&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;iview_number&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pV&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;viewport&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;().&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;acadWindowId&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;for&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;start&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();!&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;done&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(); &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;step&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;())&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcDbViewportTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; * &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRecIterator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;getRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;AcDb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;::&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;kForRead&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;getName&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;name_activ&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;name_activ&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; == &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;&lt;FONT color="#a000a0" size="2" face="Consolas"&gt;_T&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;&lt;FONT color="#a31515" size="2" face="Consolas"&gt;"*Active"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;number&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;() == &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;iview_number&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;// only draw here&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;&lt;FONT color="#0000ff" size="2" face="Consolas"&gt;else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;&lt;FONT color="#008000" size="2" face="Consolas"&gt;// don't draw in this viewport&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTblRec&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;close&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;&lt;FONT color="#000080" size="2" face="Consolas"&gt;pViewportTbl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;-&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;&lt;FONT color="#880000" size="2" face="Consolas"&gt;close&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 09:33:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5680662#M11071</guid>
      <dc:creator>ynapeu</dc:creator>
      <dc:date>2015-06-17T09:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: viewport specific graphics</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5681134#M11072</link>
      <description>&lt;P&gt;Thanks a lot for your replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pViewportTblRec-&amp;gt;number() returns 0 during regen. So, I just compared CVPORT variable to iview_number and the is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;acedGetVar (_T("CVPORT"), &amp;amp;rb);

int iview_number=pV-&amp;gt;viewport().acadWindowId();
if (iview_number == rb.resval.rint) {
//    Only draw here
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:25:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/viewport-specific-graphics/m-p/5681134#M11072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T15:25:06Z</dc:date>
    </item>
  </channel>
</rss>

