<?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: How can we switch between the start and document's tab in ACAD 2016 in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6926186#M8730</link>
    <description>&lt;P&gt;I am using this code within a command function that is registered with &lt;FONT face="courier new,courier"&gt;ACRX_CMD_MODAL|ACRX_CMD_SESSION&lt;/FONT&gt;, so that it runs in application context:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcApDocument *pDoc=&amp;lt;your document&amp;gt;;
acDocManager-&amp;gt;activateDocument(pDoc);&lt;/PRE&gt;
&lt;P&gt;Works just fine.&lt;/P&gt;
&lt;P&gt;I think you rather have problems if you are &lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; in application context because your current document will be locked than. In this case I use acDocManager-&amp;gt;sendStringToExecute() to call my command.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 11:34:23 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2017-03-07T11:34:23Z</dc:date>
    <item>
      <title>How can we switch between the start and document's tab in ACAD 2016</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6883039#M8727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have start tab and a document tab,start tab is active and now I want to activate tab of the first document opened in &amp;nbsp;the AutoCAD.&lt;/P&gt;&lt;P&gt;I have tried using - iterate documents and active doc ,it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using setcurrentdocument,it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any api in the Object arx &amp;nbsp;of 2016 which I can use to activate the tab of document &amp;nbsp;or switch to the document tab from start tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or move to document tab from the start tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:21:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6883039#M8727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T16:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can we switch between the start and document's tab in ACAD 2016</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6890637#M8728</link>
      <description>&lt;P&gt;IMHO AcApDocWindowManager and AcApDocWindow::activate can help you.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 15:49:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6890637#M8728</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-02-20T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can we switch between the start and document's tab in ACAD 2016</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6918591#M8729</link>
      <description>&lt;P&gt;Thanks for the reply ,yes &amp;nbsp;your reply can work but I wanted to switch the tab in application context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways I used activate document api toi switch the tab in document activated event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:32:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6918591#M8729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-03T13:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can we switch between the start and document's tab in ACAD 2016</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6926186#M8730</link>
      <description>&lt;P&gt;I am using this code within a command function that is registered with &lt;FONT face="courier new,courier"&gt;ACRX_CMD_MODAL|ACRX_CMD_SESSION&lt;/FONT&gt;, so that it runs in application context:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcApDocument *pDoc=&amp;lt;your document&amp;gt;;
acDocManager-&amp;gt;activateDocument(pDoc);&lt;/PRE&gt;
&lt;P&gt;Works just fine.&lt;/P&gt;
&lt;P&gt;I think you rather have problems if you are &lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; in application context because your current document will be locked than. In this case I use acDocManager-&amp;gt;sendStringToExecute() to call my command.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 11:34:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/6926186#M8730</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-03-07T11:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can we switch between the start and document's tab in ACAD 2016</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/7128555#M8731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am so sorry replying so late for this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with a command registered as&amp;nbsp;ACRX_CMD_MODAL | ACRX_CMD_SESSION ,it activates the document but does not show document in the viewer.&lt;/P&gt;&lt;P&gt;It shows start tab page only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion or help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 08:19:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-we-switch-between-the-start-and-document-s-tab-in-acad/m-p/7128555#M8731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-05T08:19:54Z</dc:date>
    </item>
  </channel>
</rss>

