<?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: Selectionset using filters in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297678#M74133</link>
    <description>Thanku very much</description>
    <pubDate>Tue, 15 Jul 2008 03:53:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-07-15T03:53:36Z</dc:date>
    <item>
      <title>Selectionset using filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297676#M74131</link>
      <description>how to make selection set using filters as we will be doing in auotcad VBA  similary i need to make selection set using  vb.net

Message was edited by: Ramya</description>
      <pubDate>Fri, 11 Jul 2008 10:59:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297676#M74131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-11T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selectionset using filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297677#M74132</link>
      <description>This one looks for blocks on a layer.&lt;BR /&gt;
ed.select...&lt;BR /&gt;
where ed = autodesk.autocad.editor&lt;BR /&gt;
&lt;BR /&gt;
    &lt;COMMANDMETHOD&gt; Public Sub TestSelectionSet()&lt;BR /&gt;
        Using trans As Transaction = db.TransactionManager.StartTransaction&lt;BR /&gt;
            Try&lt;BR /&gt;
                Dim psr As PromptSelectionResult&lt;BR /&gt;
                Dim ss As SelectionSet&lt;BR /&gt;
                Dim oids As ObjectIdCollection&lt;BR /&gt;
                Dim ent As Entity&lt;BR /&gt;
                Dim oid As ObjectId&lt;BR /&gt;
                Dim br As BlockReference&lt;BR /&gt;
                Dim filter(1) As TypedValue&lt;BR /&gt;
                filter(1) = New TypedValue(DxfCode.Start, "INSERT")&lt;BR /&gt;
                filter(0) = New TypedValue(DxfCode.LayerName, "FLOOR 1")&lt;BR /&gt;
                Dim sf As New SelectionFilter(filter)&lt;BR /&gt;
                psr = ed.SelectCrossingWindow(New Point3d(0, 0, 0), New Point3d(4, 4, 0), sf)&lt;BR /&gt;
                ss = psr.Value&lt;BR /&gt;
                If ss.Count &amp;gt; 0 Then&lt;BR /&gt;
                    oids = New ObjectIdCollection(ss.GetObjectIds)&lt;BR /&gt;
                    For Each oid In oids&lt;BR /&gt;
                        ent = oid.GetObject(OpenMode.ForRead)&lt;BR /&gt;
                        If TypeOf ent Is BlockReference Then&lt;BR /&gt;
                            br = CType(ent, BlockReference)&lt;BR /&gt;
                            'Debug.Print(br.Name)&lt;BR /&gt;
                        End If&lt;BR /&gt;
                    Next&lt;BR /&gt;
                End If&lt;BR /&gt;
            Catch ex As System.Exception&lt;BR /&gt;
                MsgBox(ex.ToString)&lt;BR /&gt;
            Finally&lt;BR /&gt;
                trans.Dispose()&lt;BR /&gt;
            End Try&lt;BR /&gt;
        End Using&lt;BR /&gt;
    End Sub&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Mon, 14 Jul 2008 13:16:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297677#M74132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-14T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selectionset using filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297678#M74133</link>
      <description>Thanku very much</description>
      <pubDate>Tue, 15 Jul 2008 03:53:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-using-filters/m-p/2297678#M74133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-15T03:53:36Z</dc:date>
    </item>
  </channel>
</rss>

