<?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 Replacing doors and doors orientations (flip hand, flip facing) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7483858#M55301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my plugin I want to replace some doors with another ones (family symbols differ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make the needed flippings (flipHand, flipFacing) in order to have the "new" door in the same orientations (same hand orientation, same facing orientation) than the previous one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trouble is the needed flippings to make depend on the way the "new door" family was modeled : left hand, left hand reverse, right hand, right hand reverse. Is there a way to know which modeling strategy was used ? I think I should use geometry... I am considering using bounding boxes to find the closest geometry after the replacement was made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone already tried to do the same kind of things ?&lt;/P&gt;&lt;P&gt;Thanks for your ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Maxime&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 14:36:30 GMT</pubDate>
    <dc:creator>m.vallee</dc:creator>
    <dc:date>2017-10-23T14:36:30Z</dc:date>
    <item>
      <title>Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7483858#M55301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my plugin I want to replace some doors with another ones (family symbols differ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make the needed flippings (flipHand, flipFacing) in order to have the "new" door in the same orientations (same hand orientation, same facing orientation) than the previous one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trouble is the needed flippings to make depend on the way the "new door" family was modeled : left hand, left hand reverse, right hand, right hand reverse. Is there a way to know which modeling strategy was used ? I think I should use geometry... I am considering using bounding boxes to find the closest geometry after the replacement was made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone already tried to do the same kind of things ?&lt;/P&gt;&lt;P&gt;Thanks for your ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Maxime&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 14:36:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7483858#M55301</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-10-23T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7484057#M55302</link>
      <description>&lt;P&gt;First you need get all flip parameter of one type of doors. Select type of door with to replace and this door must have same in template orientantion .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then algorithm to change each one.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7484057#M55302</guid>
      <dc:creator>sonicer</dc:creator>
      <dc:date>2017-10-23T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486094#M55303</link>
      <description>&lt;P&gt;Sorry but I don't see what you mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My trouble is that if the new family was modeled with another swing type than the first one (left hand instead of right hand for instance), you cannot use hand and facing orientations to retrieve the previous ones, because they don't match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maxime&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:49:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486094#M55303</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-10-24T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486171#M55304</link>
      <description>&lt;P&gt;you must create algorith that check current orientation door and then check template of door that with them you replace.&lt;BR /&gt;&lt;BR /&gt;then you must change the correct orientation.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 08:27:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486171#M55304</guid>
      <dc:creator>sonicer</dc:creator>
      <dc:date>2017-10-24T08:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486359#M55305</link>
      <description>&lt;P&gt;Ok, but how do you perform these checks ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:02:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486359#M55305</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-10-24T10:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486405#M55306</link>
      <description>&lt;P&gt;please send me some type of door...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont know what country standard do you use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486405#M55306</guid>
      <dc:creator>sonicer</dc:creator>
      <dc:date>2017-10-24T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486425#M55307</link>
      <description>&lt;P&gt;Hey Maxime,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the parameters of the Door object's instance (not of the object itself). You must have a parameter named hand side (or Something like this) and another named Facing.&lt;/P&gt;&lt;P&gt;These are the 2 parameters you want to keep unchanged when you replace your doors.&lt;/P&gt;&lt;P&gt;Benoit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486425#M55307</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2017-10-24T10:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486593#M55308</link>
      <description>&lt;P&gt;I want my program to be able to deal with all types of swing types (LH-RH-LHR-RHR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose you have a left hand door instance, with HandFlipped = False and FacingFlipped = False. You replace this instance with a right hand door instance with the UI (you change its family symbol). Now what you get is an instance with a different orientation, although you still have&amp;nbsp;&lt;SPAN&gt;HandFlipped = False and FacingFlipped = False. The HandOrientation and FacingOrientation vectors of the instance are also the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My goal is to find how to reorient&amp;nbsp;the instance like it was before.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:33:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486593#M55308</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-10-24T11:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486791#M55309</link>
      <description>&lt;P&gt;Looks like all of this is a geometry problem...&lt;/P&gt;&lt;P&gt;So to me it depends how your previous door family was designed (unflipped) and how the new one is. If the previous door and the door by which you replace it are drawn the same way (left hand for example) then you don't need to flip the new one. In the other case you do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make a script to check if the door is left hand or right hand before you replace each door.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 12:35:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486791#M55309</guid>
      <dc:creator>BenoitE&amp;A</dc:creator>
      <dc:date>2017-10-24T12:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486801#M55310</link>
      <description>&lt;P&gt;I agree with you, but how do I recognize the swing type from the (new) family object ? There are no family parameters giving the info directly...&lt;/P&gt;&lt;P&gt;And I don't know how to process the geometry to do this...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 12:40:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7486801#M55310</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-10-24T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7490235#M55311</link>
      <description>&lt;P&gt;Dear Maxime,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your query, and many thanks to Sonicer and Benoit for their good suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that it depends on the family definition, and that you might be able to implement a script to determine some aspects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, even the script will have to make some assumprions, e.g., about where the family insertion point is defined within the family definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the door insertion point always in the same axis as the hinges?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or in the door centre point?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will probably help if you talk with some Revit library content creation experts first and determine whether there are any global rules for door families that you can always rely on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can also implement checking code to ensure that this is the case and all your rules and assumptions are indeed complied with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:33:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7490235#M55311</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-10-25T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7510689#M55312</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your message and your warnings concerning the insertion point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said earlier, I want my program to be able to replace one door with any kind of doors, so I don't want to make assumptions on the new door swing type (left hand, right hand, left hand reverse, right hand reverse).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to find the new door swing type with two different approaches :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;with the bounding boxes : when replacing, I put the new door in the 4 possible positions and tried to find which one makes the bounding box center the nearest to the replaced door bounding box center. It works for finding the correct flip facing, but it doesn't allow to find the correct flip hand, because bounding boxes are almost equivalent&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        public void SetOrientationMethod2(FamilyInstance fi, BoundingBoxXYZ old_bb, Document document)
        {
            bool fliphand = false;
            bool flipfacing = false;
                        
            BoundingBoxXYZ bb = fi.get_BoundingBox(null);
            XYZ old_center = (old_bb.Max + old_bb.Min) / 2.0;

            double dist = ((bb.Max + bb.Min) / 2.0).DistanceTo(old_center);
            double dist_tmp;

            fi.flipHand();
            document.Regenerate();

            bb = fi.get_BoundingBox(null);
            dist_tmp = ((bb.Max + bb.Min) / 2.0).DistanceTo(old_center);
            if (dist_tmp &amp;lt; dist)
            {
                dist = dist_tmp;
                fliphand = true;
            }

            fi.flipFacing();
            document.Regenerate();

            bb = fi.get_BoundingBox(null);
            dist_tmp = ((bb.Max + bb.Min) / 2.0).DistanceTo(old_center);
            if (dist_tmp &amp;lt; dist)
            {
                dist = dist_tmp;
                flipfacing = true;
            }

            fi.flipHand();
            document.Regenerate();

            bb = fi.get_BoundingBox(null);
            dist_tmp = ((bb.Max + bb.Min) / 2.0).DistanceTo(old_center);
            if (dist_tmp &amp;lt; dist)
            {
                dist = dist_tmp;
                fliphand = false;
            }

            fi.flipFacing();
            document.Regenerate();


            // apply flips if needed
            if (fliphand &amp;amp;&amp;amp; fi.CanFlipHand)
                fi.flipHand();

            if (flipfacing &amp;amp;&amp;amp; fi.CanFlipFacing)
                fi.flipFacing();

        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;with the computed solids : when replacing, I put the new door in the 4 possible positions and, using the BooleanOperationUtils, tried to find which one makes the intersection between the replaced door and the new door the biggest in volume.&lt;PRE&gt;public void SetOrientationMethod3(FamilyInstance fi, Solid old_solid, Document document, Options opt)
        {
            bool fliphand = false;
            bool flipfacing = false;
            double vol_tmp;
            double vol;
                        
            Solid s = GetTotalSolid(fi, opt);
            Solid inter = BooleanOperationsUtils.ExecuteBooleanOperation(old_solid, s, BooleanOperationsType.Intersect);
            vol = inter.Volume;

            fi.flipHand();
            document.Regenerate();

            s = GetTotalSolid(fi, opt);
            inter = BooleanOperationsUtils.ExecuteBooleanOperation(old_solid, s, BooleanOperationsType.Intersect);
            vol_tmp = inter.Volume;
            if (vol_tmp &amp;gt; vol)
            {
                vol = vol_tmp;
                fliphand = true;
            }

            fi.flipFacing();
            document.Regenerate();

            s = GetTotalSolid(fi, opt);
            inter = BooleanOperationsUtils.ExecuteBooleanOperation(old_solid, s, BooleanOperationsType.Intersect);
            vol_tmp = inter.Volume;
            if (vol_tmp &amp;gt; vol)
            {
                vol = vol_tmp;
                flipfacing = true;
            }

            fi.flipHand();
            document.Regenerate();

            s = GetTotalSolid(fi, opt);
            inter = BooleanOperationsUtils.ExecuteBooleanOperation(old_solid, s, BooleanOperationsType.Intersect);
            vol_tmp = inter.Volume;
            if (vol_tmp &amp;gt; vol)
            {
                vol = vol_tmp;
                fliphand = false;
            }

            fi.flipFacing();
            document.Regenerate();
            
            // apply flips if needed
            if (fliphand &amp;amp;&amp;amp; fi.CanFlipHand)
                fi.flipHand();

            if (flipfacing &amp;amp;&amp;amp; fi.CanFlipFacing)
                fi.flipFacing();

        }&lt;/PRE&gt;This method doesn't work either, I always get the following message when I make the boolean operations :&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;Failed to perform the Boolean operation for the two solids. This may be due to geometric inaccuracies in the solids, such as slightly misaligned faces or edges. If so, eliminating the inaccuracies by making sure the solids are accurately aligned may solve the problem. This also may be due to one or both solids having complexities such as more than two faces geometrically meeting along a single edge, or two coincident edges, etc. Eliminating such conditions, or performing a sequence of Boolean operations in an order that avoids such conditions, may solve the problem.&lt;/PRE&gt;&lt;P&gt;This also happens when trying to compute the differences.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 09:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7510689#M55312</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-11-02T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7512047#M55313</link>
      <description>&lt;P&gt;Dear Maxime,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the update and sharing your very interesting approaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I like the last one best.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also think it might be possible to tweak it to avoid the problems you describe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My idea is to grab the geometry, just like you are doing now, and to tweak it while retrieving it to match a pre-defined grid of points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, when I grab geometry for further processing, I often round every point to the closest millimetre.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this specific case, it might be better to use a larger value still, e.g. 10 mm, or even 50 mm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, it might be hard to create a new solid based on the points you receive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could do something else, though, that might be more efficient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define a door vertex metric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Retrieve all the vertices from the door solid, as described for the&amp;nbsp;Structural Concrete Setout Point Add-in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/08/structural-concrete-setout-point-add-in.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/08/structural-concrete-setout-point-add-in.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/11/concrete-setout-points-for-revit-structure-2015.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that you can probably determine the swing and facing values better from the points than from the solids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might even be able to define a pretty accurate door comparison metric just based on the vertices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some more thoughts on defining a metric to create your own database lookup key or comparison method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/03/great-ocean-road-and-creating-your-own-key.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/03/great-ocean-road-and-creating-your-own-key.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you think?&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;</description>
      <pubDate>Thu, 02 Nov 2017 15:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7512047#M55313</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-02T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514364#M55314</link>
      <description>&lt;P&gt;In my experience, the door swing is a Line and not a solid. Do you know in advance that the door swing is a solid?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:27:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514364#M55314</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-11-03T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514373#M55315</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a try with your SetOutPoints application on concrete elements, and I could certainly adapt it to get the doors "main" points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I don't see how I would use&amp;nbsp;these vertices&amp;nbsp;to compare doors and&amp;nbsp;&lt;SPAN&gt;determine the swing and facing values...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:29:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514373#M55315</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-11-03T09:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514423#M55316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your topic seems to be related to this one:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/place-a-door-tag-at-the-center-of-the-hosting-door-swing-curve/m-p/7264654/highlight/true#M24304" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/place-a-door-tag-at-the-center-of-the-hosting-door-swing-curve/m-p/7264654/highlight/true#M24304&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may cite myself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"[...] there is a static method ExporterIFCUtils.GetDoor2DArcsFromFamily which returns a List of Arcs.&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;In fact, I wonder why the argument is a Family instead of a FamilyInstance. Seems that you have to transform the result to get your Arcs in project coordinates."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514423#M55316</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-11-03T09:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514427#M55317</link>
      <description>&lt;P&gt;Hi Frank&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2083518"&gt;@FAIR59&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. One could adapt the vertex collection algorithm to collect vertices from arcs and lines as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One could also expend it to store the entire arc and line information for deeper analysis and classification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Maxime&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/928036"&gt;@m.vallee&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to expand the data collected and the comparison algorithm using it to find a way to determine exactly the information you require.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sounds like fun to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&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;</description>
      <pubDate>Fri, 03 Nov 2017 09:53:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7514427#M55317</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-03T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7519588#M55318</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, it drove me to a quite nice solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;ExporterIFCUtils.GetDoor2DArcsFromFamily method&amp;nbsp;returns the list of the arcs shown in the 2D view of the door revit family in edition mode. So it is exactly what I was looking for to determine the door swing type of the family.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maxime&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7519588#M55318</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-11-06T10:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7520429#M55319</link>
      <description>&lt;P&gt;I just found that the static method&amp;nbsp;ExporterIFCUtils.GetDoor2DArcsFromFamily doesn't get the door swing arc if it belongs to a nested family of the door... no matter if the nested family is shared or not. So the arc representing the door swing needs to be in the door family to be retrieved...&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7520429#M55319</guid>
      <dc:creator>m.vallee</dc:creator>
      <dc:date>2017-11-06T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing doors and doors orientations (flip hand, flip facing)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7520925#M55320</link>
      <description>&lt;P&gt;&amp;lt;joke&amp;gt;Create a screen snapshot bitmap image of the door family instance and its surrounding and teach a machine learning algorithm to extract the information you require.&amp;lt;/joke&amp;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&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 17:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/replacing-doors-and-doors-orientations-flip-hand-flip-facing/m-p/7520925#M55320</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-06T17:23:59Z</dc:date>
    </item>
  </channel>
</rss>

