<?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: Linked File Element Intersection Solid Geometry in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7869505#M51639</link>
    <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again i wanted to say thanks for response. But still i am stuck at same point. I attached Code, Revit File &amp;amp; Manifest File. Please take a look what i did wrong so not able to get the exact result. This will help me lot. I am using revit 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Clash_Example_Project_r2017_Test.rvt" file is main file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For related element please see this pic.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Issue.JPG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/478191i7E4D671A871173AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Issue.JPG" alt="Issue.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 19:27:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-20T19:27:16Z</dc:date>
    <item>
      <title>Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7855275#M51635</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an element &lt;STRONG&gt;e1&lt;/STRONG&gt; with solid &lt;STRONG&gt;s1&lt;/STRONG&gt; and another element which is from linked Revit file/IFC file element &lt;STRONG&gt;e2&lt;/STRONG&gt; with sold &lt;STRONG&gt;s2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While i am using element intersection filter element e1 return e2 as intersected element so i want to get intersection solid to calculated intersection area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Solid intersection = BooleanOperationsUtils.ExecuteBooleanOperation(solidA, solidB, BooleanOperationsType.Intersect);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This not return intersection solid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Summary as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Element e1 = Document A&lt;/P&gt;&lt;P&gt;Solid&amp;nbsp; &amp;nbsp; &amp;nbsp;s1= Document A for element e1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Element e2 = Linked Document element in Document A&lt;/P&gt;&lt;P&gt;Solid&amp;nbsp; &amp;nbsp; &amp;nbsp;s2= &lt;SPAN&gt;Linked Document element in Document A&amp;nbsp;&lt;/SPAN&gt;for element e2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Filter intersected element for e1&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;result give e2.&lt;BR /&gt;&lt;BR /&gt;Step 2: Perform BooleanOperation to get intersected solid.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;result null.&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;Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 08:48:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7855275#M51635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7859126#M51636</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Manish Singh,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could address this as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You have two solids,&amp;nbsp;A in your main project&amp;nbsp;P and B in your linked project Q.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Determine the transformation T from the linked document&amp;nbsp;Q coordinates to P's.&lt;/LI&gt;
&lt;LI&gt;Open the linked project&amp;nbsp;Q and retrieve the solid Sb of B.&lt;/LI&gt;
&lt;LI&gt;Transform it to P's coordinate space: T * Sb.&lt;/LI&gt;
&lt;LI&gt;Retrieve the solid Sa of A.&lt;/LI&gt;
&lt;LI&gt;Calculate the intersection of T*Sb with Sa.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can use an element intersection filter based on the intersection result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/03/create-2d-arc-and-filter-for-intersecting-elements.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2018/03/create-2d-arc-and-filter-for-intersecting-elements.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The transformation of Sb can be obtained using the&amp;nbsp;SolidUtils.CreateTransformed method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018.1/22592761-f39c-4f53-d33b-6c21a4fa9d2d.htm" target="_blank"&gt;http://www.revitapidocs.com/2018.1/22592761-f39c-4f53-d33b-6c21a4fa9d2d.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know whether it works and share a code snippet showing the final result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7859126#M51636</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-03-16T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7861611#M51637</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reply. I tried as you said above.&amp;nbsp; please take a look shall i doing anything wrong because still i receive intersection surface area 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static double GetIntersectedSolidArea(Document _host, Solid _hostElement, RevitLinkInstance _rins, Solid _linkedElement)
{

//Step 1 "Determine the transformation T from the linked document Q coordinates to P's."

Transform _transForm = _rins.GetTransform();

// Step 2 "Open the linked project Q and retrieve the solid Sb of B."

// _linkedElement is Solid of linked Link

// Step 3 "Transform it to P's coordinate space: T * Sb."

Solid _tmp = SolidUtils.CreateTransformed(_linkedElement, _transForm);

// Step 4 "Retrieve the solid Sa of A"
// _hostElement is hostElementSolid


Solid result= BooleanOperationsUtils.ExecuteBooleanOperation(_hostElement, _tmp, BooleanOperationsType.Intersect);


return result.SurfaceArea;

&amp;nbsp;

}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 08:48:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7861611#M51637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-17T08:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7864060#M51638</link>
      <description>&lt;P&gt;Dear Manish,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a next step, it will help if you can visualise what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A big help is to create model lines representing the solid edges, e.g., as described here to debug form creation or display a debugging point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/07/debug-geometric-form-creation.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2009/07/debug-geometric-form-creation.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/10/display-a-geometry-debugging-point-in-the-model.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/10/display-a-geometry-debugging-point-in-the-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can first verify that the transform really&amp;nbsp;achieves&amp;nbsp;what you expect it to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 07:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7864060#M51638</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-03-19T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7869505#M51639</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again i wanted to say thanks for response. But still i am stuck at same point. I attached Code, Revit File &amp;amp; Manifest File. Please take a look what i did wrong so not able to get the exact result. This will help me lot. I am using revit 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Clash_Example_Project_r2017_Test.rvt" file is main file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For related element please see this pic.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Issue.JPG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/478191i7E4D671A871173AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Issue.JPG" alt="Issue.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 19:27:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7869505#M51639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-20T19:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7900208#M51640</link>
      <description>Hi Jeremy finally i got solution . there is only one change in my case have to use element transformation of linked element instead of Linked file.</description>
      <pubDate>Mon, 02 Apr 2018 04:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7900208#M51640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T04:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7901748#M51641</link>
      <description>&lt;P&gt;Dear Manish,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations on solving this and thank you for letting us know!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide minimal code snippets before and after the fix you applied to demonstrate exactly what you mean, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I discussed a related issue in the meantime and am planning a blog post describing the solution for that case, which I thought would help you as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you have solved it yourself I would love to add your issue to the same blog post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 18:05:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7901748#M51641</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-02T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7901889#M51642</link>
      <description>Hi Jeremy&lt;BR /&gt;Sure i will add solution with file within couple of days.</description>
      <pubDate>Mon, 02 Apr 2018 19:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7901889#M51642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T19:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7907878#M51643</link>
      <description>&lt;P&gt;Here is the full description of&amp;nbsp;another solution for a similar issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/04/using-intersection-filter-with-linked-file.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2018/04/using-intersection-filter-with-linked-file.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it uses:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  Dim transform As Transform = linkedfile.GetTotalTransform&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7907878#M51643</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-04T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7945972#M51644</link>
      <description>&lt;P&gt;will you still share your solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 18:50:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/7945972#M51644</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2018-04-19T18:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/8024062#M51645</link>
      <description>&lt;P&gt;I&amp;nbsp;their any updates regarding sharing your code&amp;nbsp;sample.&lt;/P&gt;&lt;P&gt;Because i have the same issue.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;Hi Jeremy&lt;BR /&gt;Sure i will add solution with file within couple of days.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 14:47:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/8024062#M51645</guid>
      <dc:creator>BIM_S_S</dc:creator>
      <dc:date>2018-05-24T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Linked File Element Intersection Solid Geometry</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/8024256#M51646</link>
      <description>&lt;P&gt;I need to code sample in c# demonstrate how to detect intersection(clash) between&amp;nbsp; model&amp;nbsp; elements&amp;nbsp; in my files and elements in&amp;nbsp; linked file elements&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 15:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/linked-file-element-intersection-solid-geometry/m-p/8024256#M51646</guid>
      <dc:creator>BIM_S_S</dc:creator>
      <dc:date>2018-05-24T15:40:05Z</dc:date>
    </item>
  </channel>
</rss>

