<?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 Line intersect with block in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3809711#M50494</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I find the intersected point of Line and block as this code:&lt;/P&gt;&lt;PRE&gt;'bref is a block reference
Dim tmpLine As New Line(pt1, bref.Position)
Dim ptCol As New Point3dCollection
bref.IntersectWith(tmpLine, Intersect.OnBothOperands, ptCol, 0, 0) 
Dim acLine As New Line(pt1,ptCol(0))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But the intersected point is not located on block as picture below.&amp;nbsp;&lt;SPAN&gt;I don't know what happen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2013 08:38:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-20T08:38:15Z</dc:date>
    <item>
      <title>Line intersect with block</title>
      <link>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3809711#M50494</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I find the intersected point of Line and block as this code:&lt;/P&gt;&lt;PRE&gt;'bref is a block reference
Dim tmpLine As New Line(pt1, bref.Position)
Dim ptCol As New Point3dCollection
bref.IntersectWith(tmpLine, Intersect.OnBothOperands, ptCol, 0, 0) 
Dim acLine As New Line(pt1,ptCol(0))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But the intersected point is not located on block as picture below.&amp;nbsp;&lt;SPAN&gt;I don't know what happen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 08:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3809711#M50494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line intersect with block</title>
      <link>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3809999#M50495</link>
      <description>&lt;P&gt;It is look like you found intersect point which on &lt;U&gt;bounding box&lt;/U&gt; of block reference:&lt;/P&gt;
&lt;H3 class="entry-header"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/12/intersecting-any-entity-with-a-blockreference-and-retrieving-the-intersection-points.html" target="_self"&gt;Intersecting any entity with a BlockReference and retrieving the intersection points&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Wed, 20 Mar 2013 13:27:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3809999#M50495</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-03-20T13:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Line intersect with block</title>
      <link>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3810026#M50496</link>
      <description>&lt;P&gt;I found the intersecting point of line and&amp;nbsp;&lt;U&gt;bounding box&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;of block reference&lt;/SPAN&gt;. Can you help me with VB.net code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 13:50:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3810026#M50496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Line intersect with block</title>
      <link>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3810033#M50497</link>
      <description>&lt;P&gt;Easiest way is explode BlockRerence (method &lt;A href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-3e3e.htm,topicNumber=d0e25888" target="_blank"&gt;BlockReference.Explode&lt;/A&gt; but without adding entities to Database) and then intersect your's line with every entity in collection of exploded entities (maybe recursive if entity in collection is also BlockReference).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 14:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/line-intersect-with-block/m-p/3810033#M50497</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-03-20T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

