<?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 when creating a FamilyInstance in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4450041#M78689</link>
    <description>&lt;P&gt;Thanks for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The family I am using is actually one that is there when I install Revit. So the family hasn't been created or altered by myself. I'm not sure how to determine what template a family uses/used though?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The family is located at: C:\ProgramData\Autodesk\RVT 2013\Libraries\Australia\Structure\Structural\Framing\Steel\Robobat Specific\pipes.rfa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2013 22:38:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-23T22:38:20Z</dc:date>
    <item>
      <title>Runtime Error when creating a FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4446829#M78687</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a FamilyInstance that is very similar to a pipe, ie, is a cylinder with a start and end point. I am using the function &lt;EM&gt;NewFamilyInstance(Line, FamilySymbol, View)&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Problem:&lt;/STRONG&gt; When I create my FamilyInstance using the aforementioned function I get a runtime error: &lt;STRONG&gt;"This method is only applicable for the curve based family"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some background information; I am running my addin in revit 2013 and my addin is compiled using Revit 2013 DLL's (RevitAPI &amp;amp; RevitAPIUI). The family/family symbol I am loading is pretty much the following family that has been expanded: C:\ProgramData\Autodesk\RVT 2014\Libraries\Australia\Structural Framing\Steel\Robobat Specific\Pipes.rfa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what is going wrong and how I can successfully create my FamilyInstance (that is very similar to a pipe). Note I need to specify the FamilyInstances's strart and end points which is why I am using this specific NewFamilyInstance function version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Line pipeGeom       = doc.Application.Create.NewLine(strt, end, false);
FamilyInstance pipe = doc.Create.NewFamilyInstance(pipeGeom, pipeSymbol, uiDoc.ActiveView); // Error occurs here&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2013 23:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4446829#M78687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-22T23:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error when creating a FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4449707#M78688</link>
      <description>&lt;P&gt;Just checking: was the family created with a 'line based' template? Such as 'Metric Generic Model line based.rft'?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 19:10:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4449707#M78688</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-09-23T19:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error when creating a FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4450041#M78689</link>
      <description>&lt;P&gt;Thanks for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The family I am using is actually one that is there when I install Revit. So the family hasn't been created or altered by myself. I'm not sure how to determine what template a family uses/used though?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The family is located at: C:\ProgramData\Autodesk\RVT 2013\Libraries\Australia\Structure\Structural\Framing\Steel\Robobat Specific\pipes.rfa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 22:38:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4450041#M78689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-23T22:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error when creating a FamilyInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4460827#M78690</link>
      <description>&lt;P&gt;When you open the .rfa, is there one Reference Line where the family starts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or when you insert, the Element.Location property is of type LocationCurve?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 21:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/runtime-error-when-creating-a-familyinstance/m-p/4460827#M78690</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-09-26T21:10:16Z</dc:date>
    </item>
  </channel>
</rss>

