<?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: Hide model items in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3756335#M7222</link>
    <description>&lt;P&gt;I developed my code based on the link which you have provided and did not miss anything.&lt;/P&gt;&lt;P&gt;.NET Framework 4.0 does not help too.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2013 11:44:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-18T11:44:29Z</dc:date>
    <item>
      <title>Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750785#M7217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read selection items for tasks in timeliner and trying to hide them using API.&lt;/P&gt;&lt;P&gt;this is the code for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach (Tl.TimelinerTask oTask in tl_doc.Tasks)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DateTime date2 = oTask.ActualStartDate.Value.Date;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int result = DateTime.Compare(date1, date2);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (result &amp;gt; 0 || result == 0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tl.TimelinerSelection oTlSel = oTask.Selection;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (oTlSel != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (oTlSel.HasExplicitSelection)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nw.ModelItemCollection oExplicitSel = oTlSel.ExplicitSelection;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Autodesk.Navisworks.Api.Application.ActiveDocument.Models.SetHidden(oExplicitSel, false);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i debug the program it says "the name 'oExplicitSele' does not exist in the current context. Can anyone please explain how to hide selection items attached to a task.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 06:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750785#M7217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-11T06:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750791#M7218</link>
      <description>&lt;P&gt;It is C# and you are using &lt;SPAN&gt;oExplicitSel in the&amp;nbsp;&lt;/SPAN&gt;brackets, &amp;nbsp;right? I beleive you have figured it out after posting the question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750791#M7218</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-11T07:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750825#M7219</link>
      <description>&lt;P&gt;Thank you for your reply Mr. Xiaodong Liang.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i run the code I am facing the following error (although i added the dll as a refrence in thr app). Can you please explain why this is happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;System.IO.FileNotFoundException: Could not load file or assembly 'Autodesk.Navisworks.Timeliner.dll' or one of its dependencies. The specified module could not be found.&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2013 08:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750825#M7219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-11T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750826#M7220</link>
      <description>&lt;P&gt;I have also added all the dependencies through .net reflector.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 08:42:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3750826#M7220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-11T08:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3752106#M7221</link>
      <description>&lt;P&gt;Please take a look at this post. Hope you could find what you missed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2012/10/timeliner-api-part1.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/10/timeliner-api-part1.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, please switch the .NET framework to 4.0 if it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 07:05:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3752106#M7221</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-14T07:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3756335#M7222</link>
      <description>&lt;P&gt;I developed my code based on the link which you have provided and did not miss anything.&lt;/P&gt;&lt;P&gt;.NET Framework 4.0 does not help too.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 11:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3756335#M7222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-18T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3758532#M7223</link>
      <description>&lt;P&gt;So, I believe your app is a standalone EXE of .NET control. Unfortunately TimeLiner/ClashTest has not exposed to .NET control. you can only use them in a plugin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The possible way I can think of is: you create an automation and plugin. plugin accesses timeliner and writes the info you need into a temporary file. When your app of .Net control wants to get timeliner info, it launches the automation, the automation starts a process of Navisworks (invisible), executes the plugin. finally, the app pf .Net control reads the temporary file and gets the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 05:33:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3758532#M7223</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-22T05:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3758702#M7224</link>
      <description>&lt;P&gt;That helps a lot. Thank you for the information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 12:51:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3758702#M7224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-22T12:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3788396#M7225</link>
      <description>&lt;P&gt;you havent included the .dll file in references. please find it in navisworks freedom folder. cheers.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2013 19:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3788396#M7225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-24T19:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3790920#M7226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;A id="link_13d19293eb1" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206032" target="_self"&gt;dickinsjohn&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not sure which question you are answering. But please note: no API for Freedom.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 01:01:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3790920#M7226</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-02-27T01:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3790998#M7227</link>
      <description>&lt;P&gt;Sir I am talking about the following error.&lt;/P&gt;&lt;P&gt;"the name 'oExplicitSele'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same issue. i couldnt find the timeliner api .dll file in api folder of navis manage. i had to include it from the freedom folder to resolve the error.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 05:48:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3790998#M7227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-27T05:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hide model items</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3795956#M7228</link>
      <description>&lt;P&gt;hum...no dll in Manage? sounds strange to me. I suspect this is an issue with the installer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the original question in this thread, the code demo obviously shows the variable&amp;nbsp;&lt;SPAN&gt;oExplicitSele is defined within the brackets, but&amp;nbsp;&lt;SPAN&gt;&lt;A id="link_13d38602cc0" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/995477" target="_self"&gt;karteek.iitm&lt;/A&gt;&amp;nbsp;wanted to use it outside of the region. That looks just a simple compiling error to me.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 02:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/hide-model-items/m-p/3795956#M7228</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-03-05T02:29:14Z</dc:date>
    </item>
  </channel>
</rss>

