<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327014#M91628</link>
    <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your help&lt;BR /&gt;
I use the first method&lt;BR /&gt;
&lt;BR /&gt;
With Lisp i use group code -4, but with VBA i don't know how to do it&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; a écrit dans le message :&lt;BR /&gt;
ef307ff.0@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Include multiple fields and they will automatically be AND'ed together.&lt;BR /&gt;
For&lt;BR /&gt;
&amp;gt; example, to gather all block inserts named "MYBLOCK" on layer "MYLAYER":&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim fType(2) As Integer, fData(2)  As Integer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; fType(0) = 8: fData(0) = "MYLAYER"&lt;BR /&gt;
&amp;gt; fType(1) = 0: fData(1) = "INSERT"&lt;BR /&gt;
&amp;gt; fType(2) = 2: fData(2) = "MYBLOCK"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You can also use group code -4 along with OR and AND to construct more&lt;BR /&gt;
&amp;gt; complex filters. Look up selection set filters in the online LISP help for&lt;BR /&gt;
&amp;gt; detailed information.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef307ff.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Hello&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; In a SelectionSet, i know select all objects in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; In an other selectionSet, i know select all blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; But i don't know select in a SelectionSet all the blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt; &amp;gt; AND are ALSO in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; object.Select  Mode[, Point1][, Point2][, FilterType][, FilterData]&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; How define the FilterType, and FilterData to do that&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks for your help&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Bernard&lt;BR /&gt;
&amp;gt; &amp;gt; France&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/BE.FLAVI&gt;&lt;/FRANKO&gt;</description>
    <pubDate>Fri, 04 Aug 2000 13:42:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-08-04T13:42:27Z</dc:date>
    <item>
      <title>SelectionSet</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327012#M91626</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
In a SelectionSet, i know select all objects in the layer "MYLAYER"&lt;BR /&gt;
&lt;BR /&gt;
In an other selectionSet, i know select all blocks named "MYBLOCK"&lt;BR /&gt;
&lt;BR /&gt;
But i don't know select in a SelectionSet all the blocks named "MYBLOCK"&lt;BR /&gt;
AND are ALSO in the layer "MYLAYER"&lt;BR /&gt;
&lt;BR /&gt;
object.Select  Mode[, Point1][, Point2][, FilterType][, FilterData]&lt;BR /&gt;
&lt;BR /&gt;
How define the FilterType, and FilterData to do that&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
France</description>
      <pubDate>Mon, 31 Jul 2000 21:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327012#M91626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-07-31T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: SelectionSet</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327013#M91627</link>
      <description>Include multiple fields and they will automatically be AND'ed together. For&lt;BR /&gt;
example, to gather all block inserts named "MYBLOCK" on layer "MYLAYER":&lt;BR /&gt;
&lt;BR /&gt;
Dim fType(2) As Integer, fData(2)  As Integer&lt;BR /&gt;
&lt;BR /&gt;
fType(0) = 8: fData(0) = "MYLAYER"&lt;BR /&gt;
fType(1) = 0: fData(1) = "INSERT"&lt;BR /&gt;
fType(2) = 2: fData(2) = "MYBLOCK"&lt;BR /&gt;
&lt;BR /&gt;
You can also use group code -4 along with OR and AND to construct more&lt;BR /&gt;
complex filters. Look up selection set filters in the online LISP help for&lt;BR /&gt;
detailed information.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
news:ef307ff.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hello&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In a SelectionSet, i know select all objects in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In an other selectionSet, i know select all blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; But i don't know select in a SelectionSet all the blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt; AND are ALSO in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; object.Select  Mode[, Point1][, Point2][, FilterType][, FilterData]&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; How define the FilterType, and FilterData to do that&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for your help&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Bernard&lt;BR /&gt;
&amp;gt; France&lt;BR /&gt;
&amp;gt;&lt;/BE.FLAVI&gt;</description>
      <pubDate>Mon, 31 Jul 2000 21:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327013#M91627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-07-31T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327014#M91628</link>
      <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your help&lt;BR /&gt;
I use the first method&lt;BR /&gt;
&lt;BR /&gt;
With Lisp i use group code -4, but with VBA i don't know how to do it&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; a écrit dans le message :&lt;BR /&gt;
ef307ff.0@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Include multiple fields and they will automatically be AND'ed together.&lt;BR /&gt;
For&lt;BR /&gt;
&amp;gt; example, to gather all block inserts named "MYBLOCK" on layer "MYLAYER":&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim fType(2) As Integer, fData(2)  As Integer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; fType(0) = 8: fData(0) = "MYLAYER"&lt;BR /&gt;
&amp;gt; fType(1) = 0: fData(1) = "INSERT"&lt;BR /&gt;
&amp;gt; fType(2) = 2: fData(2) = "MYBLOCK"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You can also use group code -4 along with OR and AND to construct more&lt;BR /&gt;
&amp;gt; complex filters. Look up selection set filters in the online LISP help for&lt;BR /&gt;
&amp;gt; detailed information.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef307ff.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Hello&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; In a SelectionSet, i know select all objects in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; In an other selectionSet, i know select all blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; But i don't know select in a SelectionSet all the blocks named "MYBLOCK"&lt;BR /&gt;
&amp;gt; &amp;gt; AND are ALSO in the layer "MYLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; object.Select  Mode[, Point1][, Point2][, FilterType][, FilterData]&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; How define the FilterType, and FilterData to do that&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks for your help&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Bernard&lt;BR /&gt;
&amp;gt; &amp;gt; France&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/BE.FLAVI&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Fri, 04 Aug 2000 13:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327014#M91628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-04T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327015#M91629</link>
      <description>Use it almost exactly the same way:&lt;BR /&gt;
&lt;BR /&gt;
fType(0) = 8: fData(0) = "MYLAYER"&lt;BR /&gt;
fType(1) = -4: fData(1) = "&lt;OR&gt;
fType(2) = -4: fData(2) = "&lt;AND&gt;
fType(3) = 0: fData(3) = "INSERT"&lt;BR /&gt;
fType(4) = 2: fData(4) = "MYBLOCK"&lt;BR /&gt;
fType(5) = -4: fData(5) = "AND&amp;gt;"&lt;BR /&gt;
fType(6) = 0: fData(6) = "LINE"&lt;BR /&gt;
fType(7) = -4: fData(7) = "OR&amp;gt;"&lt;BR /&gt;
&lt;BR /&gt;
There's a routine named BuildFilter in the VB section of my web site that&lt;BR /&gt;
might make this a little easier, just pass it two variants and your filter&lt;BR /&gt;
values like so:&lt;BR /&gt;
BuildFilter fType, fData, 8, "MYLAYER", -4, "&lt;OR&gt;
    "&lt;AND&gt;", _&lt;BR /&gt;
    0, "LINE", -4, "OR&amp;gt;"&lt;BR /&gt;
&lt;BR /&gt;
Then you can use the variants (now filled with arrays) for your filter. Hope&lt;BR /&gt;
this helps.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
news:ef307ff.1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Frank&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thank you very much for your help&lt;BR /&gt;
&amp;gt; I use the first method&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; With Lisp i use group code -4, but with VBA i don't know how to do it&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Bernard&lt;/BE.FLAVI&gt;&lt;/AND&gt;&lt;/OR&gt;&lt;/AND&gt;&lt;/OR&gt;</description>
      <pubDate>Fri, 04 Aug 2000 13:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327015#M91629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-04T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327016#M91630</link>
      <description>Thanks Frank&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; a écrit dans le message :&lt;BR /&gt;
ef307ff.2@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Use it almost exactly the same way:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; fType(0) = 8: fData(0) = "MYLAYER"&lt;BR /&gt;
&amp;gt; fType(1) = -4: fData(1) = "&lt;OR&gt;
&amp;gt; fType(2) = -4: fData(2) = "&lt;AND&gt;
&amp;gt; fType(3) = 0: fData(3) = "INSERT"&lt;BR /&gt;
&amp;gt; fType(4) = 2: fData(4) = "MYBLOCK"&lt;BR /&gt;
&amp;gt; fType(5) = -4: fData(5) = "AND&amp;gt;"&lt;BR /&gt;
&amp;gt; fType(6) = 0: fData(6) = "LINE"&lt;BR /&gt;
&amp;gt; fType(7) = -4: fData(7) = "OR&amp;gt;"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; There's a routine named BuildFilter in the VB section of my web site that&lt;BR /&gt;
&amp;gt; might make this a little easier, just pass it two variants and your filter&lt;BR /&gt;
&amp;gt; values like so:&lt;BR /&gt;
&amp;gt; BuildFilter fType, fData, 8, "MYLAYER", -4, "&lt;OR&gt;
&amp;gt;     "&lt;AND&gt;", _&lt;BR /&gt;
&amp;gt;     0, "LINE", -4, "OR&amp;gt;"&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Then you can use the variants (now filled with arrays) for your filter.&lt;BR /&gt;
Hope&lt;BR /&gt;
&amp;gt; this helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
&amp;gt; http://www.acadx.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef307ff.1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Frank&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thank you very much for your help&lt;BR /&gt;
&amp;gt; &amp;gt; I use the first method&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; With Lisp i use group code -4, but with VBA i don't know how to do it&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Bernard&lt;BR /&gt;
&amp;gt;&lt;/BE.FLAVI&gt;&lt;/AND&gt;&lt;/OR&gt;&lt;/AND&gt;&lt;/OR&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Sat, 05 Aug 2000 21:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset/m-p/327016#M91630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-05T21:41:42Z</dc:date>
    </item>
  </channel>
</rss>

