<?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: Get Face From PickObject(ObjectType.Face) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9190297#M58432</link>
    <description>&lt;P&gt;As the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with this statement:&lt;/P&gt;&lt;P&gt;"Note on 5/11/2018: My First Plug-in is being migrated to Knowledge Base (similar to this forum). Right now, the marketing URL is not working. In a mean time, you can access here:&lt;BR /&gt;&lt;A href="https://knowledge.autodesk.com/community/collection/my-first-autodesk-revit-plug" target="_blank"&gt;https://knowledge.autodesk.com/community/collection/my-first-autodesk-revit-plug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Still work in progress. Working on updating all the links, to the latest three releases, etc."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However as the picture show the link is "Not Found"?!&lt;/P&gt;&lt;P&gt;Could someone give a hand? thx~&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="404.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/705811i1242B60C652E9A28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="404.jpg" alt="404.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 06:48:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-09T06:48:48Z</dc:date>
    <item>
      <title>Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/7078940#M58428</link>
      <description>&lt;P&gt;Dear everyone, I pick a face by this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference rf = sel.PickObject(ObjectType.Face);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I retrieve Face f from reference rf? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:59:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/7078940#M58428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T01:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/7079375#M58429</link>
      <description>&lt;P&gt;Hello @Anonymous,&lt;/P&gt;
&lt;P&gt;Searching the SDK yields this example:&lt;/P&gt;
&lt;PRE&gt;Reference faceRef = m_document.Selection.PickObject(ObjectType.Face, _
  new PlanarFaceFilter(m_document.Document), _
  "Please pick a planar face to set the work plane. ESC for cancel.");
GeometryObject geoObject = _
  m_document.Document.GetElement(faceRef).GetGeometryObjectFromReference(faceRef);
PlanarFace planarFace = geoObject as PlanarFace;
 &lt;/PRE&gt;
&lt;P&gt;If you haven't downloaded the SDK, you should now. (see &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684" target="_self"&gt;here&lt;/A&gt;) &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 08:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/7079375#M58429</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-05-12T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9138584#M58430</link>
      <description>&lt;P&gt;Hi, thanks for you suggestion.&lt;/P&gt;&lt;P&gt;Now I have a further question:&lt;/P&gt;&lt;P&gt;How to obtain a geometry object from a LINKED element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use PickObject() with ObjectType.PointOnElement to get a Reference object.&lt;/P&gt;&lt;P&gt;If I pick an Element in the host (current/main/master, whatever you call it) document,&lt;/P&gt;&lt;PRE&gt;&amp;lt;elemInHostDoc&amp;gt;.GetGeometryObjectFromReference(refPickedInHostDoc) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The above method works just fine for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I had tested: ObjectType.PointOnElement can pick both in host document and in linked document.&lt;/P&gt;&lt;P&gt;If I pick an Element in a linked document, for example, I click a surface of a rectangular Duct, API gave me back a Reference object of which the ElementReferenceType property is SURFACE.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I had tried calling GetGeometryObjectFromReference in the following 2 ways:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;PRE&gt;&amp;lt;elemInLinkDoc&amp;gt;.GetGeometryObjectFromReference(pickedRef)&lt;BR /&gt;// throw exception : The id of this element is not same as that referenced by reference&lt;BR /&gt;Parameter name: reference&lt;/PRE&gt;&lt;P&gt;2.&lt;/P&gt;&lt;PRE&gt;&amp;lt;rvtLinkInstanceElement&amp;gt;.GetGeometryObjectFromReference(pickedRef)&lt;BR /&gt;// returns &amp;lt;null&amp;gt;&lt;/PRE&gt;&lt;P&gt;Sooo, How can I obtain a geometry object from a link Element?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9138584#M58430</guid>
      <dc:creator>jlpgy</dc:creator>
      <dc:date>2019-11-11T07:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9140588#M58431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6188414"&gt;@jlpgy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try using the below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2012/05/selecting-a-face-in-a-linked-file.html" target="_blank" rel="noopener"&gt;selecting-a-face-in-a-linked-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 05:32:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9140588#M58431</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2019-11-12T05:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9190297#M58432</link>
      <description>&lt;P&gt;As the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/check-out-the-self-paced-guide-my-first-plug-in/m-p/3032684#U3032684&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with this statement:&lt;/P&gt;&lt;P&gt;"Note on 5/11/2018: My First Plug-in is being migrated to Knowledge Base (similar to this forum). Right now, the marketing URL is not working. In a mean time, you can access here:&lt;BR /&gt;&lt;A href="https://knowledge.autodesk.com/community/collection/my-first-autodesk-revit-plug" target="_blank"&gt;https://knowledge.autodesk.com/community/collection/my-first-autodesk-revit-plug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Still work in progress. Working on updating all the links, to the latest three releases, etc."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However as the picture show the link is "Not Found"?!&lt;/P&gt;&lt;P&gt;Could someone give a hand? thx~&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="404.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/705811i1242B60C652E9A28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="404.jpg" alt="404.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 06:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9190297#M58432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-09T06:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Face From PickObject(ObjectType.Face)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9191728#M58433</link>
      <description>&lt;P&gt;Try this one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/my-first-revit-plug-overview.html" target="_blank" rel="noopener"&gt;https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/my-first-revit-plug-overview.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-face-from-pickobject-objecttype-face/m-p/9191728#M58433</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2019-12-09T19:06:17Z</dc:date>
    </item>
  </channel>
</rss>

