<?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 Betreff: How to change the associated level of rooms in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10737865#M43076</link>
    <description>&lt;P&gt;I got the error in Revit when starting the Plugin: system.MissingMethodException constructor cant be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m guessing&amp;nbsp;&lt;/P&gt;&lt;P&gt;that i need to wrap it all up inside a "public class classname : IExternal Command" ? Can you guys give me further information to this? This is what my External Command Class look like at this moment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.JPG" style="width: 868px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/986279iF4D60E1116D2AE4B/image-dimensions/868x524?v=v2" width="868" height="524" role="button" title="Unbenannt.JPG" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 12:12:43 GMT</pubDate>
    <dc:creator>cedric.wehren</dc:creator>
    <dc:date>2021-11-05T12:12:43Z</dc:date>
    <item>
      <title>How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/8726591#M43063</link>
      <description>&lt;P&gt;Hi everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I understood the rooms are responsible for creating spaces in ifc files. As I want to have an organized ifc file, I want to change the associated level of rooms to have them on the right building story. I see both using c# and user interface, the level parameter of the rooms is "readonly" and it is not possible to modify it. Is there any other method I can use to reach my goal? for example copying rooms or creating new rooms? Does anyone have experience?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:20:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/8726591#M43063</guid>
      <dc:creator>mahshid.motie</dc:creator>
      <dc:date>2019-04-12T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/8727036#M43064</link>
      <description>&lt;P&gt;I think the best way to go is probably to delete the existing rooms and create new ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:54:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/8727036#M43064</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-04-12T16:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369485#M43065</link>
      <description>&lt;P&gt;I found that with Dynamo you can group rooms and change the level accordingly. Unfortunately the room ID changes once you ungroup the elements again. Is there really no other way by now instead of deleting and replacing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 15:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369485#M43065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369650#M43066</link>
      <description>&lt;P&gt;I am not aware of any better way. Sorry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:20:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369650#M43066</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-03-10T16:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369731#M43067</link>
      <description>&lt;P&gt;This is untested, but if you are worried about losing the Id once you ungroup, could you try getting and holding onto the GUID of the room element rather than the ElementId?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would suggest that you Cut and Paste (Copy) the rooms to retain ALL the parameters, then delete the one that you don't need. You could also then transfer any remaining data like Room numbers that need to be updated. This is essentially just like you would have to do it manually in Revit, just automated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369731#M43067</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-10T16:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369857#M43068</link>
      <description>&lt;P&gt;I don't know any way of changing the level direct.&lt;/P&gt;&lt;P&gt;But if you delete the room, you get a warning that a room is deleted but still exists in the project. (the "not placed" message in room schedule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now place a new room at the correct level, but don't place a entirely new room but pick the correct unplaced room.&lt;/P&gt;&lt;P&gt;It will have all thesame properties as the deleted one (also it's roomnumber!)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="New_unplaced_room.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/739695i22C04354BEBA67F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="New_unplaced_room.png" alt="New_unplaced_room.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 18:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9369857#M43068</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-03-10T18:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9372379#M43069</link>
      <description>&lt;P&gt;So the concept of this intrigued me so I set off on a way to make this happen and I think I have an OK solution that does not involve groups or really an work around at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Concept:&lt;/LI&gt;&lt;LI&gt;Get a list of rooms&lt;/LI&gt;&lt;LI&gt;Select the Level to move them too&lt;/LI&gt;&lt;LI&gt;Press OK&lt;OL&gt;&lt;LI&gt;Code Gets the current room Location&lt;/LI&gt;&lt;LI&gt;Unplaces the Rooms&lt;OL&gt;&lt;LI&gt;Uses an error catcher to keep this from displaying a warning for unplaced rooms in the project&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Get the Plan Topography based on the level selected&lt;/LI&gt;&lt;LI&gt;Find an open Circuit&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Caveat - There HAS to be at least one circuit (Room Bounding group) WITHOUT a room in it on the level.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Places the Room on the Corresponding level&lt;/LI&gt;&lt;LI&gt;Moves the Room to the original room location&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample language-csharp"&gt;&lt;CODE&gt;using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace YourApp.Testing
{
    public partial class TestForm : System.Windows.Forms.Form
    {
        Document doc;
        public TestForm(Document _doc)
        {
            InitializeComponent();
            doc = _doc;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void TestForm_Load(object sender, EventArgs e)
        {
            foreach (Room room in Helpers.Collectors.ByCategory(doc, BuiltInCategory.OST_Rooms))
            {
                if (room.Area &amp;gt; 0 &amp;amp;&amp;amp; room.Location != null)
                {
                    ListViewItem item = listView1.Items.Add(room.Number + " - " + room.Name);
                    item.Tag = room;
                }
            }

            SortedList&amp;lt;string, Level&amp;gt; levels = new SortedList&amp;lt;string, Level&amp;gt;();
            foreach (Level level in Helpers.Collectors.ByCategoryNotElementType(doc, BuiltInCategory.OST_Levels))
            {
                levels.Add(level.Name, level);
            }

            cboLevel.DataSource = levels.ToList();
            cboLevel.DisplayMember = "Key";
            cboLevel.ValueMember = "Value";
        }

        private void btmOK_Click(object sender, EventArgs e)
        {
            try
            {
                using (TransactionGroup transGroup = new TransactionGroup(doc))
                {
                    transGroup.Start("Move Rooms");
                    foreach (ListViewItem item in listView1.CheckedItems)
                    {
                        Room room = (Room)item.Tag;
                        LocationPoint rmPT = room.Location as LocationPoint;
                        XYZ roomPoint = rmPT.Point;
                        double offset = room.LimitOffset;
                        using (Transaction trans1 = new Transaction(doc))
                        {
                            trans1.Start("Unplace Room");
                            FailureHandlingOptions failOptions = trans1.GetFailureHandlingOptions();
                            failOptions.SetFailuresPreprocessor(new UnplacedRoomWarning());
                            trans1.SetFailureHandlingOptions(failOptions);

                            room.Unplace();
                            trans1.Commit();
                        }

                        using (Transaction trans2 = new Transaction(doc))
                        {
                            trans2.Start("New Room");
                            Level level = (Level)cboLevel.SelectedValue;
                            PlanTopology topo = doc.get_PlanTopology(level);
                            PlanCircuitSet circuits = topo.Circuits;

                            foreach (PlanCircuit circuit in circuits)
                            {
                                if (!circuit.IsRoomLocated)
                                {
                                    Room newRoom = doc.Create.NewRoom(room, circuit);
                                    newRoom.get_Parameter(BuiltInParameter.ROOM_UPPER_LEVEL).Set(level.Id);
                                    newRoom.LimitOffset = offset;
                                    XYZ move = new XYZ(roomPoint.X - rmPT.Point.X, roomPoint.Y - rmPT.Point.Y, rmPT.Point.Z);
                                    ElementTransformUtils.MoveElement(doc, newRoom.Id, move);
                                    break;
                                }
                            }
                            trans2.Commit();
                        }
                    }
                    transGroup.Assimilate();
                    Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
    }

    public class UnplacedRoomWarning : IFailuresPreprocessor
    {
        public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
        {
            IList&amp;lt;FailureMessageAccessor&amp;gt; failures = new List&amp;lt;FailureMessageAccessor&amp;gt;();
            failures = failuresAccessor.GetFailureMessages();

            foreach (FailureMessageAccessor failure in failures)
            {
                if (failure.GetSeverity() == FailureSeverity.Warning)
                {
                    if (failure.GetFailureDefinitionId() == BuiltInFailures.RoomFailures.RoomUnplaceWarning || failure.GetFailureDefinitionId() == BuiltInFailures.RoomFailures.RoomHeightNegative)
                    {
                        failuresAccessor.DeleteWarning(failure);
                    }
                }
                else
                {
                    failuresAccessor.ResolveFailure(failure);
                    return FailureProcessingResult.ProceedWithCommit;
                }
            }
            return FailureProcessingResult.Continue;
        }
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Form Designer Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample language-csharp"&gt;&lt;CODE&gt;namespace YourApp.Testing
{
    partial class TestForm
    {
        /// &amp;lt;summary&amp;gt;
        /// Required designer variable.
        /// &amp;lt;/summary&amp;gt;
        private System.ComponentModel.IContainer components = null;

        /// &amp;lt;summary&amp;gt;
        /// Clean up any resources being used.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="disposing"&amp;gt;true if managed resources should be disposed; otherwise, false.&amp;lt;/param&amp;gt;
        protected override void Dispose(bool disposing)
        {
            if (disposing &amp;amp;&amp;amp; (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// &amp;lt;summary&amp;gt;
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// &amp;lt;/summary&amp;gt;
        private void InitializeComponent()
        {
            this.btnClose = new System.Windows.Forms.Button();
            this.btmOK = new System.Windows.Forms.Button();
            this.listView1 = new System.Windows.Forms.ListView();
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.cboLevel = new System.Windows.Forms.ComboBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.SuspendLayout();
            // 
            // btnClose
            // 
            this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClose.Location = new System.Drawing.Point(216, 526);
            this.btnClose.Name = "btnClose";
            this.btnClose.Size = new System.Drawing.Size(75, 23);
            this.btnClose.TabIndex = 0;
            this.btnClose.Text = "Close";
            this.btnClose.UseVisualStyleBackColor = true;
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // btmOK
            // 
            this.btmOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btmOK.Location = new System.Drawing.Point(297, 526);
            this.btmOK.Name = "btmOK";
            this.btmOK.Size = new System.Drawing.Size(75, 23);
            this.btmOK.TabIndex = 1;
            this.btmOK.Text = "OK";
            this.btmOK.UseVisualStyleBackColor = true;
            this.btmOK.Click += new System.EventHandler(this.btmOK_Click);
            // 
            // listView1
            // 
            this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.listView1.CheckBoxes = true;
            this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader3});
            this.listView1.FullRowSelect = true;
            this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listView1.HideSelection = false;
            this.listView1.Location = new System.Drawing.Point(12, 27);
            this.listView1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
            this.listView1.Name = "listView1";
            this.listView1.Size = new System.Drawing.Size(360, 464);
            this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.listView1.TabIndex = 2;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "";
            this.columnHeader3.Width = 350;
            // 
            // cboLevel
            // 
            this.cboLevel.FormattingEnabled = true;
            this.cboLevel.Location = new System.Drawing.Point(78, 499);
            this.cboLevel.Name = "cboLevel";
            this.cboLevel.Size = new System.Drawing.Size(294, 21);
            this.cboLevel.TabIndex = 3;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 502);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(60, 13);
            this.label1.TabIndex = 4;
            this.label1.Text = "Pick Level:";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 9);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(112, 13);
            this.label2.TabIndex = 4;
            this.label2.Text = "Select Placed Rooms:";
            // 
            // TestForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(384, 561);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.cboLevel);
            this.Controls.Add(this.listView1);
            this.Controls.Add(this.btmOK);
            this.Controls.Add(this.btnClose);
            this.Name = "TestForm";
            this.Text = "TestForm";
            this.Load += new System.EventHandler(this.TestForm_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button btnClose;
        private System.Windows.Forms.Button btmOK;
        private System.Windows.Forms.ListView listView1;
        private System.Windows.Forms.ColumnHeader columnHeader3;
        private System.Windows.Forms.ComboBox cboLevel;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
    }
}&lt;/CODE&gt;&lt;/PRE&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;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/b427c037-3b56-415e-a2b9-55e17ef23475" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:44:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9372379#M43069</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-11T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9372903#M43070</link>
      <description>&lt;P&gt;I am not really sure why some of my posts don't stick around, but I had an interest in this post and so I think this is a solution to the issue, with maybe a little extra.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Select the rooms to move&lt;/LI&gt;&lt;LI&gt;Select the level to move them too&lt;/LI&gt;&lt;LI&gt;Press OK&lt;OL&gt;&lt;LI&gt;Store the Room Location Point&lt;/LI&gt;&lt;LI&gt;Unplace the Room&lt;OL&gt;&lt;LI&gt;Use a Failure Handler to bypass the "Unplace room in model" warning&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Get the Plan Topology for the level selected&lt;/LI&gt;&lt;LI&gt;Find an empty circuit in the Topology&lt;OL&gt;&lt;LI&gt;There has to be at least one empty circuit (Room)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Replace the room&lt;/LI&gt;&lt;LI&gt;Move the room to the location it was in on the other level&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the command code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyApp.Testing
{
    public partial class TestForm : System.Windows.Forms.Form
    {
        Document doc;
        public TestForm(Document _doc)
        {
            InitializeComponent();
            doc = _doc;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void TestForm_Load(object sender, EventArgs e)
        {
            foreach (Room room in Helpers.Collectors.ByCategory(doc, BuiltInCategory.OST_Rooms))
            {
                if (room.Area &amp;gt; 0 &amp;amp;&amp;amp; room.Location != null)
                {
                    ListViewItem item = listView1.Items.Add(room.Number + " - " + room.Name);
                    item.Tag = room;
                }
            }

            SortedList&amp;lt;string, Level&amp;gt; levels = new SortedList&amp;lt;string, Level&amp;gt;();
            foreach (Level level in Helpers.Collectors.ByCategoryNotElementType(doc, BuiltInCategory.OST_Levels))
            {
                levels.Add(level.Name, level);
            }

            cboLevel.DataSource = levels.ToList();
            cboLevel.DisplayMember = "Key";
            cboLevel.ValueMember = "Value";
        }

        private void btmOK_Click(object sender, EventArgs e)
        {
            try
            {
                using (TransactionGroup transGroup = new TransactionGroup(doc))
                {
                    transGroup.Start("Move Rooms");
                    foreach (ListViewItem item in listView1.CheckedItems)
                    {
                        Room room = (Room)item.Tag;
                        LocationPoint rmPT = room.Location as LocationPoint;
                        XYZ roomPoint = rmPT.Point;
                        double offset = room.LimitOffset;
                        using (Transaction trans1 = new Transaction(doc))
                        {
                            trans1.Start("Unplace Room");
                            FailureHandlingOptions failOptions = trans1.GetFailureHandlingOptions();
                            failOptions.SetFailuresPreprocessor(new UnplacedRoomWarning());
                            trans1.SetFailureHandlingOptions(failOptions);

                            room.Unplace();
                            trans1.Commit();
                        }

                        using (Transaction trans2 = new Transaction(doc))
                        {
                            trans2.Start("New Room");
                            Level level = (Level)cboLevel.SelectedValue;
                            PlanTopology topo = doc.get_PlanTopology(level);
                            PlanCircuitSet circuits = topo.Circuits;

                            foreach (PlanCircuit circuit in circuits)
                            {
                                if (!circuit.IsRoomLocated)
                                {
                                    Room newRoom = doc.Create.NewRoom(room, circuit);
                                    newRoom.get_Parameter(BuiltInParameter.ROOM_UPPER_LEVEL).Set(level.Id);
                                    newRoom.LimitOffset = offset;
                                    XYZ move = new XYZ(roomPoint.X - rmPT.Point.X, roomPoint.Y - rmPT.Point.Y, rmPT.Point.Z);
                                    ElementTransformUtils.MoveElement(doc, newRoom.Id, move);
                                    break;
                                }
                            }
                            trans2.Commit();
                        }
                    }
                    transGroup.Assimilate();
                    Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
    }

    public class UnplacedRoomWarning : IFailuresPreprocessor
    {
        public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
        {
            IList&amp;lt;FailureMessageAccessor&amp;gt; failures = new List&amp;lt;FailureMessageAccessor&amp;gt;();
            failures = failuresAccessor.GetFailureMessages();

            foreach (FailureMessageAccessor failure in failures)
            {
                if (failure.GetSeverity() == FailureSeverity.Warning)
                {
                    if (failure.GetFailureDefinitionId() == BuiltInFailures.RoomFailures.RoomUnplaceWarning || failure.GetFailureDefinitionId() == BuiltInFailures.RoomFailures.RoomHeightNegative)
                    {
                        failuresAccessor.DeleteWarning(failure);
                    }
                }
                else
                {
                    failuresAccessor.ResolveFailure(failure);
                    return FailureProcessingResult.ProceedWithCommit;
                }
            }
            return FailureProcessingResult.Continue;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple Win Form Layout:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 402px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/740276i2EBA784DFF834012/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&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;Here is the Win Form designer code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;namespace MyApp.Testing
{
    partial class TestForm
    {
        /// &amp;lt;summary&amp;gt;
        /// Required designer variable.
        /// &amp;lt;/summary&amp;gt;
        private System.ComponentModel.IContainer components = null;

        /// &amp;lt;summary&amp;gt;
        /// Clean up any resources being used.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="disposing"&amp;gt;true if managed resources should be disposed; otherwise, false.&amp;lt;/param&amp;gt;
        protected override void Dispose(bool disposing)
        {
            if (disposing &amp;amp;&amp;amp; (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// &amp;lt;summary&amp;gt;
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// &amp;lt;/summary&amp;gt;
        private void InitializeComponent()
        {
            this.btnClose = new System.Windows.Forms.Button();
            this.btmOK = new System.Windows.Forms.Button();
            this.listView1 = new System.Windows.Forms.ListView();
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.cboLevel = new System.Windows.Forms.ComboBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.SuspendLayout();
            // 
            // btnClose
            // 
            this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClose.Location = new System.Drawing.Point(216, 526);
            this.btnClose.Name = "btnClose";
            this.btnClose.Size = new System.Drawing.Size(75, 23);
            this.btnClose.TabIndex = 0;
            this.btnClose.Text = "Close";
            this.btnClose.UseVisualStyleBackColor = true;
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // btmOK
            // 
            this.btmOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btmOK.Location = new System.Drawing.Point(297, 526);
            this.btmOK.Name = "btmOK";
            this.btmOK.Size = new System.Drawing.Size(75, 23);
            this.btmOK.TabIndex = 1;
            this.btmOK.Text = "OK";
            this.btmOK.UseVisualStyleBackColor = true;
            this.btmOK.Click += new System.EventHandler(this.btmOK_Click);
            // 
            // listView1
            // 
            this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.listView1.CheckBoxes = true;
            this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader3});
            this.listView1.FullRowSelect = true;
            this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listView1.HideSelection = false;
            this.listView1.Location = new System.Drawing.Point(12, 27);
            this.listView1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
            this.listView1.Name = "listView1";
            this.listView1.Size = new System.Drawing.Size(360, 464);
            this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.listView1.TabIndex = 2;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "";
            this.columnHeader3.Width = 350;
            // 
            // cboLevel
            // 
            this.cboLevel.FormattingEnabled = true;
            this.cboLevel.Location = new System.Drawing.Point(78, 499);
            this.cboLevel.Name = "cboLevel";
            this.cboLevel.Size = new System.Drawing.Size(294, 21);
            this.cboLevel.TabIndex = 3;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 502);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(60, 13);
            this.label1.TabIndex = 4;
            this.label1.Text = "Pick Level:";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 9);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(112, 13);
            this.label2.TabIndex = 4;
            this.label2.Text = "Select Placed Rooms:";
            // 
            // TestForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(384, 561);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.cboLevel);
            this.Controls.Add(this.listView1);
            this.Controls.Add(this.btmOK);
            this.Controls.Add(this.btnClose);
            this.Name = "TestForm";
            this.Text = "TestForm";
            this.Load += new System.EventHandler(this.TestForm_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button btnClose;
        private System.Windows.Forms.Button btmOK;
        private System.Windows.Forms.ListView listView1;
        private System.Windows.Forms.ColumnHeader columnHeader3;
        private System.Windows.Forms.ComboBox cboLevel;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
    }
}&lt;/LI-CODE&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>Wed, 11 Mar 2020 21:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9372903#M43070</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-11T21:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9373577#M43071</link>
      <description>&lt;P&gt;I see both your posts, and your solution looks brilliant to me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 08:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9373577#M43071</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-03-12T08:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9373682#M43072</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;, it seems like ant time I have a Screencast attached I see this behavior. I checked multiple times throughout the day on different devices and nothing showed up, nor did this post jump to the top of the list. So, I posted again in the evening, but still didn't see the first post until after someone (you) replied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 09:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9373682#M43072</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-12T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9374610#M43073</link>
      <description>&lt;P&gt;Thanks for sharing this amazing solution. I raised this question around one year ago and solved it by copying, pasting, and deleting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution would be a great help for the successors ; )&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9374610#M43073</guid>
      <dc:creator>mahshid.motie</dc:creator>
      <dc:date>2020-03-12T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9385080#M43074</link>
      <description>&lt;P&gt;really great, thanks for the effort... I am trying to make your code work for me... might be a weird question for those who are really into the api but what do you refer to as "Helpers"? Is it a special class?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what do you mean by circuit? so you collect the rooms from level 1, save their location, move to the desired level and place them there accordingly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:53:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9385080#M43074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-18T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9385158#M43075</link>
      <description>&lt;P&gt;@Anonymousthose "Helpers" are custom classes that I have built to help me with FilteredElementCollection and disposing / translating the elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this is doing is collecting the levels.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            SortedList&amp;lt;string, Level&amp;gt; levels = new SortedList&amp;lt;string, Level&amp;gt;();
            foreach (Level level in Helpers.Collectors.ByCategoryNotElementType(doc, BuiltInCategory.OST_Levels))
            {
                levels.Add(level.Name, level);
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And would look like this without wrapping it in the Helper:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                SortedList&amp;lt;string, Level&amp;gt; levels = new SortedList&amp;lt;string, Level&amp;gt;();
                using (FilteredElementCollector fec = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Levels).WhereElementIsNotElementType())
                {
                    foreach (Level level in fec.ToElements())
                    {
                        levels.Add(level.Name, level);
                    }
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Circuit is a Revit API terminology that refers to the boundaries that can contain a spatial element like a Room. So, I have to find a "Circuit" that is empty on the level that the room is going too so I can place it within the bounding elements or circuit. I beleive the API call only allows you to place rooms in an open Circuit or one without a room already in it, or at the very least will keep the user from getting the "Multiple Rooms" warning. Once I have them placed in an open circuit, I just move them based on the saved location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 16:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/9385158#M43075</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-03-18T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10737865#M43076</link>
      <description>&lt;P&gt;I got the error in Revit when starting the Plugin: system.MissingMethodException constructor cant be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m guessing&amp;nbsp;&lt;/P&gt;&lt;P&gt;that i need to wrap it all up inside a "public class classname : IExternal Command" ? Can you guys give me further information to this? This is what my External Command Class look like at this moment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.JPG" style="width: 868px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/986279iF4D60E1116D2AE4B/image-dimensions/868x524?v=v2" width="868" height="524" role="button" title="Unbenannt.JPG" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:12:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10737865#M43076</guid>
      <dc:creator>cedric.wehren</dc:creator>
      <dc:date>2021-11-05T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10737885#M43077</link>
      <description>&lt;P&gt;You need to "Show" the form, not activate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;TestForm form = new TestForm(doc);
if(form.ShowDialog() == DialogResult.OK)
{
    return Result.Succedd;
}
else
{
    return Result.Failed;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10737885#M43077</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2021-11-05T12:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748313#M43078</link>
      <description>&lt;P&gt;Am i missing something here? I get this error while debugging: InvalidOperationException (see pic attached)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Unbenannt.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/988187i9F1F9B0E4097D8DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.JPG" alt="Unbenannt.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code i run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public class RoomChanger : IExternalCommand
    {
        public Document dbdoc;

        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            dbdoc = uiapp.ActiveUIDocument.Document; //error happens here

            TestForm form = new TestForm(dbdoc);

                if (form.ShowDialog() == DialogResult.OK) 
                return Result.Succeeded;

                else return Result.Failed;
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748313#M43078</guid>
      <dc:creator>cedric.wehren</dc:creator>
      <dc:date>2021-11-10T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748358#M43079</link>
      <description>&lt;P&gt;Are you really &lt;STRONG&gt;&lt;U&gt;getting&lt;/U&gt;&lt;/STRONG&gt; this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you just seeing that message in Document properties browser panel in the debugger?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a project environment, it is totally expected for the FamilyCreate property not to work; it only works in the family editor context, in an RFA file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748358#M43079</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-11-10T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748386#M43080</link>
      <description>&lt;P&gt;Ah okay, i´ve seen a ghost then, because it only happend inside my IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 15:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748386#M43080</guid>
      <dc:creator>cedric.wehren</dc:creator>
      <dc:date>2021-11-10T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748583#M43081</link>
      <description>&lt;P&gt;I figured that the "DialogeResult" gets overwritten by calling the "Close() Method" (see original script from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3064449"&gt;@Sean_Page&lt;/a&gt;) , resulting in always aborting the command last second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 16:51:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748583#M43081</guid>
      <dc:creator>cedric.wehren</dc:creator>
      <dc:date>2021-11-10T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the associated level of rooms</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748612#M43082</link>
      <description>&lt;P&gt;Just set the DialogResult = DialogResult.Ok in the btnOk_Click event.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-change-the-associated-level-of-rooms/m-p/10748612#M43082</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2021-11-10T17:05:46Z</dc:date>
    </item>
  </channel>
</rss>

