Message 1 of 2
Grouping Clashes Programmatically
Not applicable
03-18-2012
10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to automate some simple clash detection functions, and would like Clash Detective to automatically organize clashes into folders based on certain criteria (grouping them as you can within the Clash Detective GUI). I've rewritten AUTO_04 (helpful tutorial btw - thanks) in C# successfully, and am now trying to tailor it to my purposes.
I've been able to retrieve information about what group a clash has already been placed in, but the variable is read-only.
m_clash.RunAllTests();
foreach (ComApi.InwOclClashTest clashTest in m_clash.Tests())
{
foreach (ComApi.InwOclTestResult2 clashResult2 in clashTest.results())
{
MessageBox.Show(Autodesk.Navisworks.Api.Application.Gui.MainWindow, "clashResult2.GroupPath = " + clashResult2.GroupPath);
}
} How can I set InwOclTestResult.GroupPath? (I know it's a read-only variable - is there a workaround?)