<?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 check if Boundary Segment is a room separator in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10259600#M26417</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out I was being stupid and left some old code in the loop which was adding the room separator boundary segment curve to the rest of the CurveArray.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 13:22:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-22T13:22:36Z</dc:date>
    <item>
      <title>How to check if Boundary Segment is a room separator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10257595#M26415</link>
      <description>&lt;P&gt;I'm trying to create a script that creates a floor for a room but ignores room separators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have so far:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var boundarySegments = room.GetBoundarySegments(opt);

if(boundarySegments.Count != 0)
    {
        var points = new List&amp;lt;XYZ&amp;gt;();

        foreach(var boundSeg in boundarySegments[0])
            {
                if(userInfo.IgnoreSeperators)
                    {
                        var element = doc.GetElement(boundSeg.ElementId);

                        if (!(element.Category.Id.IntegerValue == BuiltInCategory.OST_RoomSeparationLines))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However (element.Category.Id.IntegerValue == BuiltInCategory.OST_RoomSeparationLines) still lets the Room Separator through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can catch an element if it is a room separator?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 19:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10257595#M26415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-21T19:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Boundary Segment is a room separator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10257980#M26416</link>
      <description>&lt;P&gt;Ordinarily I believe your boundary segments should either be Walls or ModelLines if they are the latter then they will be of category&amp;nbsp;&lt;SPAN&gt;OST_RoomSeparationLines since no other category of ModelLine defines the boundary of a room?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You may be better off getting the ClosedShell of the Rooms and taking edges from bottom faces of resulting solid to use in your floor sketch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why does removing the room separation lines help you? If you have different finishes in two rooms separated by a separator line then you want a finishes slab for each not one covering&amp;nbsp;both. Perhaps those finishes are the same but it is easy to make two things the same type rather than changing a sketch. Also in terms of a room data sheet the floor finishes element can be related to the room it is in (since it doesn't span two rooms).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As a human doing it manually you would probably amalgamate&amp;nbsp;the two slabs with same finishes when automating the process it is probably more convenient&amp;nbsp;to not.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 22:26:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10257980#M26416</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-04-21T22:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if Boundary Segment is a room separator</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10259600#M26417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out I was being stupid and left some old code in the loop which was adding the room separator boundary segment curve to the rest of the CurveArray.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 13:22:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-boundary-segment-is-a-room-separator/m-p/10259600#M26417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-22T13:22:36Z</dc:date>
    </item>
  </channel>
</rss>

