<?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: Runtime Error using Line.CreateBound in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437513#M78707</link>
    <description>Yes...CreateBound() came in 2014.&lt;BR /&gt;&lt;BR /&gt;I think we were using Document.Application.Create.NewLine() before new funtion(s).</description>
    <pubDate>Thu, 19 Sep 2013 05:27:44 GMT</pubDate>
    <dc:creator>ollikat</dc:creator>
    <dc:date>2013-09-19T05:27:44Z</dc:date>
    <item>
      <title>Runtime Error using Line.CreateBound</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437483#M78704</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a Line in my Addin. When I run my code in that creates a line using the static function 'Line.CreateBound()' I get a runtime error. The error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Method not found 'Autodesk.Revit.DB.Line Autodesk.Revit.DB.Line.CreateBound(Autodesk.Revit.DB.XYZ, Autodesk.Revit.DB.XYZ)'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the error occurs at runtime and not compile time. What is going wrong and how can I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Line pipeGeom = Line.CreateBound(strt, end); // error occurs here. Note strt and end are not null and are valid points
FamilyInstance pipe = doc.Create.NewFamilyInstance(pipeGeom, pipeSymbol, uiDoc.ActiveView);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 04:42:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437483#M78704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-19T04:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error using Line.CreateBound</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437509#M78705</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Seems to me that you have built your add-in with newer Revit API than the Revit where you are running your add-in. The function you mentioned came to API a release or two ago.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 05:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437509#M78705</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2013-09-19T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error using Line.CreateBound</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437511#M78706</link>
      <description>&lt;P&gt;Thanks for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I think I have compiled the Addin using Revit 2013 or 2014. I am running the addin in Revit 2013 in a MEP project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Line.CreateBound() is not present in 2013 do you know how I create a line in 2013??&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 05:19:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437511#M78706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-19T05:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error using Line.CreateBound</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437513#M78707</link>
      <description>Yes...CreateBound() came in 2014.&lt;BR /&gt;&lt;BR /&gt;I think we were using Document.Application.Create.NewLine() before new funtion(s).</description>
      <pubDate>Thu, 19 Sep 2013 05:27:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-using-line-createbound/m-p/4437513#M78707</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2013-09-19T05:27:44Z</dc:date>
    </item>
  </channel>
</rss>

