<?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: Can't create face in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4449189#M78820</link>
    <description>&lt;P&gt;Thanks Joe, I hadn't seen the slab creation methods. &amp;nbsp;Actually&amp;nbsp;NewFoundationSlab is most appropriate as I can nominate floor type. &amp;nbsp;The error message thrown is a little misleading though, and perhaps the help documentation could refer to these methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2013 14:40:00 GMT</pubDate>
    <dc:creator>GeomGym</dc:creator>
    <dc:date>2013-09-23T14:40:00Z</dc:date>
    <item>
      <title>Can't create face</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4402217#M78818</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you open the attached project, and then run the code in the attached project, I get an error message that it fails to create a face from the curves (Which are obviously planar). &amp;nbsp;Can anyone see something wrong with the familly (which was created from other code) or is there another change that can fix this? &amp;nbsp;Manually creating a foundation slab works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 04:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4402217#M78818</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2013-09-06T04:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create face</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4416823#M78819</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Jon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is the method NewFloor doesn't match the floor type that you passed in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The floor type you passed &lt;SPAN&gt;in&lt;/SPAN&gt;&amp;nbsp;("BaseSlab") &amp;nbsp;is the slab floor type, it cannot work with the NewFloor method. If you replace the type name by&amp;nbsp;Generic 300mm, that will work well on your project model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to create a slab with the "BaseSlab" type , please use NewSlab() method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code to create a normal floor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN style="font-size: 11px; line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV style="font-family: Courier New; font-size: 8pt; color: black; background: white;"&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System.Collections.Generic;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System.Linq;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System.Text;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System.IO;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; System.Reflection;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; Autodesk.Revit.DB;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; Autodesk.Revit.UI;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; Autodesk.Revit.Attributes;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;using&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; Autodesk.Revit.ApplicationServices; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;namespace&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; GGYM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; [Autodesk.Revit.Attributes.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;TransactionMode&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;.Manual)] &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;ImportIFCGeomGym&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; : &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;IExternalCommand&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Result&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; Execute(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;ExternalCommandData&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; commandData, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; message, &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;ElementSet&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; elements)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Document&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; doc = commandData.Application.ActiveUIDocument.Document;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Application&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; app = commandData.Application.Application;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; trn = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Transaction&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(doc, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; line-height: 140%;"&gt;"ggTest"&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; trn.Start();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;CurveArray&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; ca = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;CurveArray&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;double&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; d = 16.404199500;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; p1 = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(-d, -d, 0), p2 = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(-d, d, 0), &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p3 = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(d, d, 0), p4 = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;XYZ&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(d, -d, 0);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ca.Append(app.Create.NewLine(p1, p2, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ca.Append(app.Create.NewLine(p2, p3, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ca.Append(app.Create.NewLine(p3, p4, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ca.Append(app.Create.NewLine(p4, p1, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;ElementClassFilter&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; filter = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;ElementClassFilter&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;typeof&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Level&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;FilteredElementCollector&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; coll = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;FilteredElementCollector&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;(doc);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; coll.WherePasses(filter);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.Collections.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;IEnumerator&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; i = coll.GetElementIterator();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; i.Reset();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Level&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; l = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; (i.MoveNext())&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; l = i.Current &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Level&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; (l != &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;FloorType&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; ft = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;FloorType&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; t &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; doc.FloorTypes)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; (t != &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;.Compare(t.Name, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; line-height: 140%;"&gt;"Generic 300mm"&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;) == 0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ft = t;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;break&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt; f = doc.Create.NewFloor(ca, ft, l, &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; line-height: 140%;"&gt;//doc.Regenerate();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; trn.Commit();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 140%;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; line-height: 140%;"&gt;Result&lt;/SPAN&gt;&lt;SPAN style="line-height: 140%;"&gt;.Succeeded;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;&amp;nbsp; }&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;SPAN style="line-height: 140%;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0px;"&gt;&lt;BR /&gt;______________________________________________________________&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0174DF"&gt;If my post answers your question, please click the &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt; button. This helps everyone find answers more quickly!&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Sep 2013 08:16:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4416823#M78819</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-09-11T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create face</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4449189#M78820</link>
      <description>&lt;P&gt;Thanks Joe, I hadn't seen the slab creation methods. &amp;nbsp;Actually&amp;nbsp;NewFoundationSlab is most appropriate as I can nominate floor type. &amp;nbsp;The error message thrown is a little misleading though, and perhaps the help documentation could refer to these methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 14:40:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-create-face/m-p/4449189#M78820</guid>
      <dc:creator>GeomGym</dc:creator>
      <dc:date>2013-09-23T14:40:00Z</dc:date>
    </item>
  </channel>
</rss>

