<?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 View DrawingBaseViewCmd in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9763030#M116234</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I keep the DrawingBaseViewCmd visible, to give the user the possibility to directly change drawing view settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Part of ilogic code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;sFileName&lt;/SPAN&gt; = &lt;SPAN&gt;oPartTest&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;PostPrivateEvent&lt;/SPAN&gt;(&lt;SPAN&gt;kFileNameEvent&lt;/SPAN&gt;,
&lt;SPAN&gt;sFileName&lt;/SPAN&gt;)
&lt;SPAN&gt;oTest&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"DrawingBaseViewCmd"&lt;/SPAN&gt;)
&lt;SPAN&gt;oTest&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 09:03:56 GMT</pubDate>
    <dc:creator>Rob987654</dc:creator>
    <dc:date>2020-09-23T09:03:56Z</dc:date>
    <item>
      <title>View DrawingBaseViewCmd</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9763030#M116234</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I keep the DrawingBaseViewCmd visible, to give the user the possibility to directly change drawing view settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Part of ilogic code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;sFileName&lt;/SPAN&gt; = &lt;SPAN&gt;oPartTest&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;PostPrivateEvent&lt;/SPAN&gt;(&lt;SPAN&gt;kFileNameEvent&lt;/SPAN&gt;,
&lt;SPAN&gt;sFileName&lt;/SPAN&gt;)
&lt;SPAN&gt;oTest&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"DrawingBaseViewCmd"&lt;/SPAN&gt;)
&lt;SPAN&gt;oTest&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 09:03:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9763030#M116234</guid>
      <dc:creator>Rob987654</dc:creator>
      <dc:date>2020-09-23T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: View DrawingBaseViewCmd</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9764493#M116253</link>
      <description>&lt;P&gt;hi, does this work or you?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Make a list of the views. For use later&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;knowViews&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;) = &lt;SPAN style="color: #ff0000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;knowViews&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' Create a drawingview&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPartTest&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PostPrivateEvent&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;PrivateEventTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kFileNameEvent&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;sFileName&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTest&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"DrawingBaseViewCmd"&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oTest&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Execute2&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' find the view that was just added and (re)start command&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;knowViews&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Contains&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;) = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Clear&lt;/SPAN&gt;()
        &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Select&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;View&lt;/SPAN&gt;)
        &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"DrawingViewEditCtxCmd"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;()
        &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 20:29:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9764493#M116253</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-09-23T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: View DrawingBaseViewCmd</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9765059#M116264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that ilogic code. It is working perfect!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 06:34:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/view-drawingbaseviewcmd/m-p/9765059#M116264</guid>
      <dc:creator>Rob987654</dc:creator>
      <dc:date>2020-09-24T06:34:28Z</dc:date>
    </item>
  </channel>
</rss>

