<?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: MDI Active Document isActive = False in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181931#M25120</link>
    <description>&lt;P&gt;It's going to be difficult to help without knowing what's going on in your zc and Zw classes.&lt;/P&gt;&lt;P&gt;Is this run from a command with CommandFlags.Session?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 10:11:55 GMT</pubDate>
    <dc:creator>Paulio</dc:creator>
    <dc:date>2018-08-07T10:11:55Z</dc:date>
    <item>
      <title>MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8178477#M25117</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am developing a code that opens a dwg file,draw something and then close it&lt;/P&gt;&lt;P&gt;then i need to draw something on Active MDI (which was the active before I open the file) but it's IsActive Variable is not set to true?&lt;/P&gt;&lt;P&gt;How can I fix this&lt;/P&gt;</description>
      <pubDate>Sun, 05 Aug 2018 16:28:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8178477#M25117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-05T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181582#M25118</link>
      <description>&lt;P&gt;Could you provide some code showing what you have so far?&lt;/P&gt;&lt;P&gt;It might be easier to help if we can see what you're doing...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 07:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181582#M25118</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T07:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181898#M25119</link>
      <description>&lt;P&gt;zcBlockDoc = zcDocMngr.Open(BlockPath, True)&lt;/P&gt;&lt;P&gt;zcDocMngr.MdiActiveDocument = zcBlockDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With zcBlockDoc&lt;BR /&gt;.Database.SaveAs(_RandomName, DwgVersion.Current) ', False)&lt;BR /&gt;.CloseAndDiscard()&lt;BR /&gt;End With&lt;BR /&gt;zcBlockDoc.Dispose()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ZwSoft.ZwCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = zcOriginalDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======================================================================================&lt;/P&gt;&lt;P&gt;This is a snap from the code (it's a long one) ...I need to set the MDIActiveDocument to another file and activate it as in debug mode the property IsActive of &lt;SPAN&gt;MDIActiveDocument&amp;nbsp;is set to flase&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 09:55:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181898#M25119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181931#M25120</link>
      <description>&lt;P&gt;It's going to be difficult to help without knowing what's going on in your zc and Zw classes.&lt;/P&gt;&lt;P&gt;Is this run from a command with CommandFlags.Session?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181931#M25120</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T10:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181954#M25121</link>
      <description>&lt;P&gt;yes I did that&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;CommandMethod("SMR", CommandFlags.Session)&amp;gt;&lt;BR /&gt;Public Sub SmartInsert()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...Code Mentioned above&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:24:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8181954#M25121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182049#M25122</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Friend zcOriginalDoc As Document = Application.DocumentManager.MdiActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CommandMethod("SMR", CommandFlags.Session)&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub SmartInsert()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.SetSystemVariable("SDI", 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.SetSystemVariable("attdia", 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.SetSystemVariable("cmdecho", 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim OpenDwgFileDialog As New System.Windows.Forms.OpenFileDialog()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With OpenDwgFileDialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .InitialDirectory = EdrivePath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Filter = "E-drive Block Files |*.Dwg"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Title = "Select an E-drive Block File....."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .FileName = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .RestoreDirectory = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If OpenDwgFileDialog.ShowDialog = System.Windows.Forms.DialogResult.OK Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullEdriveFileName = OpenDwgFileDialog.FileName.ToUpper&lt;/P&gt;&lt;P&gt;zcBlockDoc = zcDocMngr.Open(FullEdriveFileName, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zcBlockDoc = ZwSoft.ZwCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenDwgFileDialog.Dispose()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we perfume some operations on the file and close it and set the MDI Active document back to the original file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With zcBlockDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Database.SaveAs(_RandomName, DwgVersion.Current) ', False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .CloseAndDiscard()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zcBlockDoc.Dispose()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZwSoft.ZwCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = zcOriginalDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem appears when trying to insert the zcBlockDoc document as a block in the zcOriginalDoc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the blow code as the .net environment always finds the zcOriginalDoc Not active&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim zcInsPntRes As PromptPointResult&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim zcInsPntOpts As PromptPointOptions = New PromptPointOptions("")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With zcInsPntOpts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .UseBasePoint = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Message = vbCrLf &amp;amp; "Specify the insertion point for block :"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;zcInsPntRes = zcOriginalDoc.Editor.GetPoint(zcInsPntOpts)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:11:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182049#M25122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182063#M25123</link>
      <description>&lt;P&gt;So you're trying to insert a drawing as a block? If that's the case then there are almost certainly examples of how to do that on this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm missing something and you can't use those other methods for whatever reason, then these two lines look a bit suspect to me:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zcBlockDoc = zcDocMngr.Open(FullEdriveFileName, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zcBlockDoc = ZwSoft.ZwCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182063#M25123</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T11:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182163#M25124</link>
      <description>&lt;P&gt;This line I am using to open the block file to do some operations on it&lt;/P&gt;&lt;P&gt;zcBlockDoc = zcDocMngr.Open(FullEdriveFileName, True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;here I am just setting the block file to be the current active document&lt;/P&gt;&lt;P&gt;zcBlockDoc = ZwSoft.ZwCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocumen&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182163#M25124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T12:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182168#M25125</link>
      <description>&lt;P&gt;Ok after closing the block file&lt;/P&gt;&lt;P&gt;I need to set the MDIActivedocument to be the original file.. how?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182168#M25125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182227#M25126</link>
      <description>&lt;P&gt;Sorry, I'm not really understanding the problem. If you have a drawing open and you then open another, when you close that other drawing, the original one becomes current automatically, no?&lt;/P&gt;&lt;P&gt;Can you not just get the activedocument again after closing the one you opened rather than storing it up front and trying to reuse that?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:30:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182227#M25126</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T12:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182266#M25127</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry, I'm not really understanding the problem. If you have a drawing open and you then open another, when you close that other drawing, the original one becomes current automatically, no?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yes this is the problem the original drawing doesn't become the current automatically...I wish to do that and then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;get a point to insert the block from original drawing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182266#M25127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182290#M25128</link>
      <description>&lt;P&gt;So what do you get&amp;nbsp;if you try to get the active document right before you try to get the point? Are you saying that the activedocument is null?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:49:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182290#M25128</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182320#M25129</link>
      <description>&lt;P&gt;einvalid input&lt;/P&gt;&lt;P&gt;.EditorInput.PromptEditorOptions.InitGet()&lt;BR /&gt;.EditorInput.PromptPointOptions.DoIt()&lt;BR /&gt;.EditorInput.Editor.DoPrompt(PromptOptions opt)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182320#M25129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T13:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182345#M25130</link>
      <description>&lt;P&gt;Sorry, I meant what does the call to MDIActiveDocument give you back?&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. Document doc = Application.DocumentManager.MDIActiveDocument.&lt;/P&gt;&lt;P&gt;What is doc at this point? Null?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:09:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182345#M25130</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T13:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182404#M25131</link>
      <description>&lt;P&gt;No it's not null...it's the document but I still can't get a point on it as it IaActive property is false?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182404#M25131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182427#M25132</link>
      <description>&lt;P&gt;I need to reset the original document to active?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182427#M25132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T13:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182653#M25133</link>
      <description>&lt;P&gt;OK, so you're saying this line:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;zcInsPntRes = zcOriginalDoc.Editor.GetPoint(zcInsPntOpts)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is failing, yes?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Forgive me if I'm repeating myself, but have you tried&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;zcInsPntRes = Application.DocumentManager.MDIActiveDocument.Editor.GetPoint(zcInsPntOpts)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 14:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182653#M25133</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182704#M25134</link>
      <description>&lt;P&gt;yes I have tried this&lt;/P&gt;&lt;DIV class="lia-message-body lia-tooltip-trigger"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&lt;SPAN&gt;zcInsPntRes = Application.DocumentManager.MDIActiveDocument.Editor.GetPoint(zcInsPntOpts)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="custom-add-tag"&gt;&amp;nbsp;and It's Also failing&lt;/DIV&gt;&lt;DIV class="custom-add-tag"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Aug 2018 14:53:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182704#M25134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: MDI Active Document isActive = False</title>
      <link>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182804#M25135</link>
      <description>&lt;P&gt;This works for me. It opens a drawing, saves it out to a different name and then asks the user to specify a point.&lt;/P&gt;&lt;PRE&gt;        [CommandMethod("TestMethod", CommandFlags.Session)]
        public void TestMethod()
        {
            // Open a file
            Document newDoc = Application.DocumentManager.Open(@"C:\Temp\testDrawing.dwg", false, string.Empty);
            newDoc.Database.SaveAs(@"C:\Temp\testDrawingRenamed.dwg", Autodesk.AutoCAD.DatabaseServices.DwgVersion.Current);
            newDoc.CloseAndDiscard();
            PromptPointOptions pOpts = new PromptPointOptions(string.Empty);
            pOpts.UseBasePoint = false;
            pOpts.Message = "\nSpecify the insertion point for the block :";
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            PromptPointResult res = ed.GetPoint(pOpts);
            ed.WriteMessage($"\n{res.Value.X},{res.Value.Y}");
        }&lt;/PRE&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Result.PNG" style="width: 409px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/532094iA05C79A88DBD8478/image-size/large?v=v2&amp;amp;px=999" role="button" title="Result.PNG" alt="Result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:21:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mdi-active-document-isactive-false/m-p/8182804#M25135</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2018-08-07T15:21:59Z</dc:date>
    </item>
  </channel>
</rss>

