<?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 How can I do crossing line selectionset in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227174#M58429</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VB.net to do a selectionset for any object crossing a line. I can pass 2 points fo the line(start and end )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In vb6I use.&lt;/P&gt;&lt;P&gt;Select acSelectionSetCrossing, vStartWithin, vEndWithin, varDataType, varDataFilter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I should use in .Net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using objEd.SelectCrossingWindow(StartPoint, EndPoint, objFilter)&lt;/P&gt;&lt;P&gt;it returns wrong result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2011 16:50:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-14T16:50:18Z</dc:date>
    <item>
      <title>How can I do crossing line selectionset</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227174#M58429</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VB.net to do a selectionset for any object crossing a line. I can pass 2 points fo the line(start and end )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In vb6I use.&lt;/P&gt;&lt;P&gt;Select acSelectionSetCrossing, vStartWithin, vEndWithin, varDataType, varDataFilter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I should use in .Net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using objEd.SelectCrossingWindow(StartPoint, EndPoint, objFilter)&lt;/P&gt;&lt;P&gt;it returns wrong result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227174#M58429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T16:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do crossing line selectionset</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227318#M58430</link>
      <description>&lt;P&gt;Put the two points in a Point3dCollection and use Editor.SelectFence&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 19:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227318#M58430</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-11-14T19:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do crossing line selectionset</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227336#M58431</link>
      <description>&lt;P&gt;Editor.SelectCrossingWindow() IS equivalent to VBA's AcadSelectSet.Select acSelectionSetCrossing. That is, the 2 points define a rectangle, anything inside the rectangle and anything crossed by the rectangle border is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, when you call this method (and other Editor.SelectXXXXXX() methods, for this matter), the rectangle/polygon MUST be inside the current view. That is, if the rectangle is larger than the visible area of the current view, the returned selectionSet will not be correct as you expected. You may want to zoom the view to make&amp;nbsp;it a bit larger than the selecting rectangle (e.g. make sure the selecting rectangle within visible area of the current view).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you only want entities that are crossed by the line, not inside the rectangle/polygon (as you described), then you need to use Editor.SelectFence().&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 19:49:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-can-i-do-crossing-line-selectionset/m-p/3227336#M58431</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2011-11-14T19:49:48Z</dc:date>
    </item>
  </channel>
</rss>

