<?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: Find GenericForm generating solid of family instance in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12610466#M6845</link>
    <description>&lt;P&gt;You can obviously perform a geometrical analysis comparing shape, size, location and orientation of the objects in the family definition and the family instance. I am not aware of any other standard identifiers that you could use. You could obviously add some features yourself to help identify what is what. In HVAC equipment, for instance, you often equip the surfaces with connectors. These could be used to identify the corresponding surfaces in the family instance. For generic forms, you could add little line segments of different lengths to various faces, for instance, using the line lengths to identify and differentiate them. Maybe you could even add lines and hide them, so they do not disturb visually. This is just crazy brainstorming, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 09:38:03 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2024-03-04T09:38:03Z</dc:date>
    <item>
      <title>Find GenericForm generating solid of family instance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12609571#M6844</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m struggling with families and its geometry. Maybe someone can help me to answer my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a family instance. By analysing its geometry I know that it consists of 6 solids. If I open the family though CurrentDoc.EditFamily(familyInstance.Symbol.Family) itself I find out though filteredElementCollector that in Family Document there are 6 GenericForm objects that generate those solids of FamilyInstance. Is there any way to know which GenericForm of family document is associated with which solid of family instance geometry?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nastya&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 20:49:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12609571#M6844</guid>
      <dc:creator>nachaur</dc:creator>
      <dc:date>2024-03-03T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find GenericForm generating solid of family instance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12610466#M6845</link>
      <description>&lt;P&gt;You can obviously perform a geometrical analysis comparing shape, size, location and orientation of the objects in the family definition and the family instance. I am not aware of any other standard identifiers that you could use. You could obviously add some features yourself to help identify what is what. In HVAC equipment, for instance, you often equip the surfaces with connectors. These could be used to identify the corresponding surfaces in the family instance. For generic forms, you could add little line segments of different lengths to various faces, for instance, using the line lengths to identify and differentiate them. Maybe you could even add lines and hide them, so they do not disturb visually. This is just crazy brainstorming, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 09:38:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12610466#M6845</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-04T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find GenericForm generating solid of family instance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12611126#M6846</link>
      <description>&lt;P&gt;Hi, Jeremy!&lt;BR /&gt;&lt;BR /&gt;Thank you for your fast reply.&lt;BR /&gt;&lt;BR /&gt;I started to perform geometrical analysis. However, I faced one issue.&lt;BR /&gt;&lt;BR /&gt;The geometry of generic form and family instance might be different due to parameter values.&lt;BR /&gt;For instance, I have a family instance that looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FamilyInstance.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1332932iAB6B3811ECFB3666/image-size/large?v=v2&amp;amp;px=999" role="button" title="FamilyInstance.png" alt="FamilyInstance.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And when I open a family the geometry looks next way. It is different because of the different parameter values assigned to the family.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FamilyEditor.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1332933iB841A517A277F268/image-size/large?v=v2&amp;amp;px=999" role="button" title="FamilyEditor.png" alt="FamilyEditor.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So, in this case, I can not compare the geometries of GenericForm objects and family instance solids because of their different sizes.&lt;BR /&gt;&lt;BR /&gt;What I tried to do is to temporarily change all the parameter values inside the family editor so the family geometry matches the family instance geometry and perform geometric analysis. However, this approach doesn't find all generic forms associated with solids. Also, the performance of this approach is very slow.&lt;BR /&gt;7.65 seconds just to analyze a sim&lt;SPAN&gt;ple family.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nachaur_0-1709564552368.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1332942i42CAA79F6161B5C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nachaur_0-1709564552368.png" alt="nachaur_0-1709564552368.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I attach the code below, hopefully, it helps the issue to be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Nastya&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12611126#M6846</guid>
      <dc:creator>nachaur</dc:creator>
      <dc:date>2024-03-04T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find GenericForm generating solid of family instance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12611151#M6847</link>
      <description>&lt;P&gt;Yes, that all makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;I attach the code below, hopefully, it helps the issue to be found.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What issue? Afaict, everything is working as designed. I made one suggestion for a possible approach to speed things up above by adding some marker elements. Maybe you can invent a better way. I wish you the best of luck doing so and implementing an optimal approach that fulfils all your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:08:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-genericform-generating-solid-of-family-instance/m-p/12611151#M6847</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-04T15:08:10Z</dc:date>
    </item>
  </channel>
</rss>

