<?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: Get family types in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954831#M50625</link>
    <description>&lt;P&gt;First i suggest to get a Revit lookup, this way you can see what class and what parameters have object you selected, it make life easier.&lt;BR /&gt;Going back to your problem, it look like you what to find FamilySymbol(that's how family types class is called in Project document).&lt;/P&gt;&lt;P&gt;I can only speculate but it look like you create new types in project, but then open a family in Api from path(new made types in project are not saved to family) and search for it. Remember that if you didn't name your type in family editor it will be named by family name, but from api it will be empty string.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 07:55:59 GMT</pubDate>
    <dc:creator>MarryTookMyCoffe</dc:creator>
    <dc:date>2018-04-24T07:55:59Z</dc:date>
    <item>
      <title>Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952005#M50618</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm&amp;nbsp; trying to get family types available in the document. It looks, that I've found a simple example how to deal with family types here:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public void GetFamilyTypesInFamily(Document familyDoc)
{
    if (familyDoc.IsFamilyDocument)
    {
        FamilyManager familyManager = familyDoc.FamilyManager;

        // get types in family
        string types = "Family Types: ";
        FamilyTypeSet familyTypes = familyManager.Types;
        FamilyTypeSetIterator familyTypesItor = familyTypes.ForwardIterator();
        familyTypesItor.Reset();
        while (familyTypesItor.MoveNext())
        {
            FamilyType familyType = familyTypesItor.Current as FamilyType;
            types += "\n" + familyType.Name;
        }
        TaskDialog.Show("Revit",types);
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after I run this function I get this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="issue.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/491989i9CEFD99151202DE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.PNG" alt="issue.PNG" /&gt;&lt;/span&gt;Though I'm quite new to Revit and it's API, as I understand I have at least 2 family types (pp1 and pp2), so why I do not get them?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:03:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952005#M50618</guid>
      <dc:creator>Yonas89</dc:creator>
      <dc:date>2018-04-23T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952466#M50619</link>
      <description>&lt;P&gt;The code you show is designed to work within the family definition in an RFA file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The project browser snapshot you show is in a project, an RVT file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That requires a different approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one way to go to export a family usage report in a project to XML:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/12/xml-family-usage-report.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/12/xml-family-usage-report.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 12:58:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952466#M50619</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-23T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952500#M50620</link>
      <description>&lt;P&gt;Thanks a lot for your reply Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I cannot fully agree with you here. It's a RFA file I am working in. Also there is a condition in third line:&amp;nbsp; "&lt;SPAN&gt;if (familyDoc.IsFamilyDocument) &lt;/SPAN&gt;"&amp;nbsp; and TaskDialog only shows under this condition, thus this lets me to believe that its an RFA file type.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952500#M50620</guid>
      <dc:creator>Yonas89</dc:creator>
      <dc:date>2018-04-23T13:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952699#M50621</link>
      <description>&lt;P&gt;Oh dear. I think you are absolutely right, and I was completely wrong. Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My next suggestion would be to have a look at your RFA file database contents using RevitLookup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you done that yet?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:15:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7952699#M50621</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-23T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7953659#M50622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In general family types of an element are stored in different places (depending on which categories) in the project browser in a project document (rvt).&lt;BR /&gt;In a family document (rfa), that's different organized.&lt;BR /&gt;You will find family types in the modify tab (properties panel; with the four blue cubes icon) in a family document.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="family-types-button.png" style="width: 834px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/492257iC0D482DA2E5CA6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="family-types-button.png" alt="family-types-button.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So your screenshot saying about 'family' type pp1 and pp2, those are not your family types.&lt;/P&gt;&lt;P&gt;Your are referring to something like 'profile' types, do you? That is something different.&lt;BR /&gt;By the way, there is nothing wrong with your sample code.&lt;BR /&gt;Test it on a different family document, then you will get the family types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;so-chong&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 19:24:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7953659#M50622</guid>
      <dc:creator>so-chong</dc:creator>
      <dc:date>2018-04-23T19:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954534#M50623</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1263196"&gt;@so-chong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;indeed you are absolutely right.&amp;nbsp; However, how should I retrieve these profiles? For instance in Dynamo, it's listed under family types ( image below), but in c# as we proved it's a bit different. &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/492436iAAB180C9BBA5AED6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 05:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954534#M50623</guid>
      <dc:creator>Yonas89</dc:creator>
      <dc:date>2018-04-24T05:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954571#M50624</link>
      <description>&lt;P&gt;Hi Yonas,&lt;/P&gt;&lt;P&gt;Hmm..interesting how Dynamo place these profiles in 'Family Types'.&lt;/P&gt;&lt;P&gt;Family Types must have a different meaning in Dynamo then in Revit.&lt;/P&gt;&lt;P&gt;I have no experience with Dynamo at all.&lt;/P&gt;&lt;P&gt;Could you provide&amp;nbsp; a family document (rfa) where these profiles exist?&lt;/P&gt;&lt;P&gt;As an attachment in your message.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 05:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954571#M50624</guid>
      <dc:creator>so-chong</dc:creator>
      <dc:date>2018-04-24T05:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954831#M50625</link>
      <description>&lt;P&gt;First i suggest to get a Revit lookup, this way you can see what class and what parameters have object you selected, it make life easier.&lt;BR /&gt;Going back to your problem, it look like you what to find FamilySymbol(that's how family types class is called in Project document).&lt;/P&gt;&lt;P&gt;I can only speculate but it look like you create new types in project, but then open a family in Api from path(new made types in project are not saved to family) and search for it. Remember that if you didn't name your type in family editor it will be named by family name, but from api it will be empty string.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:55:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954831#M50625</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2018-04-24T07:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954933#M50626</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1263196"&gt;@so-chong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please find an attached family file.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 08:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7954933#M50626</guid>
      <dc:creator>Yonas89</dc:creator>
      <dc:date>2018-04-24T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7955052#M50627</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3894260"&gt;@MarryTookMyCoffe&lt;/a&gt;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks a lot for your advice about Revit look up.&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3894260"&gt;@MarryTookMyCoffe&lt;/a&gt;, you were right. It's familysymbol type. Now I am able to get these types.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 09:40:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/7955052#M50627</guid>
      <dc:creator>Yonas89</dc:creator>
      <dc:date>2018-04-24T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/11351306#M50628</link>
      <description>&lt;P&gt;Can you please send final product I need to use this code?&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1857219"&gt;@Yonas89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:09:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/11351306#M50628</guid>
      <dc:creator>mary.gurrieri</dc:creator>
      <dc:date>2022-08-10T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get family types</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/12093414#M50629</link>
      <description>&lt;P&gt;Sorry, is there any code? I think I have the same problem.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:11:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-family-types/m-p/12093414#M50629</guid>
      <dc:creator>choshQT24J</dc:creator>
      <dc:date>2023-07-11T11:11:40Z</dc:date>
    </item>
  </channel>
</rss>

