<?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: get names of blocks using wildcard in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661635#M66063</link>
    <description>You can use wildcards in a selection filter.&lt;BR /&gt;
Dim myfilter() As TypedValue = New TypedValue() {New TypedValue(0, "INSERT"), New TypedValue(2, "PAT*")}&lt;BR /&gt;
&lt;BR /&gt;
and you can 'Or' them together to get more than one pattern to match&lt;BR /&gt;
&lt;BR /&gt;
Dim myfilter() As TypedValue = New TypedValue() {New TypedValue(0, "INSERT"), New TypedValue(DxfCode.Operator, "&lt;OR&gt;")}&lt;/OR&gt;</description>
    <pubDate>Tue, 06 Apr 2010 23:06:33 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2010-04-06T23:06:33Z</dc:date>
    <item>
      <title>get names of blocks using wildcard</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661633#M66061</link>
      <description>Hi. Is there any way to get blocks using wildcard character?&lt;BR /&gt;
For example, selection set block name filter X111*01 will return:&lt;BR /&gt;
X111zzz01&lt;BR /&gt;
X111bbb01&lt;BR /&gt;
X111cccccc01&lt;BR /&gt;
&lt;BR /&gt;
Is there any way to do this is vb.net? Thanks...</description>
      <pubDate>Tue, 06 Apr 2010 19:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661633#M66061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-06T19:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: get names of blocks using wildcard</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661634#M66062</link>
      <description>if myString like "X111*01" then &lt;BR /&gt;
...&lt;BR /&gt;
end if</description>
      <pubDate>Tue, 06 Apr 2010 22:16:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661634#M66062</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2010-04-06T22:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: get names of blocks using wildcard</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661635#M66063</link>
      <description>You can use wildcards in a selection filter.&lt;BR /&gt;
Dim myfilter() As TypedValue = New TypedValue() {New TypedValue(0, "INSERT"), New TypedValue(2, "PAT*")}&lt;BR /&gt;
&lt;BR /&gt;
and you can 'Or' them together to get more than one pattern to match&lt;BR /&gt;
&lt;BR /&gt;
Dim myfilter() As TypedValue = New TypedValue() {New TypedValue(0, "INSERT"), New TypedValue(DxfCode.Operator, "&lt;OR&gt;")}&lt;/OR&gt;</description>
      <pubDate>Tue, 06 Apr 2010 23:06:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2661635#M66063</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-04-06T23:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: get names of blocks using wildcard</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2801518#M66064</link>
      <description>&lt;P&gt;Sorry, I was just digging around for a bit of code I remember seeing, and I realized that the text in my post is incomplete.&amp;nbsp; I'm not sure if I did that. or the site, but just in case you still need it, or if anyone else comes here looking for an answer, here is a complete filter definition using Or's and Wildcards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim myfilter() As TypedValue = New TypedValue() {New TypedValue(0, "INSERT"), New TypedValue(DxfCode.Operator, "&amp;lt;or"), New TypedValue(2, "Blk1*"), New TypedValue(2, "Blk2*"), New TypedValue(DxfCode.Operator, "or&amp;gt;")}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Then you can create a new SelectionFilter passing the TypedValue Array to the constructor)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2010 22:12:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-names-of-blocks-using-wildcard/m-p/2801518#M66064</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-10-19T22:12:02Z</dc:date>
    </item>
  </channel>
</rss>

