<?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: Trim/Extend Element Method ? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677150#M32697</link>
    <description>&lt;P&gt;Can probably find the intersection via Line.CreateUnbound you'll get the direction from each line by deducting one end from the other and then normalising the XYZ, origin can be any point on the line i.e either end point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above is for straight lines if you have arcs then you can do similar but you'll have more than one intersection, however&amp;nbsp; only one of those intersections is nearest to the original end of the beam considered. You can't create an unbound but you can create one that is between 0 and 2Pi.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 16:18:53 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2020-08-06T16:18:53Z</dc:date>
    <item>
      <title>Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9671024#M32691</link>
      <description>&lt;P&gt;&amp;nbsp;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying write add-in to extend beam into face of column.&lt;BR /&gt;But, i can't find any something about Revit API to action&lt;/P&gt;&lt;P&gt;How can i solved this issue ?&lt;BR /&gt;Many thanks.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New Bitmap Image.jpg" style="width: 541px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/802892i75A8C64BFE4211DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="New Bitmap Image.jpg" alt="New Bitmap Image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 02:28:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9671024#M32691</guid>
      <dc:creator>mr.engineer.aec</dc:creator>
      <dc:date>2020-08-04T02:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676073#M32692</link>
      <description>&lt;P&gt;I also want to know further about this issue. I am currently interested in extending one Line element to another.&lt;/P&gt;&lt;P&gt;For example I have 2 simple lines such as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;XYZ ptA = XYZ.Zero;
XYZ ptB = new XYZ(10, 0, 0);
XYZ ptC = new XYZ(5, 5, 0);
XYZ ptD = new XYZ(5, 10, 0);

Line line1 = Line.CreateBound(ptA,ptB);
Line line2 = Line.CreateBound(ptC,ptD);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;How can I extend line2 so it touches with line1? I tried looking at the SDK Documentation and the revitapidocs for Lines, Curves, XYZ and I still have no clue. I find something called TrimExtendCurves Method but don't know how to use it properly, if it is limited to Rebar elements only or if it is even relevant with the current issue at all.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:20:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676073#M32692</guid>
      <dc:creator>kevin.anggrek</dc:creator>
      <dc:date>2020-08-06T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676155#M32693</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9129470"&gt;@kevin.anggrek&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;you can get the intersection of two lines P(I), and check the distance of between intersection points and each end point of the line you want to extent. Whichever is short distance, you can replace that endpoint it by P(I) in create line bound.&lt;/P&gt;&lt;P&gt;you’ll get the desired extension.&amp;nbsp;&lt;BR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6908360"&gt;@mr.engineer.aec&lt;/a&gt;&amp;nbsp; same concept can be applied for walls and columns, I am not really sure what geometry element they are but you can use RevitLookup to see the geometry type and create the logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cheers!&lt;/P&gt;&lt;P&gt;Vish. K.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:48:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676155#M32693</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-06T07:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676598#M32694</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8487987"&gt;@vkelani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unless I misunderstood your explanation, the two lines I mentioned before are not intersecting with each other yet and thus if I use the Line.Intersects Method, no intersection point would be obtained at all (Null IntersectionResult as the result of the method). Could you elaborate further on what you mean by getting the intersection point between two lines that are not intersected with each other?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 12:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676598#M32694</guid>
      <dc:creator>kevin.anggrek</dc:creator>
      <dc:date>2020-08-06T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676695#M32695</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just &lt;STRONG&gt;elongate&lt;/STRONG&gt; your lines to find the proposed intersection point.&lt;/P&gt;
&lt;P&gt;A line's direction and its negative are the vectors you need to find the start and end point of the elongated line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reitlizer&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 12:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9676695#M32695</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2020-08-06T12:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677028#M32696</link>
      <description>&lt;P&gt;Dear Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lines are not intersecting but you can get the intersecting point by making your own method, because that’s the point you want to extend your first line right?, now for method, you can get the great explanation on geometric calcs by Mr. Tammik on thebuildingcoder.typepad.com.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6908360"&gt;@mr.engineer.aec&lt;/a&gt;&amp;nbsp; with a quick search, I found, there’s a “FindColumns” sample provided on thebuildingcoders.typepad.com blog.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;P&gt;Vish. K.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:12:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677028#M32696</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-06T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677150#M32697</link>
      <description>&lt;P&gt;Can probably find the intersection via Line.CreateUnbound you'll get the direction from each line by deducting one end from the other and then normalising the XYZ, origin can be any point on the line i.e either end point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above is for straight lines if you have arcs then you can do similar but you'll have more than one intersection, however&amp;nbsp; only one of those intersections is nearest to the original end of the beam considered. You can't create an unbound but you can create one that is between 0 and 2Pi.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 16:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677150#M32697</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-08-06T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677228#M32698</link>
      <description>&lt;P&gt;Edit*:&lt;/P&gt;&lt;P&gt;After implementing your method or one by thebuildingcoder, the code would be simply-&lt;/P&gt;&lt;P&gt;XYZ intersection = util.intersection(line 1, line 2)&lt;/P&gt;&lt;P&gt;And then you can extend line 1 to line 2 (intersection point).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Vish. K.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 16:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9677228#M32698</guid>
      <dc:creator>vkelani</dc:creator>
      <dc:date>2020-08-06T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9678035#M32699</link>
      <description>&lt;P&gt;Thanks to everyone for the replies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you sir for the detailed explanation, by using CreateUnbound, I can basically elongate the line and find the intersection points that I need. Then, I can change the endpoints to the intersection point as a way to extend the line just as explained by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8487987"&gt;@vkelani&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes sir, by knowing the direction vector of the line, I can elongate the line just as mentioned by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8487987"&gt;@vkelani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow, I am amazed that Mr. Tammik has already created another Intersection method that takes two unbound lines as input. This could greatly simplify the process of finding the intersection points. Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 02:26:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9678035#M32699</guid>
      <dc:creator>kevin.anggrek</dc:creator>
      <dc:date>2020-08-07T02:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trim/Extend Element Method ?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9678508#M32700</link>
      <description>&lt;P&gt;&amp;nbsp;Many thanks all replies.&lt;/P&gt;&lt;P&gt;At the end, don't have any method to action.&lt;BR /&gt;I think i'll get end point and project on to face.&lt;BR /&gt;Although it seem manual but i think it can be useful.&lt;/P&gt;&lt;P&gt;Many thanks for the help&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 08:47:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-extend-element-method/m-p/9678508#M32700</guid>
      <dc:creator>mr.engineer.aec</dc:creator>
      <dc:date>2020-08-07T08:47:38Z</dc:date>
    </item>
  </channel>
</rss>

