<?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 LoadFamily Method Exceptions in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/loadfamily-method-exceptions/m-p/10384882#M25442</link>
    <description>&lt;P&gt;As per API Documentation for: &lt;STRONG&gt;LoadFamily Method (Document, IFamilyLoadOptions) &lt;/STRONG&gt;at this page:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.revitapidocs.com/2021.1/cb950c8e-f440-c6db-8563-d1dd16ef3fee.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2021.1/cb950c8e-f440-c6db-8563-d1dd16ef3fee.htm&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Autodesk.Revit.Exceptions InvalidOperationException&lt;/STRONG&gt; may be raised when "&lt;STRONG&gt;the load was cancelled due to a conflict and a False return from one of the interface methods&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;What is this mean?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jun 2021 12:10:41 GMT</pubDate>
    <dc:creator>ahmadmahrous_1</dc:creator>
    <dc:date>2021-06-12T12:10:41Z</dc:date>
    <item>
      <title>LoadFamily Method Exceptions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/loadfamily-method-exceptions/m-p/10384882#M25442</link>
      <description>&lt;P&gt;As per API Documentation for: &lt;STRONG&gt;LoadFamily Method (Document, IFamilyLoadOptions) &lt;/STRONG&gt;at this page:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.revitapidocs.com/2021.1/cb950c8e-f440-c6db-8563-d1dd16ef3fee.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2021.1/cb950c8e-f440-c6db-8563-d1dd16ef3fee.htm&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Autodesk.Revit.Exceptions InvalidOperationException&lt;/STRONG&gt; may be raised when "&lt;STRONG&gt;the load was cancelled due to a conflict and a False return from one of the interface methods&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;What is this mean?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 12:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/loadfamily-method-exceptions/m-p/10384882#M25442</guid>
      <dc:creator>ahmadmahrous_1</dc:creator>
      <dc:date>2021-06-12T12:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: LoadFamily Method Exceptions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/loadfamily-method-exceptions/m-p/10385651#M25443</link>
      <description>&lt;P&gt;Someone please correct me if this is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LoadFamily() takes two arguments:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;a target document&lt;/LI&gt;&lt;LI&gt;class that inherits from the IFamilyLoadOptions interface&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IFamilyLoadOptions interface has two methods, both have a &lt;EM&gt;bool&lt;/EM&gt; return value. Revit uses these two methods to execute some user-defined code prior to loading the family. This exception will be thrown if either of these methods return &lt;EM&gt;false&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 22:02:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/loadfamily-method-exceptions/m-p/10385651#M25443</guid>
      <dc:creator>bhprest</dc:creator>
      <dc:date>2021-06-12T22:02:36Z</dc:date>
    </item>
  </channel>
</rss>

