<?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: Insert Block into Another Open Drawing in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4584639#M47165</link>
    <description>Very strange, I sq it this morning,&lt;BR /&gt;well then see PM</description>
    <pubDate>Fri, 01 Nov 2013 16:27:51 GMT</pubDate>
    <dc:creator>Hallex</dc:creator>
    <dc:date>2013-11-01T16:27:51Z</dc:date>
    <item>
      <title>Insert Block into Another Open Drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4576983#M47161</link>
      <description>&lt;P&gt;I would like to be able to collect information from a drawing via a sub-form and then insert a block with attributes (populated with collected info) into another open drawing.&amp;nbsp; The insert operation would be launched from a button on my sub form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the code below I attempted a test to simply&amp;nbsp;select a point from another open drawing but was not successful.&amp;nbsp; However, once I closed both forms the target drawing file is activated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.Hide()
        Dim docMgr As DocumentCollection = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
        Dim i As Integer = 0
        For Each doc As Document In docMgr
            Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog(doc.Name)
            If i = 1 Then
                Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.DocumentActivationEnabled = True
                Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = doc

                Dim ed As Editor = AcApp.Application.DocumentManager.MdiActiveDocument.Editor
                Dim dwg As Database = ed.Document.Database

                Dim prPointOptions As PromptPointOptions = New PromptPointOptions(ControlChars.NewLine &amp;amp; "pick")
                Dim prPointRes As PromptPointResult

                prPointOptions.AllowNone = True
                prPointRes = ed.GetPoint(prPointOptions)

                If prPointRes.Status = Autodesk.AutoCAD.EditorInput.PromptStatus.OK Then
                    MsgBox(prPointRes.Value.X.ToString &amp;amp; " - " &amp;amp; prPointRes.Value.Y.ToString)
                End If
            End If
            i = i + 1
        Next
        Me.Show()
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 19:09:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4576983#M47161</guid>
      <dc:creator>ChrisPicklesimer</dc:creator>
      <dc:date>2013-10-30T19:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block into Another Open Drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4581181#M47162</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;try attached project&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 20:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4581181#M47162</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2013-10-31T20:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block into Another Open Drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4584155#M47163</link>
      <description>&lt;P&gt;Hallex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I am missing something but I don't see an attached project.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 13:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4584155#M47163</guid>
      <dc:creator>ChrisPicklesimer</dc:creator>
      <dc:date>2013-11-01T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block into Another Open Drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4584639#M47165</link>
      <description>Very strange, I sq it this morning,&lt;BR /&gt;well then see PM</description>
      <pubDate>Fri, 01 Nov 2013 16:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4584639#M47165</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2013-11-01T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block into Another Open Drawing</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4585905#M47166</link>
      <description>See PM,&lt;BR /&gt;Cheers</description>
      <pubDate>Sat, 02 Nov 2013 09:01:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-into-another-open-drawing/m-p/4585905#M47166</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2013-11-02T09:01:53Z</dc:date>
    </item>
  </channel>
</rss>

