<?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 Wall Top Constraint Before Creation in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7152779#M57731</link>
    <description>&lt;P&gt;I have walls coming in through the API with the top constraint set to level 2 but I want it to be set to Unconnected. I have found how to do this after the wall was created but it leaves it at the height as if it was constrained to level 2. I was wondering if there was a way through the API to change the top constraint before the wall was created or revert it back to the shape of it's profile. Below is the code I'm using to change the top constraint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;newWall = Wall.Create(doc, profile, wall_type.Id, levelId, false, normal);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter top_constraint_param = newWall.get_Parameter(BuiltInParameter.WALL_HEIGHT_TYPE);&lt;BR /&gt;top_constraint_param.Set("Unconnected");&lt;BR /&gt;top_constraint_param.SetValueString("Unconnected");&lt;BR /&gt;top_constraint_param.Set(ElementId.InvalidElementId);&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2017 18:20:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-14T18:20:55Z</dc:date>
    <item>
      <title>Wall Top Constraint Before Creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7152779#M57731</link>
      <description>&lt;P&gt;I have walls coming in through the API with the top constraint set to level 2 but I want it to be set to Unconnected. I have found how to do this after the wall was created but it leaves it at the height as if it was constrained to level 2. I was wondering if there was a way through the API to change the top constraint before the wall was created or revert it back to the shape of it's profile. Below is the code I'm using to change the top constraint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;newWall = Wall.Create(doc, profile, wall_type.Id, levelId, false, normal);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter top_constraint_param = newWall.get_Parameter(BuiltInParameter.WALL_HEIGHT_TYPE);&lt;BR /&gt;top_constraint_param.Set("Unconnected");&lt;BR /&gt;top_constraint_param.SetValueString("Unconnected");&lt;BR /&gt;top_constraint_param.Set(ElementId.InvalidElementId);&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 18:20:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7152779#M57731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T18:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wall Top Constraint Before Creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7153183#M57732</link>
      <description>&lt;P&gt;&lt;BR /&gt;what about use this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="identifier"&gt;Wall.Create&lt;/SPAN&gt;(
	&lt;A href="http://www.revitapidocs.com/2016/db03274b-a107-aa32-9034-f3e0df4bb1ec.htm" target="_blank"&gt;Document&lt;/A&gt; &lt;SPAN class="parameter"&gt;document&lt;/SPAN&gt;,
	&lt;A href="http://www.revitapidocs.com/2016/400cc9b6-9ff7-de85-6fd8-c20002209d25.htm" target="_blank"&gt;Curve&lt;/A&gt; &lt;SPAN class="parameter"&gt;curve&lt;/SPAN&gt;,
	&lt;A href="http://www.revitapidocs.com/2016/44f3f7b1-3229-3404-93c9-dc5e70337dd6.htm" target="_blank"&gt;ElementId&lt;/A&gt; &lt;SPAN class="parameter"&gt;wallTypeId&lt;/SPAN&gt;,
	&lt;A href="http://www.revitapidocs.com/2016/44f3f7b1-3229-3404-93c9-dc5e70337dd6.htm" target="_blank"&gt;ElementId&lt;/A&gt; &lt;SPAN class="parameter"&gt;levelId&lt;/SPAN&gt;,
	&lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;height&lt;/SPAN&gt;,
	&lt;A href="http://msdn2.microsoft.com/en-us/library/643eft0t" target="_blank"&gt;double&lt;/A&gt; &lt;SPAN class="parameter"&gt;offset&lt;/SPAN&gt;,
	&lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target="_blank"&gt;bool&lt;/A&gt; &lt;SPAN class="parameter"&gt;flip&lt;/SPAN&gt;,
	&lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target="_blank"&gt;bool&lt;/A&gt; &lt;SPAN class="parameter"&gt;structural)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:13:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7153183#M57732</guid>
      <dc:creator>sonicer</dc:creator>
      <dc:date>2017-06-14T21:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wall Top Constraint Before Creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7153430#M57733</link>
      <description>&lt;P&gt;I believe this method would limit me to rectangular walls which I would like to avoid. Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info: I don't have the issue if I use the default architecture template but I do if I use the default construction template. If I manually make a wall and take off the top constraint on it, it is no longer a problem after that. I would like to find a way to remove the top constraint through the API though so that all walls I import come in following the profile they are given.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 23:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7153430#M57733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T23:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wall Top Constraint Before Creation</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7168965#M57734</link>
      <description>&lt;P&gt;The answer I posted in the top comment plus changing the height of the wall after seems to be working.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 20:04:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-top-constraint-before-creation/m-p/7168965#M57734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T20:04:17Z</dc:date>
    </item>
  </channel>
</rss>

