<?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 Revit 2016 - Programatically creating door in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2016-programatically-creating-door/m-p/6061515#M67284</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run into a revit issue when i create a door through code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written an addon that essentially imports simple architectural data from an XML file and creates a bunch of elements (walls, windows, doors, roof, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In many cases, the building information contains 2 sets of walls - stem walls (ie. concrete) and the walls that rest on top of the stem walls. If stem walls exist then any doors placed on a wall need to be placed using the stem wall as their host wall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem here is that doors placed through the revit API fail to cut inserts properly on walls that are not their host. Screenshot below:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://i.imgur.com/J18sVpa.png" border="0" alt="" title="" align="left" /&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;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;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;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;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;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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The door is hosted on the concrete wall on the bottom. As you can see, it is not cutting the upper wall correctly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any way around this problem that isn't hacky, such as cutting manual inserts etc?&lt;BR /&gt;&lt;BR /&gt;If not, then i hope autodesk can use this as a basis for a bugfix. I think i have provided all the needed info. Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Feb 2016 14:03:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-29T14:03:40Z</dc:date>
    <item>
      <title>Revit 2016 - Programatically creating door</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2016-programatically-creating-door/m-p/6061515#M67284</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run into a revit issue when i create a door through code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written an addon that essentially imports simple architectural data from an XML file and creates a bunch of elements (walls, windows, doors, roof, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In many cases, the building information contains 2 sets of walls - stem walls (ie. concrete) and the walls that rest on top of the stem walls. If stem walls exist then any doors placed on a wall need to be placed using the stem wall as their host wall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem here is that doors placed through the revit API fail to cut inserts properly on walls that are not their host. Screenshot below:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://i.imgur.com/J18sVpa.png" border="0" alt="" title="" align="left" /&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;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;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;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;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;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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The door is hosted on the concrete wall on the bottom. As you can see, it is not cutting the upper wall correctly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any way around this problem that isn't hacky, such as cutting manual inserts etc?&lt;BR /&gt;&lt;BR /&gt;If not, then i hope autodesk can use this as a basis for a bugfix. I think i have provided all the needed info. Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2016-programatically-creating-door/m-p/6061515#M67284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-29T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2016 - Programatically creating door</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2016-programatically-creating-door/m-p/6061658#M67285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just a guess:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (!InstanceVoidCutUtils.InstanceVoidCutExists(wall, opening))&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (InstanceVoidCutUtils.CanBeCutWithVoid(wall))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;InstanceVoidCutUtils.AddInstanceVoidCut(doc, wall, opening);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:59:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2016-programatically-creating-door/m-p/6061658#M67285</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-02-29T14:59:03Z</dc:date>
    </item>
  </channel>
</rss>

