copied Revit 2024 SDK

This commit is contained in:
Jeremy Tammik
2023-04-26 14:47:47 +02:00
parent 2ca39e38fd
commit 4d69f3eea5
425 changed files with 344414 additions and 2296 deletions
@@ -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);
}