<?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: Reloading family symbol fails for the second time in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13083782#M2566</link>
    <description>&lt;P&gt;Depending on Family (and number of) doesn't this add a huge amount of time to update a family, seems a bit overkill?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the family from disk and in project is detected by Revit as identical, why not retrieve the type values of the Disk Family by opening it in the background, reading it's type values of the needed type and push those back into the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And better even, if a TypeCatalog is used (or a cached dataset of the values) the updating would be even quicker. (as you are already doing with the ContentVersion XML)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw; if the ContentVersion is different shouldn't the family be different, and LoadFamilySymbol work, or can this also refer to changes in parameter values? And in that case (if only a parameter value is changed) does LoadFamilySymbol then also not work/overwrite?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering what the use case is for this?&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ps. I have several tools that push data into the model elements based on some criteria outside or in the model, but I only push data that's different and the user gets notification of x-items changed (and which), so to reduce access to elements in regards to worksharing/ownership and time. My advise is; only overwrite what's needed.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 17:50:52 GMT</pubDate>
    <dc:creator>TripleM-Dev.net</dc:creator>
    <dc:date>2024-10-14T17:50:52Z</dc:date>
    <item>
      <title>Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078582#M2550</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a problem with (re)loading a family symbol.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// FamilySymbol ophalen vanuit familyName en familytype name
fs = new FilteredElementCollector(doc)
    .OfClass(typeof(FamilySymbol))
    .Cast&amp;lt;FamilySymbol&amp;gt;()
    .FirstOrDefault(x =&amp;gt; x.FamilyName == familyName &amp;amp;&amp;amp; x.Name == familyTypeName);

CustomFamilyLoadOptions load_options = new CustomFamilyLoadOptions();


// Als niet aanwezig is dan inladen
if (fs == null)
{

    if (!doc.LoadFamilySymbol(familyPath, familyTypeName, load_options, out fs))
    {
        TaskDialog.Show("Error", "Er gaat iets mis met het inladen van de family.");
        fs = null;
    }                        
}
else if(fs != null)
{
    // content versie xml ophalen
    string contentVersieXml = selectedFileData.ContentVersie.Replace("Contentversie: ", "");


    // Contentversie uit symbol halen
    string contVersieFamily = fs.LookupParameter("NLRS_C_content_versie")?.AsString();

    if(contentVersieXml != contVersieFamily)
    {


        bool result = doc.LoadFamilySymbol(familyPath, familyTypeName, load_options, out fs);

        if (!result)
        {
            TaskDialog.Show("Error", "Er gaat iets mis met het (her)inladen van de family.");
            fs = null;
        }
    }


}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the debug function, the first familysymbol i try to reload is reloading well.&lt;/P&gt;&lt;P&gt;The parameters are change and everything is fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The second family type that I try reload fails, the&amp;nbsp; &amp;nbsp;result is true but the&amp;nbsp;IFamilyLoadOptions doesn't activate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my IFamilyLoadOptions, the first time the debug is writing this line:&lt;BR /&gt;OnFamilyFound _ FamilyInUse: True - overwriteParameterValues True"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second time there is no debug.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;/// &amp;lt;summary&amp;gt;
/// Methode hoe de family ingeladen moet worden. 
/// Als family gevonden wordt dan overschrijft de family de parameters.
/// Als Shared family gevonden worden de subcomponenten ook overschrijven.
/// &amp;lt;/summary&amp;gt;
[Transaction(TransactionMode.Manual)]
public class CustomFamilyLoadOptions : IFamilyLoadOptions
{
    public bool OnFamilyFound(bool familyInUse, out bool overwriteParameterValues)
    {


        // Als de familie al in gebruik is, beslissen we hier of we deze willen overschrijven of niet.
        // In dit voorbeeld zullen we de familie altijd overschrijven, zelfs als deze in gebruik is.
        overwriteParameterValues = true;
        
        
        Debug.WriteLine($"OnFamilyFound _ FamilyInUse: {familyInUse} - overwriteParameterValues {overwriteParameterValues}");
        return true;
    }

    public bool OnSharedFamilyFound(Family sharedFamily, bool familyInUse, out FamilySource source, out bool overwriteParameterValues)
    {
        // Als een gedeelde familie wordt gevonden, kunnen we hier beslissen of we deze willen laden of niet.
        // In dit voorbeeld zullen we de gedeelde familie altijd laden, zelfs als deze al in gebruik is.
        source = FamilySource.Family;
        overwriteParameterValues = true;

        Debug.WriteLine($"OnSharedFamilyFound _ sharedFamily: {sharedFamily} - familyInUse {familyInUse} - source {source} - overwriteParameterValues {overwriteParameterValues}");

        return true;
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this example in the SDK:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/jeremytammik/RevitSdkSamples/blob/master/SDK/Samples/FamilyParametersOrder/CS/SortLoadedFamiliesParamsForm.cs#L86" target="_blank"&gt;RevitSdkSamples/SDK/Samples/FamilyParametersOrder/CS/SortLoadedFamiliesParamsForm.cs at master · jeremytammik/RevitSdkSamples (github.com)&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/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;is there a specific reason that this example is creating a temp file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KG&amp;nbsp;&lt;BR /&gt;Jan Willem&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 10:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078582#M2550</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-11T10:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078663#M2551</link>
      <description>&lt;P&gt;I did not read all your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, just looking at this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-csharp" tabindex="0"&gt;&lt;CODE&gt;fs = new FilteredElementCollector(doc)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume that the resulting variable fs will never be null, even if the resulting collection is empty. If so, that might explain why the following statement will never be true, and the code in the if-scope will never execute:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-csharp" tabindex="0"&gt;&lt;CODE&gt;else if(fs != null)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest always running your dubious code in the debugger to step through it line by line and see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 11:21:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078663#M2551</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-10-11T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078707#M2552</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The fs started as :&amp;nbsp;FamilySymbol fs = null;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the weird thing, the result is true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jwvanasselt_0-1728647335960.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1420465iF01599E09DF9B449/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jwvanasselt_0-1728647335960.png" alt="jwvanasselt_0-1728647335960.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But the IFamilyLoadOptions is not activated. Is that because the modify date of the family isnt change?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 11:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13078707#M2552</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-11T11:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079204#M2553</link>
      <description>&lt;P&gt;The '&lt;STRONG&gt;NLRS_C_content_versie&lt;/STRONG&gt;' is a type parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are using the &lt;STRONG&gt;LoadFamilySymbol &lt;/STRONG&gt;to load a symbol in a existent &lt;STRONG&gt;Family. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's a good questing if the &lt;STRONG&gt;IFamilyLoadOptions &lt;/STRONG&gt;should trigger with a &lt;STRONG&gt;FamilySymbol&lt;/STRONG&gt; conflict.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079204#M2553</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-10-11T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079519#M2554</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the parameter is a type parameter.&lt;/P&gt;&lt;P&gt;I try to reload it in a project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IFamilyLoadOptions doesn't trigger.. i guess because the family is already in the project by the first action, but I reloaded a specific symbol.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see a remark on the OnFamilyFound bool, it says should only trigger when family is changed, in this case it isnt ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a temp file, but nothing works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 17:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079519#M2554</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-11T17:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079609#M2555</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8555692"&gt;@jw.vanasselt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't looked into the full code, maybe a variable is re-used or something...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But keep in mind filtering for a Symbol only using it's familyname and typename CAN return others if the Category isn't taken into account. Familynames across categories can be thesame.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Given that with the typename the chance is low. I never use FirstOrDefault in such case, but test the collector on count = 1 (Or use Single/SingleOrDefault) -&amp;gt; Well not for UserFamilies..So would be relative save as long as they aren't named after system families (A window family "Walls" can exist...)&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the Type come from the family file or a TypeCatalog?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:14:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079609#M2555</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-10-11T19:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079633#M2556</link>
      <description>&lt;P&gt;From the documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2023/255f2e8c-8990-8617-7f16-a77915b8a52e.htm" target="_blank" rel="noopener"&gt;LoadFamilySymbol&lt;/A&gt; :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Return Value&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;True if the family type/symbol was loaded successfully into the project, otherwise False.&lt;/EM&gt;&lt;/STRONG&gt; -&amp;gt; So not sure what happens if the type values are changed in the project but the Family file on disk isn't. -&amp;gt; In the UI this won't trigger a warning and no option to overwrite the values of the family type in the project.&lt;/P&gt;&lt;P&gt;If you change something to the Family File (new type + delete type) it's seen as changed, maybe same for the API version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would test it out with a small controlled code snipplet (fixed family name, maybe even fixed ID...) in the API and see what it does in each situation + identical test in the UI (Same unchanged family and a updated family from disk).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 18:53:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079633#M2556</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-10-11T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079663#M2557</link>
      <description>&lt;P&gt;I'm doing some unit test to understand what is happening, and when loading the same family file the &lt;STRONG&gt;LoadFamily&lt;/STRONG&gt; return &lt;STRONG&gt;false&lt;/STRONG&gt; even if I change the parameters in the symbols. The &lt;STRONG&gt;LoadFamilySymbol &lt;/STRONG&gt;return &lt;STRONG&gt;true&lt;/STRONG&gt; but the parameter in the type is not replaced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the main &lt;STRONG&gt;Family&lt;/STRONG&gt; need to be changed in some way to make &lt;STRONG&gt;IFamilyLoadOptions&lt;/STRONG&gt; to trigger and replace the parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you change the type parameter and try to load the family again, if is the same file does not seen to replace the parameters. I tried to copy the file, and didn't work. Only if I changed the &lt;STRONG&gt;Family&lt;/STRONG&gt; and reload in some way in the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the test project:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;RevitTest.FamilyLoad.Tests: &lt;A href="https://github.com/ricaun-io/RevitTest.FamilyLoad.Tests" target="_blank"&gt;https://github.com/ricaun-io/RevitTest.FamilyLoad.Tests&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079663#M2557</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-10-11T19:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079671#M2558</link>
      <description>&lt;P&gt;And what if it's loaded from another location?&lt;/P&gt;&lt;P&gt;The location a family is loaded from is available in the project, so that should update if loaded from another location....&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079671#M2558</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-10-11T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079696#M2559</link>
      <description>&lt;P&gt;I tried to copy the file to a different folder and &lt;STRONG&gt;Revit&lt;/STRONG&gt; is smart to know that is the same file, is not gonna reload a family that is already loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricaun_0-1728674992656.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1420656iFB8BDDF655191FF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ricaun_0-1728674992656.png" alt="ricaun_0-1728674992656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13079696#M2559</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-10-11T19:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080422#M2560</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for building the test &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Well that's exactly the thing I need.&lt;/P&gt;&lt;P&gt;I tried it manual with the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only method I found is to rename the family with _old and reload the new one.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 08:34:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080422#M2560</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-12T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080522#M2561</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3633270"&gt;@TripleM-Dev.net&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a family type, not a catalog&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 10:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080522#M2561</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-12T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080701#M2562</link>
      <description>&lt;P&gt;Is you rename you gonna need to find all the instances and replace with the new family, and could be some reference you could forget to swap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way would be to open the family changed something without changing and reload in the document. The next time you try to load the same family should be different and &lt;STRONG&gt;IFamilyLoadOptions &lt;/STRONG&gt;trigger and the type parameter is replaced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code force to open the family, change the current type name and rollback, and load back in the document.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;FamilyUtils.EditLoadFamily(document, FamilyUtils.SelectFamily(document, FamilyName), (familyDocument) =&amp;gt;
{
    using (Transaction transaction = new Transaction(familyDocument))
    {
        transaction.Start("Change Family");

        var name = familyDocument.FamilyManager.CurrentType.Name;
        familyDocument.FamilyManager.RenameCurrentType(name + $" {DateTime.UtcNow.Ticks}");
        familyDocument.FamilyManager.RenameCurrentType(name);

        transaction.Commit();
    }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem could be if you have a big document and this could take a while to regenerate the document after reload the family.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the &lt;STRONG&gt;FamilyUtils&lt;/STRONG&gt; class:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/ricaun-io/RevitTest.FamilyLoad.Tests/blob/develop/RevitTest.FamilyLoad.Tests/FamilyUtils.cs" target="_blank"&gt;https://github.com/ricaun-io/RevitTest.FamilyLoad.Tests/blob/develop/RevitTest.FamilyLoad.Tests/FamilyUtils.cs&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 13:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080701#M2562</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-10-12T13:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080842#M2563</link>
      <description>&lt;P&gt;That's a nice one will try at monday!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 16:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13080842#M2563</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-12T16:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13082556#M2564</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example has been edited, if I see correctly the family from the project?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the changed family in a central environment, with this action he will open and reload the current one (in the project). But the symbol that is present in the project is outdated and cannot be orderded.&lt;BR /&gt;Or did I miss a line of code?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 07:04:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13082556#M2564</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-14T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13082717#M2565</link>
      <description>&lt;P&gt;Got it!&lt;BR /&gt;Forgot to reload the Family Symbol first before edit that family &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks alot!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:43:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13082717#M2565</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-14T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13083782#M2566</link>
      <description>&lt;P&gt;Depending on Family (and number of) doesn't this add a huge amount of time to update a family, seems a bit overkill?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the family from disk and in project is detected by Revit as identical, why not retrieve the type values of the Disk Family by opening it in the background, reading it's type values of the needed type and push those back into the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And better even, if a TypeCatalog is used (or a cached dataset of the values) the updating would be even quicker. (as you are already doing with the ContentVersion XML)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw; if the ContentVersion is different shouldn't the family be different, and LoadFamilySymbol work, or can this also refer to changes in parameter values? And in that case (if only a parameter value is changed) does LoadFamilySymbol then also not work/overwrite?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering what the use case is for this?&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ps. I have several tools that push data into the model elements based on some criteria outside or in the model, but I only push data that's different and the user gets notification of x-items changed (and which), so to reduce access to elements in regards to worksharing/ownership and time. My advise is; only overwrite what's needed.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 17:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13083782#M2566</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2024-10-14T17:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading family symbol fails for the second time</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13084775#M2567</link>
      <description>&lt;P&gt;That's a good point, and I will definitely look into it. Do you have any examples you could share to demonstrate how you are handling this in your tools? It would be helpful to see how you manage pushing only the necessary data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Jan Willem&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 06:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/reloading-family-symbol-fails-for-the-second-time/m-p/13084775#M2567</guid>
      <dc:creator>jw.vanasselt</dc:creator>
      <dc:date>2024-10-15T06:08:44Z</dc:date>
    </item>
  </channel>
</rss>

