<?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: Selection, 3D, R14.01, vba in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301709#M96606</link>
    <description>You cannot select by volume, i.e. specifying a different Z coord for the&lt;BR /&gt;
second point. I'm assuming that some of the objects within your selection&lt;BR /&gt;
area are at a different elevation, and you don't want those selected? I&lt;BR /&gt;
guess one way to do that would be to set your first selection set, then flip&lt;BR /&gt;
the UCS to set a second selection set, and compare the two sets for common&lt;BR /&gt;
objects.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator &amp;amp; Top Gun&lt;BR /&gt;
(remove the not. for e-mail)&lt;BR /&gt;
&lt;BR /&gt;
k.c.kwok &lt;K.C.KWOK&gt; wrote in message&lt;BR /&gt;
news:86kf2s$p3021@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Dear All,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have a simple problem in selectionset.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; How can I select objects between   point1 (100,100,10)    and    point2&lt;BR /&gt;
&amp;gt; (500, 500, 20) by "volume" not by "area"?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I tried but cannot specify the "Z" of the point1 and point2.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The selectionset always includes all objects within the 2D rectangle area.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; All objects within that area, at all depth are included in my&lt;BR /&gt;
selectionset.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Which of the following mode, or any methods,  filters can define a volume&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acSelectionSetAll&lt;BR /&gt;
&amp;gt; acSelectionSetCrossing&lt;BR /&gt;
&amp;gt; acSelectionSetCrossingPolygon&lt;BR /&gt;
&amp;gt; acSelectionSetFence&lt;BR /&gt;
&amp;gt; acSelectionSetLast&lt;BR /&gt;
&amp;gt; acSelectionSetPrevious&lt;BR /&gt;
&amp;gt; acSelectionSetWindow&lt;BR /&gt;
&amp;gt; acSelectionSetWindowPolygon&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks in Advance.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Kin&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/K.C.KWOK&gt;</description>
    <pubDate>Tue, 25 Jan 2000 16:20:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-01-25T16:20:12Z</dc:date>
    <item>
      <title>Selection, 3D, R14.01, vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301708#M96605</link>
      <description>Dear All,&lt;BR /&gt;
&lt;BR /&gt;
I have a simple problem in selectionset.&lt;BR /&gt;
&lt;BR /&gt;
How can I select objects between   point1 (100,100,10)    and    point2&lt;BR /&gt;
(500, 500, 20) by "volume" not by "area"?&lt;BR /&gt;
&lt;BR /&gt;
I tried but cannot specify the "Z" of the point1 and point2.&lt;BR /&gt;
&lt;BR /&gt;
The selectionset always includes all objects within the 2D rectangle area.&lt;BR /&gt;
&lt;BR /&gt;
All objects within that area, at all depth are included in my selectionset.&lt;BR /&gt;
&lt;BR /&gt;
Which of the following mode, or any methods,  filters can define a volume&lt;BR /&gt;
&lt;BR /&gt;
acSelectionSetAll&lt;BR /&gt;
acSelectionSetCrossing&lt;BR /&gt;
acSelectionSetCrossingPolygon&lt;BR /&gt;
acSelectionSetFence&lt;BR /&gt;
acSelectionSetLast&lt;BR /&gt;
acSelectionSetPrevious&lt;BR /&gt;
acSelectionSetWindow&lt;BR /&gt;
acSelectionSetWindowPolygon&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance.&lt;BR /&gt;
&lt;BR /&gt;
Kin</description>
      <pubDate>Tue, 25 Jan 2000 15:21:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301708#M96605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-25T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection, 3D, R14.01, vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301709#M96606</link>
      <description>You cannot select by volume, i.e. specifying a different Z coord for the&lt;BR /&gt;
second point. I'm assuming that some of the objects within your selection&lt;BR /&gt;
area are at a different elevation, and you don't want those selected? I&lt;BR /&gt;
guess one way to do that would be to set your first selection set, then flip&lt;BR /&gt;
the UCS to set a second selection set, and compare the two sets for common&lt;BR /&gt;
objects.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
R. Robert Bell, MCSE&lt;BR /&gt;
Network Administrator &amp;amp; Top Gun&lt;BR /&gt;
(remove the not. for e-mail)&lt;BR /&gt;
&lt;BR /&gt;
k.c.kwok &lt;K.C.KWOK&gt; wrote in message&lt;BR /&gt;
news:86kf2s$p3021@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Dear All,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have a simple problem in selectionset.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; How can I select objects between   point1 (100,100,10)    and    point2&lt;BR /&gt;
&amp;gt; (500, 500, 20) by "volume" not by "area"?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I tried but cannot specify the "Z" of the point1 and point2.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The selectionset always includes all objects within the 2D rectangle area.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; All objects within that area, at all depth are included in my&lt;BR /&gt;
selectionset.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Which of the following mode, or any methods,  filters can define a volume&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; acSelectionSetAll&lt;BR /&gt;
&amp;gt; acSelectionSetCrossing&lt;BR /&gt;
&amp;gt; acSelectionSetCrossingPolygon&lt;BR /&gt;
&amp;gt; acSelectionSetFence&lt;BR /&gt;
&amp;gt; acSelectionSetLast&lt;BR /&gt;
&amp;gt; acSelectionSetPrevious&lt;BR /&gt;
&amp;gt; acSelectionSetWindow&lt;BR /&gt;
&amp;gt; acSelectionSetWindowPolygon&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks in Advance.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Kin&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/K.C.KWOK&gt;</description>
      <pubDate>Tue, 25 Jan 2000 16:20:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301709#M96606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-25T16:20:12Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301710#M96607</link>
      <description>Thanks, Robert,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your idea to select a volume by using WCS and a UCS.&lt;BR /&gt;
&lt;BR /&gt;
I will practise your WCS and UCS to define a volume.&lt;BR /&gt;
&lt;BR /&gt;
I have a strong believe that the Z co-ordinate may have a function or role&lt;BR /&gt;
in the selectionset. There may be a reason for AutoCAD to use 3D WCS points,&lt;BR /&gt;
instead of 2D points, to define a selectionset.&lt;BR /&gt;
&lt;BR /&gt;
If you come across any method to select by volume please let me know.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Kin&lt;BR /&gt;
&lt;BR /&gt;
R. Robert Bell wrote in message &amp;lt;86kig8$p3g30@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt;You cannot select by volume, i.e. specifying a different Z coord for the&lt;BR /&gt;
&amp;gt;second point. I'm assuming that some of the objects within your selection&lt;BR /&gt;
&amp;gt;area are at a different elevation, and you don't want those selected? I&lt;BR /&gt;
&amp;gt;guess one way to do that would be to set your first selection set, then&lt;BR /&gt;
flip&lt;BR /&gt;
&amp;gt;the UCS to set a second selection set, and compare the two sets for common&lt;BR /&gt;
&amp;gt;objects.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;--&lt;BR /&gt;
&amp;gt;R. Robert Bell, MCSE&lt;BR /&gt;
&amp;gt;Network Administrator &amp;amp; Top Gun&lt;BR /&gt;
&amp;gt;(remove the not. for e-mail)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;k.c.kwok &lt;K.C.KWOK&gt; wrote in message&lt;BR /&gt;
&amp;gt;news:86kf2s$p3021@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt;&amp;gt; Dear All,&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; I have a simple problem in selectionset.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; How can I select objects between   point1 (100,100,10)    and    point2&lt;BR /&gt;
&amp;gt;&amp;gt; (500, 500, 20) by "volume" not by "area"?&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; I tried but cannot specify the "Z" of the point1 and point2.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; The selectionset always includes all objects within the 2D rectangle&lt;BR /&gt;
area.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; All objects within that area, at all depth are included in my&lt;BR /&gt;
&amp;gt;selectionset.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Which of the following mode, or any methods,  filters can define a volume&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetAll&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetCrossing&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetCrossingPolygon&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetFence&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetLast&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetPrevious&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetWindow&lt;BR /&gt;
&amp;gt;&amp;gt; acSelectionSetWindowPolygon&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Thanks in Advance.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Kin&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/K.C.KWOK&gt;</description>
      <pubDate>Tue, 25 Jan 2000 19:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301710#M96607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-25T19:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selection, 3D, R14.01, vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301711#M96608</link>
      <description>You can select by volume using acSelectionFence, Fence allows 3D points. The problem is that sometimes not all the entities are selected.... autodesk problem....&lt;BR /&gt;
&lt;BR /&gt;
see some code:&lt;BR /&gt;
&lt;BR /&gt;
 '' Seleciona o perfil referente ao ID&lt;BR /&gt;
                Dim solido As Acad3DSolid&lt;BR /&gt;
                Dim ssetSolido As AcadSelectionSet&lt;BR /&gt;
                Dim ptSelecao(x To Z) As Double&lt;BR /&gt;
                Dim gpCode(0) As Integer&lt;BR /&gt;
                Dim dataValue(0) As Variant&lt;BR /&gt;
                Dim dataType As Variant&lt;BR /&gt;
                Dim data As Variant&lt;BR /&gt;
                Dim descricao_perfil As String&lt;BR /&gt;
                Dim ptList(17) As Double&lt;BR /&gt;
                Dim lado_cubo As Double&lt;BR /&gt;
                &lt;BR /&gt;
                lado_cubo = 80&lt;BR /&gt;
                &lt;BR /&gt;
                gpCode(0) = 0&lt;BR /&gt;
                dataValue(0) = "3DSOLID"&lt;BR /&gt;
&lt;BR /&gt;
                Call vetorVariant_vetorFixo(entBlock.InsertionPoint, ptSelecao)&lt;BR /&gt;
                Set ssetSolido = Define_Selection_Set("SS1_ID_Solidos")&lt;BR /&gt;
                Call delta(ptSelecao, p1, lado_cubo, lado_cubo)&lt;BR /&gt;
                Call delta(ptSelecao, p2, -lado_cubo, -lado_cubo)&lt;BR /&gt;
                &lt;BR /&gt;
                '' Lista do cubo da fence&lt;BR /&gt;
                ptList(0) = p1(x): ptList(1) = p1(Y): ptList(2) = ptSelecao(Z)  '' Plano XY SD&lt;BR /&gt;
                ptList(3) = p1(x): ptList(4) = p2(Y): ptList(5) = ptSelecao(Z)  '' Plano XY ID&lt;BR /&gt;
                ptList(6) = p2(x): ptList(7) = p2(Y): ptList(8) = ptSelecao(Z)  '' Plano XY IE&lt;BR /&gt;
                ptList(9) = p2(x): ptList(10) = p1(Y): ptList(11) = ptSelecao(Z) '' Plano XY SE&lt;BR /&gt;
                ptList(12) = p1(x) - 5: ptList(13) = p1(Y): ptList(14) = ptSelecao(Z) '' P5&lt;BR /&gt;
                ptList(15) = p1(x) - 5: ptList(16) = p1(Y): ptList(17) = ptSelecao(Z) - lado_cubo '' Plano XY SE&lt;BR /&gt;
                &lt;BR /&gt;
                ''Call moSpace.Add3DPoly(ptList)&lt;BR /&gt;
                ''Call ssetSolido.Select(acSelectionSetCrossing, p1, p2, gpCode, dataValue)&lt;BR /&gt;
                Call ssetSolido.SelectByPolygon(acSelectionSetFence, ptList, gpCode, dataValue)&lt;BR /&gt;
                ''Call SetVar("PICKBOX", 10)&lt;BR /&gt;
                ''Call ssetSolido.SelectAtPoint(ptSelecao, gpCode, dataValue)</description>
      <pubDate>Sat, 09 Sep 2006 00:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301711#M96608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-09T00:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection, 3D, R14.01, vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301712#M96609</link>
      <description>That`s right, the only selection mode that takes in account elevation is acSelectionFence. The problem is that the fence is just a line, not a surface. That's why some entities don`t get selected. If the line of the fence doesn`t contact the entity, it doesn`t count for the SelectionSet. &lt;BR /&gt;
It seems that the only solution passes by selecting in the two UCSs mentioned above.</description>
      <pubDate>Sat, 16 Dec 2006 14:32:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selection-3d-r14-01-vba/m-p/301712#M96609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-12-16T14:32:27Z</dc:date>
    </item>
  </channel>
</rss>

