<?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: DISTANCE BETWEEN ELEMENTS in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981145#M40287</link>
    <description>&lt;P&gt;thanks for your reply.&lt;BR /&gt;but I have already reviewed its start link several times&lt;BR /&gt;but the truth that shows nothing technical just words&lt;BR /&gt;I'm really sorry that a forum of this magnitude&lt;BR /&gt;only resolved by users and the help of autodesk staff&lt;BR /&gt;does not contribute much to solve simple queries&lt;BR /&gt;Although the SDK is very helpful, it does not contribute to the development of simple questions.&lt;BR /&gt;It is not the first time that I have come across this answer. I am very sorry for this situation.&lt;BR /&gt;regards&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 12:34:05 GMT</pubDate>
    <dc:creator>rodrigohbm</dc:creator>
    <dc:date>2019-08-22T12:34:05Z</dc:date>
    <item>
      <title>DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8979725#M40285</link>
      <description>&lt;P&gt;Hello friends&lt;BR /&gt;I write to ask a question&lt;BR /&gt;it is possible through APIs to find&lt;BR /&gt;the distance between two elements&lt;BR /&gt;and get characteristics of&lt;BR /&gt;Selected items such as width and height?&lt;/P&gt;&lt;P&gt;attached reference image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&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="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/669240iE4704478EEF5A18C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 21:08:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8979725#M40285</guid>
      <dc:creator>rodrigohbm</dc:creator>
      <dc:date>2019-08-21T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8980675#M40286</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You seem to be new to the Revit API, so first of all I welcome you to this discussion group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before anything else, please work through the getting started material:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#2" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will answer these questions of yours, and many more besides.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, obviously, please always search for existing answers before raising new questions here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Revit element properties such and with are height are available through the parameters that you see in the user interface in the element property panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should install RevitLookup to explore the Revit database, its elements, their properties and relationships interactively through the API:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/RevitLookup" target="_blank"&gt;https://github.com/jeremytammik/RevitLookup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also query an element for its geometry and then calculate these properties yourself from that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The distance could also be determined from the two elements' geometry, and in other ways as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8980675#M40286</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-08-22T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981145#M40287</link>
      <description>&lt;P&gt;thanks for your reply.&lt;BR /&gt;but I have already reviewed its start link several times&lt;BR /&gt;but the truth that shows nothing technical just words&lt;BR /&gt;I'm really sorry that a forum of this magnitude&lt;BR /&gt;only resolved by users and the help of autodesk staff&lt;BR /&gt;does not contribute much to solve simple queries&lt;BR /&gt;Although the SDK is very helpful, it does not contribute to the development of simple questions.&lt;BR /&gt;It is not the first time that I have come across this answer. I am very sorry for this situation.&lt;BR /&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:34:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981145#M40287</guid>
      <dc:creator>rodrigohbm</dc:creator>
      <dc:date>2019-08-22T12:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981716#M40288</link>
      <description>&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;Correct me if I'm wrong but it looks like you are working with Walls and only walls. The solution would clearly be different if you would work with, say, Lightning Element and Wall.&lt;/P&gt;&lt;P&gt;Walls are determined mainly by their LocationCurve (myWall.Location as LocationCurve, and situated at the middle of the wall thickness) and their Width (myWall.WallType.Width). So you can retrieve the locationCurve of each wall. Then a simple solution would be to project both ends of wall1 on wall2, then project again both solutions on wall1 and take the shorter. The syntax is locCurve.Project(myPoint). Then take care of the thickness of the wall.&lt;/P&gt;&lt;P&gt;But if your walls are not facing, you will have a problem (your projection will find the shortest distance between the 2 segments that are your LocationCurve, not the distance between the 2 infinite lines that contain them. A solution could be to create an infinite Line containing each wall's LocationCurve (Line.CreateUnbound) and project one point of the first on the second, after checking that they are parallel. And then take accound of wall's thickness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:35:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981716#M40288</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2019-08-22T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981733#M40289</link>
      <description>&lt;P&gt;thanks for your reply&lt;BR /&gt;but in general they are different elements&lt;BR /&gt;for this case, wall (element 1) and beam (element 2) are combined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test your indication.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981733#M40289</guid>
      <dc:creator>rodrigohbm</dc:creator>
      <dc:date>2019-08-22T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: DISTANCE BETWEEN ELEMENTS</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981741#M40290</link>
      <description>&lt;P&gt;It works as long as both of your elements have a CurveLocation as Location. If it is a Point, it is much easier...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:44:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/distance-between-elements/m-p/8981741#M40290</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2019-08-22T15:44:54Z</dc:date>
    </item>
  </channel>
</rss>

