<?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: how to select a specific line in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9796119#M18311</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9584354"&gt;@mecoman6GF27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello everyone and thanks for the replies.&lt;BR /&gt;I have read the information on the link that SEANT61 recommended me but it talks about all the objects that are on a specific layer. I would like to select only one object of a layer and not all.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Re-read the thread and test the code sample.&amp;nbsp; Using specific properties of&amp;nbsp;PromptSelectionOptions the Editor.GetSelection method can be set up to limit selection to one entity, using filtered criteria.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Oct 2020 09:42:47 GMT</pubDate>
    <dc:creator>SEANT61</dc:creator>
    <dc:date>2020-10-11T09:42:47Z</dc:date>
    <item>
      <title>how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9794279#M18305</link>
      <description>&lt;P&gt;Hello everybody.&lt;BR /&gt;Can anyone explain to me how I can select a specific line that is on a certain layer?&lt;BR /&gt;I specify that the layer was used to draw a lot of lines.&lt;BR /&gt;Thanks a lot, bye.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 16:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9794279#M18305</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2020-10-09T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9794863#M18306</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9584354"&gt;@mecoman6GF27&lt;/a&gt;&amp;nbsp;&amp;nbsp;For better understanding, and maybe get further help, please upload such sample.dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What condition shall the LINE comply. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 23:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9794863#M18306</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-10-09T23:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795176#M18307</link>
      <description>&lt;P&gt;Hi devitg, thanks for the reply.&lt;BR /&gt;The line to be selected has no particular conditions to be respected. I can tell you that it is on a layer called "A1" but on the same layer there are many other lines. I would like to select only one of these lines to change the coordinates of the end point.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 08:00:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795176#M18307</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2020-10-10T08:00:49Z</dc:date>
    </item>
    <item>
      <title>.Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795287#M18308</link>
      <description>&lt;P&gt;Explore this thread for any pertinent information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/selecting-based-on-layer/m-p/6696802" target="_blank"&gt;https://forums.autodesk.com/t5/net/selecting-based-on-layer/m-p/6696802&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 10:24:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795287#M18308</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2020-10-10T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795408#M18309</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9584354"&gt;@mecoman6GF27&lt;/a&gt;&amp;nbsp;, please apologize me , i did not notice that it was a no lisp question . I handle lisp&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 13:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9795408#M18309</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-10-10T13:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9796107#M18310</link>
      <description>&lt;P&gt;Hello everyone and thanks for the replies.&lt;BR /&gt;I have read the information on the link that &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/520839"&gt;@SEANT61&lt;/a&gt;&amp;nbsp; recommended me but it talks about all the objects that are on a specific layer. I would like to select only one object of a layer and not all.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 14:58:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9796107#M18310</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2020-10-29T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9796119#M18311</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9584354"&gt;@mecoman6GF27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello everyone and thanks for the replies.&lt;BR /&gt;I have read the information on the link that SEANT61 recommended me but it talks about all the objects that are on a specific layer. I would like to select only one object of a layer and not all.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Re-read the thread and test the code sample.&amp;nbsp; Using specific properties of&amp;nbsp;PromptSelectionOptions the Editor.GetSelection method can be set up to limit selection to one entity, using filtered criteria.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 09:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/9796119#M18311</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2020-10-11T09:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10431614#M18312</link>
      <description>&lt;P&gt;Hello everybody. I apologize if I re-open this discussion after several months.&lt;BR /&gt;With the following code I have selected the line. Now how do I change the coordinates of the end point of the line?&lt;BR /&gt;Hi, thank you very much.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    Private Sub B_Select_Click(sender As Object, e As EventArgs) Handles B_Select.Click
        Dim doc As Document = Application.DocumentManager.MdiActiveDocument
        Dim ed As Editor = doc.Editor

        Dim tvs() As TypedValue

        tvs = New TypedValue() {
            New TypedValue(DxfCode.Operator, "&amp;lt;or"),
            New TypedValue(DxfCode.Operator, "&amp;lt;and"),
            New TypedValue(DxfCode.Start, "CIRCLE"),
            New TypedValue(DxfCode.Operator, "&amp;gt;="),
            New TypedValue(DxfCode.Real, 10.0),
            New TypedValue(DxfCode.Operator, "and&amp;gt;"),
            New TypedValue(DxfCode.Operator, "or&amp;gt;")
            }

        Dim sf As SelectionFilter = New SelectionFilter(tvs)
        Dim psr As PromptSelectionResult = ed.SelectAll(sf)

        ed.WriteMessage("Id Object: " &amp;amp; psr.Value.GetObjectIds(0).ToString)
    End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jun 2021 08:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10431614#M18312</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2021-06-30T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10431936#M18313</link>
      <description>&lt;P&gt;The code you posted select all the circles with a radius greater or equal to 10.0 units.&lt;/P&gt;
&lt;P&gt;Circles are not lines and do not have end point.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 11:20:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10431936#M18313</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-06-30T11:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10432576#M18314</link>
      <description>&lt;P&gt;Sorry, in the code I posted I selected all the circles instead of the lines. If in that code I wanted to change the radius of the circles what should I do?&lt;BR /&gt;Thanks a lot, bye.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:26:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10432576#M18314</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2021-06-30T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10432845#M18315</link>
      <description>&lt;P&gt;It's the same process for editing any DBObject:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Start a Transaction.&lt;/LI&gt;
&lt;LI&gt;Open the object for write from its ObjectId.&lt;/LI&gt;
&lt;LI&gt;Edit its properties.&lt;/LI&gt;
&lt;LI&gt;Commit the Transaction to save the changes.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You should read &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-F5601807-2FA9-486F-A212-E693D452D81F" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;this section&lt;/STRONG&gt;&lt;/A&gt; of the documentation and all the related topics.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 15:43:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10432845#M18315</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-06-30T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10440355#M18316</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;Can you write an example that I can take inspiration from? I would be very grateful to you.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 08:23:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10440355#M18316</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2021-07-03T08:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10440951#M18317</link>
      <description>&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("TEST")]
        public static void Test()
        {
            var doc = AcAp.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            var ed = doc.Editor;

            // Selection filter to select all the circles with a radius greater or equal to 10.0.
            var filter = new SelectionFilter(new[] 
            {
                new TypedValue(0, "CIRCLE"),
                new TypedValue(-4, "&amp;gt;="),
                new TypedValue(40, 10.0)
            });

            var selection = ed.SelectAll(filter);
            if (selection.Status == PromptStatus.OK)
            {
                // Start a transaction
                using (var tr = db.TransactionManager.StartTransaction())
                {
                    // Loop for each selected object
                    foreach (var id in selection.Value.GetObjectIds())
                    {
                        // Open the circle for write
                        var circle = (Circle)tr.GetObject(id, OpenMode.ForWrite);

                        // Change the radius to 15.0.
                        circle.Radius = 15.0;
                    }
                    // Save the changes
                    tr.Commit();
                }
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 03 Jul 2021 16:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10440951#M18317</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-07-03T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to select a specific line</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10447031#M18318</link>
      <description>&lt;P&gt;Hi _gile, thank you very much for your help. You helped me a lot.&lt;BR /&gt;Bye.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 14:46:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-select-a-specific-line/m-p/10447031#M18318</guid>
      <dc:creator>mecoman6GF27</dc:creator>
      <dc:date>2021-07-06T14:46:38Z</dc:date>
    </item>
  </channel>
</rss>

