<?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: Picking Regions (split faces) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8358530#M50247</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference reference = yourUIDocument.Selection.PickObject(ObjectType.PointOnElement);&lt;BR /&gt;&lt;BR /&gt;if (reference != null)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Element refElem = yourDocument.GetElement(reference.ElementId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PlanarFace planarFace = refElem.GetGeometryObjectFromReference(reference) as PlanarFace;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 10:33:28 GMT</pubDate>
    <dc:creator>Revitalizer</dc:creator>
    <dc:date>2018-10-25T10:33:28Z</dc:date>
    <item>
      <title>Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/7990131#M50245</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to select regions of split faces as we can do with the paint tool with no positive result.&lt;/P&gt;&lt;P&gt;I use pickobject() method for selecting faces.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018.1/0315fd62-b533-1817-2f2d-d9ebd4bc8e33.htm" target="_blank"&gt;http://www.revitapidocs.com/2018.1/0315fd62-b533-1817-2f2d-d9ebd4bc8e33.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With GetRegions() I get the list of regions, but I'm not able to neither use a pick system or idetify them by no criteria that is not area or material assignation properties.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018.1/9bde5f26-f830-7fca-39aa-792f9ac7caa5.htm" target="_blank"&gt;http://www.revitapidocs.com/2018.1/9bde5f26-f830-7fca-39aa-792f9ac7caa5.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With FaceSplitter I'm not able to think in any option either.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2018.1/ba55587f-4f1e-7f4c-5b1c-864e10cab304.htm" target="_blank"&gt;http://www.revitapidocs.com/2018.1/ba55587f-4f1e-7f4c-5b1c-864e10cab304.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All comments are wellcome.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/7990131#M50245</guid>
      <dc:creator>juancalvoferrandiz</dc:creator>
      <dc:date>2018-05-09T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8358306#M50246</link>
      <description>&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to have the resulting faces with the GetRegions() command, but you will have to use the revit API to work with them I believe. It is rather limited the split faces commands in Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also struggling with a similar problem. I want to divide a wall automatically using facesplitters&amp;nbsp;but I can't seem to find a way to create these elements using the revit API. Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8358306#M50246</guid>
      <dc:creator>pmcmm1</dc:creator>
      <dc:date>2018-10-25T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8358530#M50247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference reference = yourUIDocument.Selection.PickObject(ObjectType.PointOnElement);&lt;BR /&gt;&lt;BR /&gt;if (reference != null)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Element refElem = yourDocument.GetElement(reference.ElementId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PlanarFace planarFace = refElem.GetGeometryObjectFromReference(reference) as PlanarFace;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 10:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8358530#M50247</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2018-10-25T10:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8359089#M50248</link>
      <description>&lt;P&gt;Great. Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;. I didn't realize in the enum option PointOnElement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.revitapidocs.com/2015/2d0cbbba-d4ab-84b7-b081-36c14769d82c.htm" target="_blank"&gt;http://www.revitapidocs.com/2015/2d0cbbba-d4ab-84b7-b081-36c14769d82c.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3782989"&gt;@pmcmm1&lt;/a&gt;, I hope this solves your problem aswell. If not, please tell me and I will see if I can help you in something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:30:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8359089#M50248</guid>
      <dc:creator>juancalvoferrandiz</dc:creator>
      <dc:date>2018-10-25T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361444#M50249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;, do you know how I can do the highlight selection with &lt;STRONG&gt;PointOnElement&lt;/STRONG&gt; as with &lt;STRONG&gt;Face&lt;/STRONG&gt; in ObjectType enum?&lt;/P&gt;&lt;P&gt;It seems&amp;nbsp; Face ObjectType has the highlight internally implemented while PointOnElement doesn't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying around this point of view with no positive&amp;nbsp; results:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2010/06/highlight-elements.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2010/06/highlight-elements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. Cheers, Juan.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 11:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361444#M50249</guid>
      <dc:creator>juancalvoferrandiz</dc:creator>
      <dc:date>2018-10-26T11:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361532#M50250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for display purposes, I sometimes create new elements which I remove after use.&lt;/P&gt;&lt;P&gt;For example, after picking a point in a 2D view, I place a marker consisting of a circle and two lines forming an "x" inside it -just DetailCurves: "This is the point you've jst picked."&lt;/P&gt;&lt;P&gt;I a similar manner, you could create some sort of DirectShape to display a face element of arbitrary geometry.&lt;/P&gt;&lt;P&gt;This could be colorized (view overrides, material).&lt;/P&gt;&lt;P&gt;Since it resides at the same place as the original face, you should move it slightly outwards.&lt;/P&gt;&lt;P&gt;This proxy element is an element by itself, it can be highlighted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 11:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361532#M50250</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2018-10-26T11:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361810#M50251</link>
      <description>&lt;P&gt;Hi there Juan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great to hear that your problem is fixed. My question is slightly different, I plan to create regions in the external walls by drawing Face Splitter lines in the facade, however I intend to have this done automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find a way to create the FaceSplitter line automatically. I presume you are drawing them manually?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361810#M50251</guid>
      <dc:creator>pmcmm1</dc:creator>
      <dc:date>2018-10-26T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361817#M50252</link>
      <description>&lt;P&gt;Thanks for your solution. Yes, &lt;STRONG&gt;after selection&lt;/STRONG&gt; (PickObject operation), I do something similar but with the Namespace Analysis and a SpatialFieldPrimitive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like the idea with points, I didn't thought about it. Also maybe inserting a family that its an sphere during 3D work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I mean is &lt;STRONG&gt;during a multiple selection&lt;/STRONG&gt; process. In summary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If use ObjectType.&lt;U&gt;&lt;STRONG&gt;Face&lt;/STRONG&gt;&lt;/U&gt;: During selection the &lt;STRONG&gt;faces&lt;/STRONG&gt; are &lt;STRONG&gt;highlighted&lt;/STRONG&gt;, so I know which faces I'm selecting. Also an + or - symbol appears to know when I may be repeating selection. I &lt;STRONG&gt;can't&lt;/STRONG&gt; &lt;STRONG&gt;select regions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If use ObjectType.&lt;U&gt;&lt;STRONG&gt;PointOnElement&lt;/STRONG&gt;&lt;/U&gt;: The faces &lt;STRONG&gt;doesn't higlight&lt;/STRONG&gt; during selection process. I don't know which elements I'm selecting until I finish the selection process. I may select two or more times the same face without knowing during selection process. I &lt;STRONG&gt;can&lt;/STRONG&gt; &lt;STRONG&gt;select&lt;/STRONG&gt; &lt;STRONG&gt;regions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:37:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361817#M50252</guid>
      <dc:creator>juancalvoferrandiz</dc:creator>
      <dc:date>2018-10-26T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361849#M50253</link>
      <description>&lt;P&gt;In the past, I wrote a code that does the same job but it only requires you to select the wall&amp;nbsp;element. With this code you dont have to use the PointOnElement to get the face, which gives you more flexibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    geomOption = app.Create.NewGeometryOptions()

    geomOption.ComputeReferences = True
    geomOption.DetailLevel = ViewDetailLevel.Fine
    geomOption.IncludeNonVisibleObjects = True

    face_dict = dict()

    for wall in walls:
        #code to get the walls from the selection
        geomElem = wall.get_Geometry(geomOption)
        face_dict[wall.Id.IntegerValue]=dict(geometry=geomElem,wall=wall)
        for geomSolid in geomElem:
        	#print geomSolid
        	#if (geomSolid):
            for geomFace in geomSolid.Faces:
                if geomFace.FaceNormal.IsAlmostEqualTo(wall.Orientation) == True:
                    face_dict[wall.Id.IntegerValue]['face']=geomFace&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/8361849#M50253</guid>
      <dc:creator>pmcmm1</dc:creator>
      <dc:date>2018-10-26T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Picking Regions (split faces)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/10261713#M50254</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138" target="_self"&gt;&lt;SPAN class="login-bold" style="box-sizing: border-box; font-weight: normal; font-family: ArtifaktTmp, Tahoma, Helvetica, Arial, sans-serif; font-style: normal; font-size: 16px; color: #444444; border-bottom: 1px dashed #999999;"&gt;Base on Revitalizer's solution, you can add " ISelectionFilter" to filter out lines.&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    public class SurfaceSelectionFilter : ISelectionFilter
    {      
        public bool AllowElement(Element element)
        {
            return true;
        }
      
        public bool AllowReference(Reference refer, XYZ point)
        {
            if (refer.ElementReferenceType == ElementReferenceType.REFERENCE_TYPE_SURFACE)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
SurfaceSelectionFilter filter = new SurfaceSelectionFilter();
Reference reference = yourUIDocument.Selection.PickObject(ObjectType.PointOnElement, filter, "please select a Face");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruce Hans&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: ArtifaktTmp, Tahoma, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #fef3e3; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 03:32:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/picking-regions-split-faces/m-p/10261713#M50254</guid>
      <dc:creator>canyon.des</dc:creator>
      <dc:date>2021-04-23T03:32:23Z</dc:date>
    </item>
  </channel>
</rss>

