<?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: How to know the selected element is a void or solid? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7409337#M55972</link>
    <description>&lt;P&gt;Check the class of your element, I suppose, you work at family editor, so, your element could be GenericForm descendant, if so, it should have such parameters, but your element could be a Model/Detail line or a dimension, for example, you should just skip such elements&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 12:03:42 GMT</pubDate>
    <dc:creator>aignatovich</dc:creator>
    <dc:date>2017-09-26T12:03:42Z</dc:date>
    <item>
      <title>How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7393336#M55969</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to know the selected element is a void or solid through API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hameed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7393336#M55969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7394127#M55970</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your element is a part of family, such as extrusion, just get BuiltInParameter.ELEMENT_IS_CUTTING value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your element is in a project, you should explore JoinGeometryUtils methods, such as AreElementsJoined and IsCuttingElementInJoin&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7394127#M55970</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2017-09-20T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7409280#M55971</link>
      <description>&lt;P&gt;while (eleEnumerator.MoveNext())&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;Element MyElement = eleEnumerator.Current;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Parameter para = MyElement.get_Parameter(BuiltInParameter.ELEMENT_IS_CUTTING);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The para is null. &amp;nbsp;I need help&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 11:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7409280#M55971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7409337#M55972</link>
      <description>&lt;P&gt;Check the class of your element, I suppose, you work at family editor, so, your element could be GenericForm descendant, if so, it should have such parameters, but your element could be a Model/Detail line or a dimension, for example, you should just skip such elements&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:03:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7409337#M55972</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2017-09-26T12:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7416486#M55973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oops.&amp;nbsp; My element is in project.&amp;nbsp; I guess i am trying to get the ELEMENT_IS_CUTTING value and it wont work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to know the element is solid or not using the&amp;nbsp;&lt;SPAN&gt;JoinGeometryUtils&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help.&amp;nbsp; I am new to revit API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 11:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7416486#M55973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T11:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the selected element is a void or solid?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7416552#M55974</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be the solution could be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) check element class type. Analyze built-in types, for example, if it is Opening, then it is a "cut", return true in such case, if it is not a family instance, then return false (may be there are another cut built-in element types, but I can't imaging anything else now, but it could be false)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at this point you element should be family instance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) recursively analyze geometry to get all solids with non-zero volume. If there are no solids, it is not either "solid" or "cut", it is just 2d element&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) check solid graphic style, if its property GraphicStyleCategory.Id == new ElementId(BuiltInCategory.OST_IOSCuttingGeometry) than this solid is a cut&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all solids has this graphic style, then your family instance is a void&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 11:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-know-the-selected-element-is-a-void-or-solid/m-p/7416552#M55974</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2017-09-28T11:50:36Z</dc:date>
    </item>
  </channel>
</rss>

