mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-18 18:36:19 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -50,8 +50,7 @@ namespace Rooms
|
||||
//add rooms to the listview
|
||||
foreach (Room tmpRoom in roomList)
|
||||
{
|
||||
int idValue = tmpRoom.Id.IntegerValue;
|
||||
string roomId = idValue.ToString();
|
||||
string roomId = tmpRoom.Id.ToString();
|
||||
//create a list view Item
|
||||
ListViewItem tmpItem = new ListViewItem(roomId);
|
||||
tmpItem.SubItems.Add(tmpRoom.Name); //display room name.
|
||||
|
||||
@@ -184,12 +184,11 @@ namespace Rooms
|
||||
//add it to the list RoomWithTag and delete it from list RoomWithoutTag
|
||||
foreach (RoomTag tmpTag in m_roomTags)
|
||||
{
|
||||
int idValue = tmpTag.Room.Id.IntegerValue;
|
||||
m_roomsWithTag.Add(tmpTag.Room);
|
||||
//search the id for list RoomWithoutTag
|
||||
foreach (Room tmpRoom in m_rooms)
|
||||
{
|
||||
if (idValue == tmpRoom.Id.IntegerValue)
|
||||
if (tmpTag.Room.Id == tmpRoom.Id)
|
||||
{
|
||||
m_roomsWithoutTag.Remove(tmpRoom);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user