<?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 Block close to Polyline in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304112#M32986</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can get some inspiration from this method using Linq to get the closest block reference to a specified point within a distance (if any).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private BlockReference SelectClosestBlockWihinRadius(Point3d center, double radius, BlockTableRecord space)
        {
            return space
                .Cast&amp;lt;ObjectId&amp;gt;()
                .Where(id =&amp;gt; id.ObjectClass.DxfName == "INSERT")
                .Select(id =&amp;gt; (BlockReference)id.GetObject(OpenMode.ForRead))
                .Where(br =&amp;gt; br.Position.DistanceTo(center) &amp;lt; radius)
                .OrderBy(br =&amp;gt; br.Position.DistanceTo(center))
                .FirstOrDefault();
        }&lt;/PRE&gt;
&lt;P&gt;using example:&lt;/P&gt;
&lt;PRE&gt;                using (var tr = db.TransactionManager.StartTransaction())
                {
                    var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForRead);
                    var br = SelectClosestBlockWihinRadius(center, 5.0, curSpace);
                    if (br != null)
                    {
                        br.UpgradeOpen();
                        br.ColorIndex = 3;
                    }
                    tr.Commit();
                }&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Aug 2017 10:03:21 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2017-08-16T10:03:21Z</dc:date>
    <item>
      <title>Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837370#M32980</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get Block ID close to polyline from select point&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pline-Block.png" style="width: 450px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/316419i190E05B04FF6C3E5/image-dimensions/450x432?v=v2" width="450" height="432" role="button" title="Pline-Block.png" alt="Pline-Block.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 02:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837370#M32980</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2017-01-28T02:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837617#M32981</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;Here is attempt and although it may not look that professional but works as expected.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;Any comments are welcome and I am open to ideas.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[CommandMethod("Foo")]

        public static void IterateThroughPaperSpaces ()
        {
            Document Doc = App.DocumentManager.MdiActiveDocument;
            Editor ed = Doc.Editor;
            Database db = Doc.Database;

            PromptEntityOptions ent = new PromptEntityOptions("\nPick on Single polyline: ");
            ent.SetRejectMessage("\nMust select Single polyline !");
            ent.AddAllowedClass(typeof(Polyline), true);
            ent.AllowNone = false;
            PromptEntityResult rst = ed.GetEntity(ent);
            if (rst.Status != PromptStatus.OK) return;

            using (var tr = db.TransactionManager.StartTransaction())
            {
                TypedValue[] tv = { new TypedValue(0, "INSERT"), new TypedValue(410 , App.GetSystemVariable("CTAB")) };
                PromptSelectionResult sel = ed.SelectAll(new SelectionFilter(tv));
                var dis = 0.0;
                double pos = 0.0;
                ObjectIdCollection objs = new ObjectIdCollection();
                Point3d pt = rst.PickedPoint;
                if (sel.Value == null)
                {
                    ed.WriteMessage("\nNo Blocks found in this drawing !");
                    return;
                }

                foreach (ObjectId item in sel.Value.GetObjectIds())
                {
                    var blk = (BlockReference)tr.GetObject(item, OpenMode.ForRead);
                    if (blk != null)
                    {
                        if (objs.Count &amp;lt; 1)
                         pos = blk.Position.DistanceTo(pt);

                        dis = blk.Position.DistanceTo(pt);
                        if (dis &amp;lt;= pos)
                        {
                            pos = dis;
                            objs.Clear();
                            objs.Add(item);
                        }
                    }
                }
                
                if (objs.Count &amp;gt; 0)
                {
                    ObjectId[] ids = new ObjectId[objs.Count];
                    objs.CopyTo(ids, 0);
                    ed.SetImpliedSelection(ids);
                }
                tr.Commit();
            }
        &amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 10:50:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837617#M32981</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2017-01-28T10:50:15Z</dc:date>
    </item>
    <item>
      <title>Re : Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837653#M32982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not certain to exactly understand the request, but you probably can get some inspiration from the following snippets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get the the closest block reference Id to the specified point in the current space:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private ObjectId GetClosestBlockReferenceId(Point3d point)
        {
            var brId = ObjectId.Null;
            var db = HostApplicationServices.WorkingDatabase;
            var brClass = RXObject.GetClass(typeof(BlockReference));
            using (var tr = db.TransactionManager.StartOpenCloseTransaction())
            {
                var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForRead);
                var query = curSpace.Cast&amp;lt;ObjectId&amp;gt;().Where(id =&amp;gt; id.ObjectClass == brClass);
                if (query.Any())
                    brId = query
                        .Select(id =&amp;gt; (BlockReference)tr.GetObject(id, OpenMode.ForRead))
                        .Aggregate((br1, br2) =&amp;gt; br1.Position.DistanceTo(point) &amp;lt; br2.Position.DistanceTo(point) ? br1 : br2)
                        .ObjectId;
                tr.Commit();
            }
            return brId;
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get the closest the closest block reference to the polyline (have to be called form within a transaction):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private ObjectId GetClosestBlockReferenceId(Polyline pline)
        {
            var tr = pline.Database.TransactionManager.TopTransaction;
            var brId = ObjectId.Null;
            var brClass = RXObject.GetClass(typeof(BlockReference));
            var space = (BlockTableRecord)tr.GetObject(pline.OwnerId, OpenMode.ForRead);
            var query = space.Cast&amp;lt;ObjectId&amp;gt;().Where(id =&amp;gt; id.ObjectClass == brClass);
            if (query.Any())
            {
                brId = query
                        .Select(id =&amp;gt; (BlockReference)tr.GetObject(id, OpenMode.ForRead))
                        .Aggregate((br1, br2) =&amp;gt; 
                            br1.Position.DistanceTo(pline.GetClosestPointTo(br1.Position, false)) &amp;lt; 
                            br2.Position.DistanceTo(pline.GetClosestPointTo(br1.Position, false)) ? 
                            br1 : 
                            br2)
                        .ObjectId;
            }
            return brId;
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 12:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6837653#M32982</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-01-28T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6838710#M32983</link>
      <description>&lt;P&gt;Thanks _Tharwat and _gile &amp;nbsp;for this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 15:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6838710#M32983</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2017-01-29T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6838716#M32984</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt;Excellent. You are welcome.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="3"&gt; I am happy that I can help.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 15:23:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/6838716#M32984</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2017-01-29T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7303955#M32985</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I select Polyline (2) then I select block close to Polyline (1)&lt;BR /&gt;how can I select block inside 5 meters from mouse click so when the block is missing inside 5 meter radius I get warning&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sgear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;      Public Sub inntext()



            Class_keep_string.popupstring = ""
            Dim Doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
            Dim ed As Editor = Doc.Editor
            Dim db As Database = Doc.Database

            Dim ent As New PromptEntityOptions(vbLf &amp;amp; Class_keep_string.popupstring &amp;amp; " Select Polyline close to Block: ")
            ent.SetRejectMessage(vbLf &amp;amp; "this is not Polyline !")
            ent.AddAllowedClass(GetType(Polyline), True)
            ent.AllowNone = True
            While True
                ent.Message = Class_keep_string.popupstring &amp;amp; vbLf &amp;amp; " &amp;lt;---  Select Polyline close to Block: "

                Dim rst As PromptEntityResult = ed.GetEntity(ent)

                If rst.Status = PromptStatus.None Then
                    Exit While
                End If

                If rst.Status &amp;lt;&amp;gt; PromptStatus.OK Then
                    Return
                End If



                '    Using trx As Transaction = db.TransactionManager.StartTransaction()
                Using tr = db.TransactionManager.StartTransaction()
                    Dim tv As TypedValue() = {New TypedValue(0, "INSERT"), New TypedValue(410, Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("CTAB"))}
                    Dim sel As PromptSelectionResult = ed.SelectAll(New SelectionFilter(tv))
                    Dim dis = 0.0
                    Dim pos As Double = 0.0
                    Dim objs As New ObjectIdCollection()
                    Dim pt As Point3d = rst.PickedPoint
                    If sel.Value Is Nothing Then
                        ed.WriteMessage(vbLf &amp;amp; "No block!")
                        Return
                    End If

                    For Each item As ObjectId In sel.Value.GetObjectIds()
                        Dim blk = CType(tr.GetObject(item, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead), BlockReference)
                        If blk IsNot Nothing Then
                            If objs.Count &amp;lt; 1 Then
                                pos = blk.Position.DistanceTo(pt)

                            End If

                            dis = blk.Position.DistanceTo(pt)
                            If dis &amp;lt;= pos Then
                                pos = dis
                                objs.Clear()
                                objs.Add(item)
                                ed.WriteMessage(vbLf &amp;amp; dis.ToString)
                                ed.WriteMessage(vbLf &amp;amp; pos.ToString)
                            End If
                        End If
                    Next

                    If objs.Count &amp;gt; 0 Then
                        Dim ids As ObjectId() = New ObjectId(objs.Count - 1) {}
                        objs.CopyTo(ids, 0)

                        Dim ent2 As Entity

                        ent2 = TryCast(tr.GetObject(objs.Item(0), Autodesk.AutoCAD.DatabaseServices.OpenMode.ForWrite), Entity)

                        'If pos &amp;gt;= 4.19796655251786 Then

                        'Else
                        '    ent2.ColorIndex = "3"
                        'End If

                    End If
                    tr.Commit()

                End Using
            End While
            '   End Using
        End Sub&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/390479iF1EE1D8BDC6956E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 08:46:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7303955#M32985</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2017-08-16T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304112#M32986</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can get some inspiration from this method using Linq to get the closest block reference to a specified point within a distance (if any).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private BlockReference SelectClosestBlockWihinRadius(Point3d center, double radius, BlockTableRecord space)
        {
            return space
                .Cast&amp;lt;ObjectId&amp;gt;()
                .Where(id =&amp;gt; id.ObjectClass.DxfName == "INSERT")
                .Select(id =&amp;gt; (BlockReference)id.GetObject(OpenMode.ForRead))
                .Where(br =&amp;gt; br.Position.DistanceTo(center) &amp;lt; radius)
                .OrderBy(br =&amp;gt; br.Position.DistanceTo(center))
                .FirstOrDefault();
        }&lt;/PRE&gt;
&lt;P&gt;using example:&lt;/P&gt;
&lt;PRE&gt;                using (var tr = db.TransactionManager.StartTransaction())
                {
                    var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForRead);
                    var br = SelectClosestBlockWihinRadius(center, 5.0, curSpace);
                    if (br != null)
                    {
                        br.UpgradeOpen();
                        br.ColorIndex = 3;
                    }
                    tr.Commit();
                }&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 10:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304112#M32986</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-16T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304155#M32987</link>
      <description>&lt;P&gt;Imperative way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        private BlockReference SelectClosestBlockWihinRadius(Point3d center, double radius, BlockTableRecord space)
        {
            BlockReference result = null;
            foreach (ObjectId id in space)
            {
                if (id.ObjectClass.DxfName == "INSERT")
                {
                    var br = (BlockReference)id.GetObject(OpenMode.ForRead);
                    double dist = br.Position.DistanceTo(center);
                    if (dist &amp;lt; radius)
                    {
                        result = br;
                        radius = dist;
                    }
                }
            }
            return result;
        }&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 10:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304155#M32987</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-16T10:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304288#M32988</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to use&amp;nbsp;&lt;A href="http://converter.telerik.com/" target="_blank"&gt;http://converter.telerik.com/&lt;/A&gt; to convert to VB.NET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Dim br = SelectClosestBlockWihinRadius(center, 5.0, curSpace)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'center' is not declared. It may be inaccessible due to its protection level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Using tr = db.TransactionManager.StartTransaction()
	Dim curSpace = DirectCast(tr.GetObject(db.CurrentSpaceId, OpenMode.ForRead), BlockTableRecord)
	Dim br = SelectClosestBlockWihinRadius(center, 5.0, curSpace)
	If br IsNot Nothing Then
		br.UpgradeOpen()
		br.ColorIndex = 3
	End If
	tr.Commit()
End Using


Private Function SelectClosestBlockWihinRadius(center As Point3d, radius As Double, space As BlockTableRecord) As BlockReference
	Dim result As BlockReference = Nothing
	For Each id As ObjectId In space
		If id.ObjectClass.DxfName = "INSERT" Then
			Dim br = DirectCast(id.GetObject(OpenMode.ForRead), BlockReference)
			Dim dist As Double = br.Position.DistanceTo(center)
			If dist &amp;lt; radius Then
				result = br
				radius = dist
			End If
		End If
	Next
	Return result
End Function&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304288#M32988</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2017-08-16T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304321#M32989</link>
      <description>&lt;P&gt;That was just one example.&lt;BR /&gt;&lt;BR /&gt;'center' is the center (Point3d) of the circle in which you are looking for a block. IOW, if I understand what you are trying to do: the picked point from which you are looking for a block at 5 meters maximum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&lt;/P&gt;
&lt;P&gt;From the code you posted:&lt;/P&gt;
&lt;PRE&gt;  Dim center As Point3d = rst.PickedPoint.TransformBy(ed.CurrentCoordinateSystem)&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:55:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304321#M32989</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-16T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block close to Polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304344#M32990</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finish to fix this and works well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes I am tray to do this "looking for a block at 5 meters maximum from &lt;SPAN&gt;Point3d&lt;/SPAN&gt;."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_71bc8de24390fd" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424" target="_self"&gt;_gile&lt;/A&gt;&amp;nbsp;for your help !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Dim br = SelectClosestBlockWihinRadius(rst.PickedPoint, 5.0, curSpace)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Sgear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:57:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-block-close-to-polyline/m-p/7304344#M32990</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2017-08-16T11:57:28Z</dc:date>
    </item>
  </channel>
</rss>

