<?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 Curve objects in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944994#M59725</link>
    <description>&lt;P&gt;Revit has a method to set the endpoints of a Curve:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="keyword"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;void&lt;/SPAN&gt; &lt;SPAN class="identifier"&gt;MakeBound&lt;/SPAN&gt;(&lt;BR /&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;startParameter&lt;/SPAN&gt;,&lt;BR /&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;endParameter&lt;/SPAN&gt;&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameters&lt;/P&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;SPAN class="parameter"&gt; startParameter &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;Type: &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt; System Double &lt;/A&gt; &lt;BR /&gt; The new parameter of the start point.&lt;/DD&gt;
&lt;/DL&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;SPAN class="parameter"&gt; endParameter &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;Type: &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt; System Double &lt;/A&gt; &lt;BR /&gt; The new parameter of the end point.&lt;/DD&gt;
&lt;/DL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can clone a curve and adjust the endpoints.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 15:34:27 GMT</pubDate>
    <dc:creator>FAIR59</dc:creator>
    <dc:date>2017-03-14T15:34:27Z</dc:date>
    <item>
      <title>Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6937392#M59716</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am wondering if there is any way to break&amp;nbsp;Curve objects into segments. My code gets a wall and gets the CurveLoop containing its edges. Then I want to offset Curves by a different distances. Finally to regenerate the CurveLoop, I need to make sure the curves are all connected to each other (a trim-like functionality). Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 14:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6937392#M59716</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-10T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6942447#M59717</link>
      <description>&lt;P&gt;I see the Cureve.Createoffset method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you intending to use that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then stitch together the new curves into a set of consecutive curves with mutual end points to create a curve loop?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see no direct support for trimming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can calculate intersections and use the resulting points to shorten the offset curves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they need to be lenghtened instead of shortened, it might be harder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All in all, this does not sound like a task I would try to address using the pure Revit API.&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, 13 Mar 2017 15:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6942447#M59717</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-03-13T15:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6942653#M59718</link>
      <description>&lt;P&gt;Jeremy, I took care of lengthening by creating unbound lines in the same direction as the curve's endpoint tangent and&amp;nbsp;find their intersection. This is actually adding extra extension segments to the curveloop. However, for shortening the curves, I need some instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given a curve (not necessarily linear), I would like to locate a point on it (such as its intersection with another curve), and split the curve at that point. I am wondering if there is any&amp;nbsp;direct API for such operation. If not any insight on the workaround?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I could think of is to get an approximation of the curve using Curve.Tessellate method; Retrieve the points that lie on the desired segment; Analyze them and use the right Create method (either Line.Create, NurbSpline.Create, etc) to create a new curve. Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:08:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6942653#M59718</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-13T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6943889#M59719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when entering just "*intersection*" into 2017 RevitAPI.chm, there are 276 matching entries.&lt;/P&gt;
&lt;P&gt;That's a starting point...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 07:46:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6943889#M59719</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-03-14T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944540#M59720</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;. Actually, finding the intersection is not difficult at all. I am trying to find out how to trim the curves at their intersection. Either using direct API commands (which I doubt they exists) or another workaround.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:15:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944540#M59720</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-14T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944580#M59721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;once you have found your intersection points, you can trim the curves.&lt;/P&gt;
&lt;P&gt;Just create new lines or arcs using the former curve end points and intersection points.&lt;/P&gt;
&lt;P&gt;Which ones to use depends on distance values (to a given point for the side to cut).&lt;/P&gt;
&lt;P&gt;You need to do some math.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For arcs to cut, you need an additional point on that arc to create the new cut arc (Arc.Create(p1,p2,p3) needs three points, Line.CreateBound(p1,p2) two).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the new Lines and Arcs, you can use them to replace the former DetailCurves' Locations.&lt;/P&gt;
&lt;P&gt;Or you can create new DetailCurves and delete the source Elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 13:31:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944580#M59721</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-03-14T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944652#M59722</link>
      <description>&lt;P&gt;Thanks again, specially for elaborating. This would definitely work. Since I need to handle all different types of curves (not only lines and arcs but NurbSplines etc), do you think&amp;nbsp;tessellate would work? In other words, is tessellate method a proper way&amp;nbsp;to analyze NurbSpline curves since it does not have any input for tolerance?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:01:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944652#M59722</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-14T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944718#M59723</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for NurbSplines, I don't think that you can modify it that easy since the math is more complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a Spline that looks &lt;EM&gt;similar&lt;/EM&gt;, but I don't think the user wants his original geometry getting simplified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to &lt;EM&gt;exactly&lt;/EM&gt; cut a Spline - that's a question for math students.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944718#M59723</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-03-14T14:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944779#M59724</link>
      <description>&lt;P&gt;I totally believe in&amp;nbsp;not simplifying geometry. Good problem for math gurus&amp;nbsp;to think about.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944779#M59724</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-14T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944994#M59725</link>
      <description>&lt;P&gt;Revit has a method to set the endpoints of a Curve:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="keyword"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;void&lt;/SPAN&gt; &lt;SPAN class="identifier"&gt;MakeBound&lt;/SPAN&gt;(&lt;BR /&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;startParameter&lt;/SPAN&gt;,&lt;BR /&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;endParameter&lt;/SPAN&gt;&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameters&lt;/P&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;SPAN class="parameter"&gt; startParameter &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;Type: &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt; System Double &lt;/A&gt; &lt;BR /&gt; The new parameter of the start point.&lt;/DD&gt;
&lt;/DL&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;SPAN class="parameter"&gt; endParameter &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;Type: &lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt; System Double &lt;/A&gt; &lt;BR /&gt; The new parameter of the end point.&lt;/DD&gt;
&lt;/DL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can clone a curve and adjust the endpoints.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:34:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6944994#M59725</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-03-14T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6945040#M59726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so it looks as if one just needs to get the IntersectionResult.Parameter property and feed the MakeBound method with it, plus the curve's remaining end parameter.&lt;/P&gt;
&lt;P&gt;Cannot imagine that this will function with Splines, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6945040#M59726</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-03-14T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Curve objects</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6945051#M59727</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2083518"&gt;@FAIR59&lt;/a&gt;,&amp;nbsp;very interesting! I should give it a try but I have the same concern as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;&amp;nbsp;(about NurbSplines etc)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trim-curve-objects/m-p/6945051#M59727</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2017-03-14T15:55:44Z</dc:date>
    </item>
  </channel>
</rss>

