<?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: collecting Instance parameters of a Family in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393925#M35750</link>
    <description>&lt;P&gt;Could you provide a little more information on what you are wanting to do with the Parameters / Families / Instances once you have them? You mention cleaning them up, but is that values only, or editing / removing the actual parameters? If it is the later, the only way to do that is in the Family editor so you would be needing to do that anyway. I think a little more information could help us get you to a solution.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 15:20:03 GMT</pubDate>
    <dc:creator>Sean_Page</dc:creator>
    <dc:date>2020-03-23T15:20:03Z</dc:date>
    <item>
      <title>collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392233#M35744</link>
      <description>&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from some of the threads here that using FiteredElementCollector with "TYPEOF(FAMILYINSTANCE)" will&lt;/P&gt;&lt;P&gt;collect instance parameters of family ONLY if they are present in the model.&lt;/P&gt;&lt;P&gt;I need to collect these properties for Families that are present in Project but I haven't used them in the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code(part of a method that receives a Family f) returns nothing because there are no instances of family in the model yet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ElementClassFilter instancecollector = new ElementClassFilter(typeof(FamilyInstance));
            FilteredElementCollector familyinstance = new FilteredElementCollector(doc);
            List&amp;lt;FamilyInstance&amp;gt; finstance = familyinstance.WherePasses(instancecollector)
                .Cast&amp;lt;FamilyInstance&amp;gt;()
                .Where(x =&amp;gt; x.Symbol.Family.Name.Equals(f.Name))
                .ToList();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is part of a cleanup I am doing on office's families.&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 15:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392233#M35744</guid>
      <dc:creator>stingers80-cgarchitect</dc:creator>
      <dc:date>2020-03-22T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392521#M35745</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Actually this is correct. FamilyInstance means there is an INSTANCE of family in the project. If you have specified FamilyType of FamilySymbol loaded in the project, you will not get collection of FamilyInstances, until you please at least one of the project.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Luki&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 20:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392521#M35745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-22T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392803#M35746</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I'm wondering how I can collect all those parameters.&lt;/P&gt;&lt;P&gt;I can see all of them in 'Revit Lookup' under FamilyInstance and I am not using those families in the model.&lt;/P&gt;&lt;P&gt;How can Revit lookup collect them since it's an Add-in as well?&lt;/P&gt;&lt;P&gt;Is there another way?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 01:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392803#M35746</guid>
      <dc:creator>stingers80-cgarchitect</dc:creator>
      <dc:date>2020-03-23T01:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392978#M35747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4202157"&gt;@stingers80-cgarchitect&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think instance parameters are accessible only for the elements that are placed inside the project.&lt;/P&gt;
&lt;P&gt;You Can't access the instance parameters before placing the element.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:54:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9392978#M35747</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2020-03-23T06:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393004#M35748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4202157"&gt;@stingers80-cgarchitect&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This will help you to collect instance parameter.You have to open Editfamily to access the instance parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;FamilyParameterSet instanceParameter = new FamilyParameterSet();
                  FilteredElementCollector coll = new FilteredElementCollector(doc).OfClass(typeof(FamilySymbol)).WhereElementIsElementType();
                  foreach(Element e in coll)
                  {
                    FamilySymbol FS = e as FamilySymbol;
                    if(FS.Name.Contains("Your Family Symbol Name"))
                    {
                        Family f = FS.Family;
                        Document famdoc=doc.EditFamily(f);
                        if(famdoc!=null)
                        {
                            FamilyManager FM = famdoc.FamilyManager;
                            if(FM!=null)
                            {
                                foreach(FamilyParameter fp in FM.Parameters)
                                {
                                    if(fp.IsInstance)
                                    {
                                        string parameterName = fp.Definition.Name;
                                        instanceParameter.Insert(fp);
                                    }
                                }
                            }
                        }                     
                    }
                  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 07:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393004#M35748</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2020-03-23T07:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393569#M35749</link>
      <description>&lt;P&gt;Thanks for reply &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tried the code yet. But opening families one by one is my last resort. there are more than 100 of them.&lt;/P&gt;&lt;P&gt;then I have to reinsert them in the project after cleaning up parameters.&lt;/P&gt;&lt;P&gt;my question is how come Revit Lookup can collect all these parameters?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 12:53:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393569#M35749</guid>
      <dc:creator>stingers80-cgarchitect</dc:creator>
      <dc:date>2020-03-23T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393925#M35750</link>
      <description>&lt;P&gt;Could you provide a little more information on what you are wanting to do with the Parameters / Families / Instances once you have them? You mention cleaning them up, but is that values only, or editing / removing the actual parameters? If it is the later, the only way to do that is in the Family editor so you would be needing to do that anyway. I think a little more information could help us get you to a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 15:20:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9393925#M35750</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-23T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: collecting Instance parameters of a Family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9394309#M35751</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3064449"&gt;@Sean_Page&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to collect all shared parameters under each family.&lt;/P&gt;&lt;P&gt;Somebody at our office had the bright idea that shared parameters need to be updated/recreated when going from revit 2018 to 2019.&lt;/P&gt;&lt;P&gt;So now, I have duplicates of shared parameters which have same name but not same GUID.&lt;/P&gt;&lt;P&gt;All these scattered in some families.&lt;/P&gt;&lt;P&gt;more than that, some of them are assigned to 'Type' and others to 'Instance' in the family.&lt;/P&gt;&lt;P&gt;I need to collect all shared parameters and hopefully automatically remove odd ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a word, for now I just need to have a clear picture of all shared parameters in families.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:49:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-instance-parameters-of-a-family/m-p/9394309#M35751</guid>
      <dc:creator>stingers80-cgarchitect</dc:creator>
      <dc:date>2020-03-23T17:49:41Z</dc:date>
    </item>
  </channel>
</rss>

