<?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: Editor.GetEntity -  but with multiple documents in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013884#M86546</link>
    <description>&lt;P&gt;You have to add the CommandFlags. Session flag to your CommandMethod attribute so that the command runs in the application context. Then you can change the active document after the user picks the first entity to the document that contains the second entity. In order to interact with any document from the application context command you must lock the document.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 14:58:01 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2026-02-11T14:58:01Z</dc:date>
    <item>
      <title>Editor.GetEntity -  but with multiple documents</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013787#M86544</link>
      <description>&lt;P&gt;I need to make a .NET command that allows the user to pick one entity from two documents.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flow:&lt;/P&gt;&lt;P&gt;- User types command name (this is ok, can be done with a &lt;STRONG&gt;[CommandMethod(...)] &lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;- User is prompted to select an entity from the active document (this is ok, with &lt;STRONG&gt;Editor.GetEntity&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- User is prompted to select another entity from &lt;STRONG&gt;another document&lt;/STRONG&gt; that is open (user picks the document and entity - Need help here!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be achieved?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 13:35:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013787#M86544</guid>
      <dc:creator>danielmollerX5W2N</dc:creator>
      <dc:date>2026-02-11T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.GetEntity -  but with multiple documents</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013880#M86545</link>
      <description>&lt;P&gt;One of changes when Acad2015 introduced that broke many existing existing custom AutoCAD code (LISP/VBA/.NET...) was that the active command would be cancelled if the current drawing is changed. I had some code back then that required user to go to other opened drawing to select entity/point and then shift back to continue. The code worked well until Acad2015, and workaround was required and worked out. I wrote about this here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://drive-cad-with-code.blogspot.com/2017/04/asking-user-to-select-entity-in-other.html" target="_blank" rel="noopener"&gt;https://drive-cad-with-code.blogspot.com/2017/04/asking-user-to-select-entity-in-other.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://drive-cad-with-code.blogspot.com/2017/04/asking-user-to-select-entity-in-other_4.html" target="_blank" rel="noopener"&gt;https://drive-cad-with-code.blogspot.com/2017/04/asking-user-to-select-entity-in-other_4.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013880#M86545</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2026-02-11T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.GetEntity -  but with multiple documents</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013884#M86546</link>
      <description>&lt;P&gt;You have to add the CommandFlags. Session flag to your CommandMethod attribute so that the command runs in the application context. Then you can change the active document after the user picks the first entity to the document that contains the second entity. In order to interact with any document from the application context command you must lock the document.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:58:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-getentity-but-with-multiple-documents/m-p/14013884#M86546</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-02-11T14:58:01Z</dc:date>
    </item>
  </channel>
</rss>

