This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Action() | |
{ | |
GetInfoClash(); | |
} | |
void GetInfoClash() | |
{ | |
Document doc = Application.ActiveDocument; | |
DocumentClash documentClash = doc.GetClash(); | |
foreach (SavedItem savedItem in documentClash.TestsData.Tests) | |
{ | |
ClashTest clashTest = (ClashTest) savedItem; | |
SavedItemCollection savedItemCollection = clashTest.Children; | |
foreach (SavedItem item in savedItemCollection) | |
{ | |
ClashResult clashResult = item as ClashResult; | |
if (clashResult != null) | |
{ | |
PropertyCategoryCollection categories = clashResult.Item1.PropertyCategories; | |
foreach (PropertyCategory category in categories) | |
{ | |
Logger.WriteLine(category.DisplayName); | |
GetPropertiesClashTest(category); | |
} | |
break; | |
} | |
} | |
} | |
Logger.Open(); | |
} | |
void GetPropertiesClashTest(PropertyCategory propertyCategory) | |
{ | |
foreach (DataProperty dataProperty in propertyCategory.Properties) | |
{ | |
Logger.Write($"||Name:{dataProperty.Name}"); | |
Logger.Write($"||DisplayName:{dataProperty.DisplayName}"); | |
Logger.Write($"||Value:{dataProperty.Value}"); | |
Logger.Write($"||CombinedName:{dataProperty.CombinedName}"); | |
Logger.Write("\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment