<?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: Utilizing SelectionSet on non-opened drawings in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3604244#M53540</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just learned something, thank you for the tip! (even my pessimistic feeling if that works really save raises up, but I will test).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx, - alfred -&lt;/P&gt;</description>
    <pubDate>Sun, 02 Sep 2012 08:23:37 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2012-09-02T08:23:37Z</dc:date>
    <item>
      <title>Utilizing SelectionSet on non-opened drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3602162#M53536</link>
      <description>&lt;P&gt;Hi, I am trying to create a function or class can be used with the&amp;nbsp; MdiActiveDocument and also with the external Database. In order words the function or class should be able to access current Document and also non-opened Databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My difficulty is accessing the non-opened drawings and utilizing the SelectionSet to select blocks with &amp;nbsp;SelectionFilter like I could do with a MdiActiveDocument.&lt;/P&gt;&lt;P&gt;I would like to know if what I am trying to do is even possible, or would I have physically open the drawing to have the ability to utilize SelectionSet and filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jay&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 20:02:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3602162#M53536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T20:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Utilizing SelectionSet on non-opened drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3603316#M53537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I would like to know if what I am trying to do is even possible&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;No, as the SelectionSet is part if the Editor-Namespace it's only available for drawings in the editor.&lt;/P&gt;&lt;P&gt;To get the same functionality in drawings not opened in the editor you have to scan through the blocktables (ModelSpace and Layouts).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One help to that is that the ObjectID allready knows the DXF-Name of the object so it is not necessary to open each object (via transaction or via open). So to scan for Lines you can use&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp; if myObjectId.ObjectClass.DxfName = "LINE" then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other option to look for BlockReferences is to find the BlockTableRecord with the name you look for and then use&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp; tBlockTabRec.GetBlockReferenceIds(directOnly As Boolean, forceValidity As Boolean)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;to get the ObjectID's from all references inserted in the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- .alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:41:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3603316#M53537</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-08-31T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Utilizing SelectionSet on non-opened drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3603424#M53538</link>
      <description>&lt;P&gt;Try setting the HostApplicationServices.WorkingDatabase property to the database you want to do the filtered selection on just before you call GetSelection), and immediately set that same property to the active document's database as soon as GetSelection() returns.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 16:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3603424#M53538</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-08-31T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Utilizing SelectionSet on non-opened drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3604214#M53539</link>
      <description>&lt;P&gt;Thank you DiningPhilosopher and Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended useing&amp;nbsp;something very similar to your proposal:&amp;nbsp; &lt;FONT color="#800000"&gt;Database.CurrentSpaceId&lt;/FONT&gt;. Then just iterate all block in that space for the block name. That worked very well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you both very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jay&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2012 04:08:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3604214#M53539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-02T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Utilizing SelectionSet on non-opened drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3604244#M53540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just learned something, thank you for the tip! (even my pessimistic feeling if that works really save raises up, but I will test).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx, - alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2012 08:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/utilizing-selectionset-on-non-opened-drawings/m-p/3604244#M53540</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-09-02T08:23:37Z</dc:date>
    </item>
  </channel>
</rss>

