<?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: Wall opening make 'Top Constraint= 'Unconnected' in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892559#M66347</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/807926"&gt;@c_hanschen&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I do have access to Level Ids. The issue I am having is I cannot seem to set the value to any Level Id other than -1, which is "Unconnected". The code works if I use .InvalidElementId, but when I try switching it to .IntegerValue, which would allow me to input the LevelId as an integer, it won't work. Interestingly enough, it actually doesn't return an error at all.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See code below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;set_param&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ParameterName&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Value)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;param_constraint&amp;nbsp;=&amp;nbsp;wall.parameters[ParameterName].Set(elementid.&lt;STRONG&gt;InvalidElementId&lt;/STRONG&gt;)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# If I use Set(elementid.&lt;STRONG&gt;IntegerValue&lt;/STRONG&gt;) instead, it will not work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;t.Start()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;wall&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;wall_elements:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set_param(wall,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Top&amp;nbsp;Constraint"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;t.Commit()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Let me know if you could provide additional insight on this!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Nov 2020 17:19:05 GMT</pubDate>
    <dc:creator>pylinet</dc:creator>
    <dc:date>2020-11-24T17:19:05Z</dc:date>
    <item>
      <title>Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6275290#M66332</link>
      <description>&lt;P&gt;I'm trying to make a bunch of wall openings Top Constraint = Unconnected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can change the levels for [base constraint] en [top constraint] to another level, but i can't get the [Top Constraint] to be [Unconnected].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I tried: (vb.net)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(MyOpening is already the right element out of&amp;nbsp;MyElementCollector.OfCategory(BuiltInCategory.OST_SWallRectOpening))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim MyListOfParameter As List(Of Parameter) = (From MyParameter As Parameter In MyOpening.Parameters).ToList()&lt;BR /&gt;Dim MyParameterTopConstraint As Parameter = MyListOfParameter.First(Function(p) p.Definition.Name = "Top Constraint")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MyParameterTopConstraint.Set("Unconnected")&lt;BR /&gt;MyParameterTopConstraint.SetValueString("Unconnected")&lt;BR /&gt;MyParameterTopConstraint.Dispose()&lt;BR /&gt;MyParameterTopConstraint.Set(-1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I read the elementId out of the parameter when is is set to 'Unconnected', it returns -1&lt;/P&gt;&lt;P&gt;but setting it to -1 does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD Architecten, Hengelo, Netherlands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p.s.&lt;/P&gt;&lt;P&gt;Somebody builded a Revit model of an existing building, i need to use the model, but is has over 1000 rectangular wall openings&lt;/P&gt;&lt;P&gt;i am making an addin to manage all aspects of these element, such al base offset, height, levels, etc.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2016 14:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6275290#M66332</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-04-17T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276003#M66333</link>
      <description>&lt;P&gt;Have you tried setting it to &lt;CODE&gt;ElementId.InvalidElementId&lt;/CODE&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That has the numerical value -1, but VB is sometimes less than clever and maybe messes it up somehow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 08:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276003#M66333</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-04-18T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276132#M66334</link>
      <description>&lt;P&gt;Yes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD Architecten Hengelo, The Netherlands&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 10:26:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276132#M66334</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-04-18T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276242#M66335</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is not a VB phenomenon.&lt;/P&gt;&lt;P&gt;The parameter's value type is &lt;EM&gt;ElementId&lt;/EM&gt;, so parameter.Set(-1) is of course not the same as parameter.Set(new ElementId(-1)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudi&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:37:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276242#M66335</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-04-18T11:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276248#M66336</link>
      <description>&lt;P&gt;if was solved by using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyParameterTopConstraint.Set(ElementId.InvalidElementId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so acualy, it should be the same as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MyParameterTopConstraint.Set(-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(but only&amp;nbsp;MyParameterTopConstraint.Set(ElementId.InvalidElementId) works)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6276248#M66336</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-04-18T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6278417#M66337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no, it's not the same.&lt;/P&gt;&lt;P&gt;parameter.Set(new ElementId(-1)) means setting the parameter by an ElementId object, parameter.Set(-1) means setting it by an integer.&lt;/P&gt;&lt;P&gt;Obviously, your parameter is of ElementId value type, so Set(-1) will never work in this case.&lt;/P&gt;&lt;P&gt;ElementId.InvalidElementId is the equivalent to new ElementId(-1), so both will do the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6278417#M66337</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-04-19T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6278549#M66338</link>
      <description>&lt;P&gt;Oke, I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for all your posts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD Architecten Hengelo, Netherlands&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 08:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/6278549#M66338</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2016-04-19T08:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338225#M66339</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, help me find error in my code &amp;nbsp;in&amp;nbsp;variable declaration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim MyOpening = col.OfCategory(BuiltInCategory.OST_SWallRectOpening)&lt;BR /&gt;Dim MyListOfParameter As List(Of Parameter) = (From MyParameter As Parameter In MyOpening.Parameters).ToList()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or give me correct code to unconnect wall.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 07:34:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338225#M66339</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2017-08-30T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338282#M66340</link>
      <description>&lt;P&gt;Dear Andrew,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the look of your code snippet, I would suggest that you start by working through the Revit API getting started material and explore the basics of how to set up and use a filtered element collector:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338282#M66340</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-08-30T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338317#M66341</link>
      <description>&lt;P&gt;Dear Jeremy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Unfortunately I have not match time for release my project. Please help my with code to set wall constraint unconnected.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:25:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338317#M66341</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2017-08-30T08:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338337#M66342</link>
      <description>&lt;P&gt;VB:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraVb/Labs2.vb#L91-L105" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraVb/Labs2.vb#L91-L105&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C#:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs2.cs#L113-L133" target="_blank"&gt;https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs2.cs#L113-L133&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338337#M66342</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-08-30T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338357#M66343</link>
      <description>&lt;P&gt;Thank you! All is working!&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:43:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338357#M66343</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2017-08-30T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338522#M66344</link>
      <description>&lt;P&gt;Thank you for your appreciation. Glad to hear it helped.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 09:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/7338522#M66344</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-08-30T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892106#M66345</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/807926"&gt;@c_hanschen&lt;/a&gt;! can you provide some insight on how you were able to change the Top Constraint level?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble with this right now. Top Constraint ElementId is tied to the Level's ElementId. I was not able to simply change the string value of Top Constraint to "Up to level: LEVEL 2" to get this to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892106#M66345</guid>
      <dc:creator>pylinet</dc:creator>
      <dc:date>2020-11-24T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892304#M66346</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9785074"&gt;@pylinet&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to set the new Level by ElementID.&lt;/P&gt;&lt;P&gt;So get the ElementId of the Level by Using MyLevel.ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.Set (MyLevel.ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get the Level from other Element properties of find it by looping all Levels an find the right Level by Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris Hanschen&lt;/P&gt;&lt;P&gt;LKSVDD architecten&lt;/P&gt;&lt;P&gt;The Netherlands&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;</description>
      <pubDate>Tue, 24 Nov 2020 15:37:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892304#M66346</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2020-11-24T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892559#M66347</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/807926"&gt;@c_hanschen&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I do have access to Level Ids. The issue I am having is I cannot seem to set the value to any Level Id other than -1, which is "Unconnected". The code works if I use .InvalidElementId, but when I try switching it to .IntegerValue, which would allow me to input the LevelId as an integer, it won't work. Interestingly enough, it actually doesn't return an error at all.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See code below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;set_param&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ParameterName&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Value)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;param_constraint&amp;nbsp;=&amp;nbsp;wall.parameters[ParameterName].Set(elementid.&lt;STRONG&gt;InvalidElementId&lt;/STRONG&gt;)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# If I use Set(elementid.&lt;STRONG&gt;IntegerValue&lt;/STRONG&gt;) instead, it will not work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;t.Start()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;wall&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;wall_elements:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set_param(wall,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Top&amp;nbsp;Constraint"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;t.Commit()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Let me know if you could provide additional insight on this!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892559#M66347</guid>
      <dc:creator>pylinet</dc:creator>
      <dc:date>2020-11-24T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wall opening make 'Top Constraint= 'Unconnected'</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892606#M66348</link>
      <description>&lt;P&gt;Skip the&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;IntegerValue&lt;/STRONG&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Just set the ElementId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to set the object, not the&amp;nbsp;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;STRONG&gt;IntegerValue&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:37:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/wall-opening-make-top-constraint-unconnected/m-p/9892606#M66348</guid>
      <dc:creator>c_hanschen</dc:creator>
      <dc:date>2020-11-24T17:37:41Z</dc:date>
    </item>
  </channel>
</rss>

