<?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: PickElementsByRectangle in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137782#M19353</link>
    <description>&lt;P&gt;Good morning RPTHPOMAS108,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking time to answer my doubts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, the only way i know to get access to any method or property of fabrication parts or plumbing to search into is;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;PLUMBING&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Autodesk.Revit.DB.Plumbing.PipeSystemType.&lt;SPAN&gt;OtherPipe&lt;/SPAN&gt;();&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;FABRICATION PART&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;nbsp;Autodesk.Revit.DB.Fabrication.&lt;SPAN&gt;FabricationUtils&lt;/SPAN&gt;();&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;(For example, this method allows me to export fabrication pipes to PFC)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i try to dive into those two method i can´t to put any foreach(), macro sends me an alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is the process to use correctly the line you told me previously:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pipe/DirectShape/FabricationPart.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Thanks again&lt;/U&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 12:19:04 GMT</pubDate>
    <dc:creator>MONTECINOS</dc:creator>
    <dc:date>2022-04-29T12:19:04Z</dc:date>
    <item>
      <title>PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137343#M19351</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Nicolás,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a code that i found in internet, this code is made in C# for selecting elements and get information of them, i modified a line of code to make this macro let me get information of pipes, but it doesn´t work, and don´t know why:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;public&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;void&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;SeElInformation&lt;/SPAN&gt;()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UIDocument uidoc =&amp;nbsp;&lt;SPAN&gt;this&lt;/SPAN&gt;.Application.ActiveUIDocument;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Document doc = uidoc.Document;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;informacion =&amp;nbsp;&lt;SPAN&gt;"Los ids y los nombres de los elementos son : \n\n"&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;referencias =uidoc.Selection.&lt;SPAN&gt;PickElementsByRectangle&lt;/SPAN&gt;(ElementTypeGroup.PipeType);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;foreach&lt;/SPAN&gt;(&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;REF&amp;nbsp;&lt;SPAN&gt;in&lt;/SPAN&gt;&amp;nbsp;referencias)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Element elem = uidoc.Document.&lt;SPAN&gt;GetElement&lt;/SPAN&gt;(REF);&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;informacion&amp;nbsp;+= elem.Id&amp;nbsp;+&amp;nbsp;&lt;SPAN&gt;","&lt;/SPAN&gt;&amp;nbsp;+elem.Name&amp;nbsp;+&amp;nbsp;&lt;SPAN&gt;"\n"&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;informacion&amp;nbsp;+= elem.Document.SiteLocation.Latitude&amp;nbsp;+&amp;nbsp;&lt;SPAN&gt;","&lt;/SPAN&gt;&amp;nbsp;+elem.Name&amp;nbsp;+&amp;nbsp;&lt;SPAN&gt;"\n"&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;informacion&amp;nbsp;+= elem.Category.Material.MaterialClass;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;informacion&amp;nbsp;+= elem.Parameters.Size;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TaskDialog.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"informacion elemento"&lt;/SPAN&gt;&amp;nbsp;,&amp;nbsp;informacion);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached 3 screenshots to explain detailed my problem.&lt;/P&gt;&lt;P&gt;I would like anybody could help me,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137343#M19351</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-04-29T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137629#M19352</link>
      <description>&lt;P&gt;The method UIDocument.Selection.PickElementsByRectangle takes an ISelectionFilter not a value from ElementTypeGroup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the object is a Pipe/DirectShape/FabricationPart then it is still an Element so the original code with PickObject(ObjectType.Element) should work, ISelectionFilter can be implemented to limit selection to pipes or other specific things (see ISelectionFilter).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line Element.Document.SiteLocation.Latitude is not for the purpose you are using it for i.e. Document is the Document that the pipe resides in and therefore SiteLocation holds no information specific to the pipe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it isn't a pipe then you'll have to use &lt;A href="https://github.com/jeremytammik/RevitLookup/releases/tag/2023.0.0" target="_blank" rel="noopener"&gt;RevitLookup&lt;/A&gt; to determine what if anything you can use for it in terms of location. To get pipe location you need to use Pipe.Location this will usually return a LocationCurve object then LocationCurve.Curve.GetEndPoint will return each end by end index. This will be in relation to the internal co-ordinate system so needs to be transformed to the coordinate system of the site.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 11:26:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137629#M19352</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-04-29T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137782#M19353</link>
      <description>&lt;P&gt;Good morning RPTHPOMAS108,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking time to answer my doubts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, the only way i know to get access to any method or property of fabrication parts or plumbing to search into is;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;PLUMBING&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Autodesk.Revit.DB.Plumbing.PipeSystemType.&lt;SPAN&gt;OtherPipe&lt;/SPAN&gt;();&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;FABRICATION PART&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;nbsp;Autodesk.Revit.DB.Fabrication.&lt;SPAN&gt;FabricationUtils&lt;/SPAN&gt;();&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;(For example, this method allows me to export fabrication pipes to PFC)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i try to dive into those two method i can´t to put any foreach(), macro sends me an alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is the process to use correctly the line you told me previously:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Pipe/DirectShape/FabricationPart.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Thanks again&lt;/U&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:19:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11137782#M19353</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-04-29T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11139053#M19354</link>
      <description>&lt;P&gt;If you attach a project file containing a single object of what you are trying to select and get information from then I may be able to advise. Currently I'm unsure what objects you are working with and for certain objects without location information there with be no convenient way to obtain it, other than looking at solid geometry etc.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 22:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11139053#M19354</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-04-29T22:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11139452#M19355</link>
      <description>&lt;P&gt;Welcome to the Revit API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most efficient way for you to resolve this question and many others besides would be for you to work through the getting started material, especially the DevTV and My First Revit Plugin tutorials:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#2&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would resolve this issue, and many others as well that you may run into very soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to address your question directly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are using the &lt;U&gt;PickElementsByRectangle&lt;/U&gt; method, and that makes perfect sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not take an argument of type ElementTypeGroup, so you cannot use it in the way you do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PickElementsByRectangle has several overloads taking different sets of arguments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.revitapidocs.com/2022/2be6b3b7-2cec-1d8a-76fb-afcd618fcae6.htm" target="_blank"&gt;https://www.revitapidocs.com/2022/2be6b3b7-2cec-1d8a-76fb-afcd618fcae6.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="pickelementsbyrectangle_overloads.png" style="width: 530px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1061635i166EA7E892386BBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pickelementsbyrectangle_overloads.png" alt="pickelementsbyrectangle_overloads.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use the overload taking a selection filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For that, you can implement a selection filter that accepts only pipe types:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;  /// &amp;lt;summary&amp;gt;
  /// Allow selection of pipe elements only.
  /// &amp;lt;/summary&amp;gt;
  class PipeSelectionFilter : ISelectionFilter
  {
    public bool AllowElement( Element e )
    {
      return e is Pipe;
    }
 
    public bool AllowReference( Reference r, XYZ p )
    {
      return true;
    }
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use it in PickElementsByRectangle like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;  Reference r = sel.PickElementsByRectangle(
    new PipeSelectionFilter(),
    "Please select pipes." );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck and have fun,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 06:53:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11139452#M19355</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-04-30T06:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11141555#M19356</link>
      <description>&lt;P&gt;Good morning RPTHOMAS108,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for helping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstable, i´m going to solve howt to get information such a diameter, material by clicking an elbow or a piece of pipe.&lt;/P&gt;&lt;P&gt;About getting information of location of those elements, i´m gonna leave it for later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:05:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11141555#M19356</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-05-02T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11141566#M19357</link>
      <description>&lt;P&gt;Good morning jeremy.tammik,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answer my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m going to take a look to the link what you sent me, to see the API tutorial. I´m new on coding with API of Revit, there is a lot of things that i don´t know about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m going to try to implement the solution that you have proposed me.&lt;/P&gt;&lt;P&gt;Probably i´m going to write back later, because the more keep writing code, the more doubts are going to appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thank you&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:15:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11141566#M19357</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-05-02T08:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11143882#M19358</link>
      <description>&lt;P&gt;Hi jeremy.tammik,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for bother again.&lt;/P&gt;&lt;P&gt;I added the example code that you previously gave me into my code, but something is going wrong, and i don´t know exactly how to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I woul appreciate if you could help me,&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>Tue, 03 May 2022 08:44:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11143882#M19358</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-05-03T08:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11143925#M19359</link>
      <description>&lt;P&gt;From your screen snapshots, you seem to be working in the Revit macro editor IDE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is good. The code I shared was taken from an add-in, not a macro, so there may be slight differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They are trivial, and have to do with how you access the Revit application and active document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest that the best next step for you is to dive a little bit deeper into macro programming fundamentals, and maybe a little bit of .NET and C#&amp;nbsp;programming fundamentals, e.g., by working through a tutorial or two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search for Revit macro and C# .NET&amp;nbsp;programming tutorials on YouTube or elsewhere in your preferred platforms, get you feet wet with things that DO work, and then you will be ready to tackle your own main task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't struggle with things that don't work. Just follow a couple of tutorials that show the proper way of doing things and rapidly all will become clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 09:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11143925#M19359</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-05-03T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: PickElementsByRectangle</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11144017#M19360</link>
      <description>&lt;P&gt;Ok, thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pickelementsbyrectangle/m-p/11144017#M19360</guid>
      <dc:creator>MONTECINOS</dc:creator>
      <dc:date>2022-05-03T10:16:14Z</dc:date>
    </item>
  </channel>
</rss>

