Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Apr 26, 2022
1 parent db998cd commit cb1b2fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Test/GetClashTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class GetClashTest : INavisCommand

public override void Action()
{

GetInfoClash();
}
void GetInfoClash()
Expand All @@ -31,12 +30,16 @@ void GetInfoClash()
foreach (SavedItem item in savedItemCollection)
{
ClashResult clashResult = item as ClashResult;
PropertyCategoryCollection categories = clashResult.Item1.PropertyCategories;
foreach (PropertyCategory category in categories)
if (clashResult != null)
{
GetPropertiesClashTest(category);
PropertyCategoryCollection categories = clashResult.Item1.PropertyCategories;
foreach (PropertyCategory category in categories)
{
GetPropertiesClashTest(category);
}
break;
}
break;

}

}
Expand Down
2 changes: 2 additions & 0 deletions Test/INavisCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Windows;
using Autodesk.Navisworks.Api.Plugins;

namespace Test;
Expand All @@ -16,6 +17,7 @@ public override int Execute(params string[] parameters)
catch (Exception e)
{
Logger.Write(e.ToString()).Open();
Clipboard.SetText(e.Message);
}
return 0;
}
Expand Down

0 comments on commit cb1b2fe

Please sign in to comment.