<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: To Run a Clash test using api in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/9341787#M5100</link>
    <description>&lt;P&gt;SavedItemCollection clashTests = documentClash.TestsData.Tests;&lt;BR /&gt;documentClash.TestsData.TestsRunTest(clashTests[clashTests.Count-1] as ClashTest);&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 06:55:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-26T06:55:18Z</dc:date>
    <item>
      <title>To Run a Clash test using api</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/6607309#M5099</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside a plugin, I am creating a new clash test and trying to run it. Using this command "documentClash.TestsData.TestsRunAllTests();" it runs without any errors. However, if I try using "documentClash.TestsData.TestsRunTest(oTest);" where oTest is the newly created instance, it throws "ArgumentException Argument is not in Clash Detective Parameter name: test". No other tests are defined in the model !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 05:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/6607309#M5099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T05:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: To Run a Clash test using api</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/9341787#M5100</link>
      <description>&lt;P&gt;SavedItemCollection clashTests = documentClash.TestsData.Tests;&lt;BR /&gt;documentClash.TestsData.TestsRunTest(clashTests[clashTests.Count-1] as ClashTest);&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 06:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/9341787#M5100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: To Run a Clash test using api</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/9343388#M5101</link>
      <description>&lt;P&gt;You can also try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; private void RunClash(string clashTestName)
        {
            Document doc = NavisApp.ActiveDocument;
            DocumentClash clash = doc.GetClash();
            DocumentClashTests clashTests = clash.TestsData;

            using (ClashTest clashTest = (ClashTest)clashTests.Tests.FirstOrDefault(t =&amp;gt; t.DisplayName == clashTestName))
            {
                clash.TestsData.TestsRunTest(clashTest);
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 17:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/9343388#M5101</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2020-02-26T17:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: To Run a Clash test using api</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/12637634#M5102</link>
      <description>Hello jabowabo,&lt;BR /&gt;&lt;BR /&gt;this method is really great but i have a small issue if i get test and try to run it the object of this test is disposed and i can't use it ( i remove using block to avoid disposing of clashtest but it still disposed)</description>
      <pubDate>Wed, 13 Mar 2024 12:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/to-run-a-clash-test-using-api/m-p/12637634#M5102</guid>
      <dc:creator>Ta7a</dc:creator>
      <dc:date>2024-03-13T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

