<?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 Select Floor Slabs and Height Difference between them to place formwork family in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9661589#M32823</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im a little new to C#, I was trying to look for a way where the Plug-In lets me select a top floor slab and then the bottom floor slab, so that I can subtract the parameters from both and get the height difference. The issue is I do not understand how to tell the code to let me select the second floor slab. Is there a link which describes something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been successful in selecting the first floor slab and display the height of its bottom surface. To calculate the height difference I need to be able to select the bottom floor slab and get its top height, then I can subtract the two. But this seems to be a challenge. Any similar link or code, which does this?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 09:00:08 GMT</pubDate>
    <dc:creator>d.ahmed.hb</dc:creator>
    <dc:date>2020-07-29T09:00:08Z</dc:date>
    <item>
      <title>Select Floor Slabs and Height Difference between them to place formwork family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9661589#M32823</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im a little new to C#, I was trying to look for a way where the Plug-In lets me select a top floor slab and then the bottom floor slab, so that I can subtract the parameters from both and get the height difference. The issue is I do not understand how to tell the code to let me select the second floor slab. Is there a link which describes something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been successful in selecting the first floor slab and display the height of its bottom surface. To calculate the height difference I need to be able to select the bottom floor slab and get its top height, then I can subtract the two. But this seems to be a challenge. Any similar link or code, which does this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 09:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9661589#M32823</guid>
      <dc:creator>d.ahmed.hb</dc:creator>
      <dc:date>2020-07-29T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Floor Slabs and Height Difference between them to place formwork family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9661690#M32824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7718112"&gt;@d.ahmed.hb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you looking for this?&lt;/P&gt;
&lt;LI-CODE lang="general"&gt; //Lets you to Select first floor
                Reference r1 = uidoc.Selection.PickObject(ObjectType.Element);
                Floor firstFloor = doc.GetElement(r1.ElementId) as Floor;
                Parameter firstFloorParameter = firstFloor.get_Parameter() (or) firstFloor.LookupParameter("");
                double firstFloorHeight = firstFloorParameter.AsDouble();

//Lets you to Select second floor
                Reference r2 = uidoc.Selection.PickObject(ObjectType.Element);
                Floor secondFloor = doc.GetElement(r2.ElementId) as Floor;
                Parameter secondFloorParameter = secondFloor.get_Parameter() (or) secondFloor.LookupParameter("");
                double secondFloorHeight = secondFloorParameter.AsDouble();
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9661690#M32824</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2020-07-29T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Floor Slabs and Height Difference between them to place formwork family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9662072#M32825</link>
      <description>Hey &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;, thanks a ton. It worked like a charm. Helped me out big time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/9662072#M32825</guid>
      <dc:creator>d.ahmed.hb</dc:creator>
      <dc:date>2020-07-29T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Floor Slabs and Height Difference between them to place formwork family</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/12094211#M32826</link>
      <description>&lt;P&gt;Gentlemen,&amp;nbsp;&lt;BR /&gt;Does this work with sloping floors (top or bottom or both)?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 16:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-floor-slabs-and-height-difference-between-them-to-place/m-p/12094211#M32826</guid>
      <dc:creator>alaraJ3LSY</dc:creator>
      <dc:date>2023-07-11T16:14:31Z</dc:date>
    </item>
  </channel>
</rss>

