<?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: Pick Face from imported DWG (Mass Editor) in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/pick-face-from-imported-dwg-mass-editor/m-p/9842181#M30707</link>
    <description>&lt;P&gt;Maybe you could convert it to a DirectShape instead of FreeFormElement and work with its faces there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/11/flatten-all-elements-to-directshape.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/11/flatten-all-elements-to-directshape.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 10:05:15 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2020-11-03T10:05:15Z</dc:date>
    <item>
      <title>Pick Face from imported DWG (Mass Editor)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pick-face-from-imported-dwg-mass-editor/m-p/9841149#M30706</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to retrieve Face Reference from picked Face from imported DWG file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 398px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839576i0434711307A49029/image-dimensions/398x241?v=v2" width="398" height="241" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then create Divided Surface from the picked Face, that will have Nodes, so can be used to get points to place Adaptive Components. The problem is that the retrieved DividedSurface.HostReference&lt;/P&gt;&lt;P&gt;throws an exception:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 673px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839582iB6C45647E9F9775A/image-dimensions/673x209?v=v2" width="673" height="209" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That it caused by the fact that I want to get DividedSurface from imported DWG - I have tried to get the Solid of the picked Face and bake it as FreeFormElement but then cannot get the Face of that element to use its Reference here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DividedSurface ds = DividedSurface.Create(document, pickedRef);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any workaround to create a DividedSurface on a picked DWG surface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Tried to get the face of the picked element but it returns all the faces from the DWG.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:57:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pick-face-from-imported-dwg-mass-editor/m-p/9841149#M30706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-02T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Face from imported DWG (Mass Editor)</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/pick-face-from-imported-dwg-mass-editor/m-p/9842181#M30707</link>
      <description>&lt;P&gt;Maybe you could convert it to a DirectShape instead of FreeFormElement and work with its faces there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/11/flatten-all-elements-to-directshape.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/11/flatten-all-elements-to-directshape.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/pick-face-from-imported-dwg-mass-editor/m-p/9842181#M30707</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-11-03T10:05:15Z</dc:date>
    </item>
  </channel>
</rss>

