<?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: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4371798#M6885</link>
    <description>&lt;P&gt;hi Xiaodong Liang,&lt;/P&gt;&lt;P&gt;Interesting blog post, I'll look more into it, but using wpf and having to work around issues with the render tread just to do a simple sort seems like overkill and I'm not sure it will work in nogui mode.&amp;nbsp;I can always hope that someday they will add a (file level) in-place sort capability to the API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2013 08:49:45 GMT</pubDate>
    <dc:creator>ulski1</dc:creator>
    <dc:date>2013-08-19T08:49:45Z</dc:date>
    <item>
      <title>Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4358666#M6879</link>
      <description>&lt;P&gt;hi Navis API gurus,&lt;/P&gt;&lt;P&gt;I'm wrinting code to maintain nwf files. I'm appending and removing files in the nwf files. When I append files they always appear last in the selection tree even if they start with the letter a. In the GUI interface it is possible to do a sort manually but I havn't been able to do a "in place" sort of activedocument from code. I see that there are internal methods that might be useful like InternalInsert(int index, Model item); but I guess they are internal only.&amp;nbsp; I also tryed Autodesk.Navisworks.Api.Application.ActiveDocument.Models.OrderBy but that seems to create a new sorted list ( it is not a in place sort).&lt;/P&gt;&lt;P&gt;Any suggestions. I'm currently coding towards the 2012 api.&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2013 10:47:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4358666#M6879</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2013-08-08T10:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4367240#M6880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me the collection of Models in .NET API is read-only. The following is a workaround. It deletes all files and append them again with the new order. I know you would hate such way, but this may be the way we have to go currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;using ComApi = Autodesk.Navisworks.Api.Interop.ComApi;&lt;/DIV&gt;
&lt;DIV&gt;using ComBridge = Autodesk.Navisworks.Api.ComApi.ComApiBridge ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;namespace MyDemoPlugin&lt;/DIV&gt;
&lt;DIV&gt;{&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; [PluginAttribute("MyDemoPlugin", "ADSK", DisplayName = "demo")]&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; public class Class1:AddInPlugin&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public override int Execute(params string[] parameters)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Document oDoc = Autodesk.Navisworks.Api.Application.ActiveDocument;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //sorting the names of the models &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IEnumerable&amp;lt;Model&amp;gt; oNewSortedModels = oDoc.Models.OrderBy(per =&amp;gt; per.RootItem.DisplayName);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;string&amp;gt; fileArray = new List&amp;lt;string&amp;gt;();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (Model oEachModel in oNewSortedModels)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fileArray.Add(oEachModel.FileName );&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //delete all files.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (Model oEachModel in oDoc.Models)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // State.DeleteSelectedFiles failed to delete&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // all files at one time.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // so have to delete them one by one.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModelItemCollection oMC = new ModelItemCollection();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oMC.Add(oEachModel.RootItem);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oDoc.CurrentSelection.CopyFrom(oMC);&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ComBridge.State.DeleteSelectedFiles();&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //append them again with the new order&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oDoc.AppendFiles(fileArray);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch(Exception ex)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Aug 2013 07:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4367240#M6880</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-08-15T07:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4367258#M6881</link>
      <description>&lt;P&gt;Hi Xiaodong Liang,&lt;/P&gt;&lt;P&gt;I'm already done with the code. I ended up with a solution where I first detect if the change only involves removal - in that case I don't need sorting (the objects are normally already sorted). In case I need to append files I need to remove all objects (as you also found out) expect index 0 (in order to not get an exception error) and then I append all the objects I need and after this I can delete index 0. The code looks &lt;STRONG&gt;really awful&lt;/STRONG&gt; and I wanted to avoid this mess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bg&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 08:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4367258#M6881</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2013-08-15T08:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4368567#M6882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ulrik,&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;Yes, this is not elegant and removing&amp;amp;appending models will cause performance issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more workaround, if it is fine to you, is to build you own selection tree, thus you can manage them easily. For the built-in tree, the way is what we have found..&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 01:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4368567#M6882</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-08-16T01:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4368828#M6883</link>
      <description>&lt;P&gt;a custom selection tree&amp;nbsp;might be a good idea. Are there any draw backs when creating/using a custom selection trees?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't looked into custom selection trees and&amp;nbsp;I haven't found any sample code on how to work with a&amp;nbsp;them perhaps you could direct me to some&amp;nbsp;code samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 06:47:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4368828#M6883</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2013-08-16T06:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4371678#M6884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To build the custom tree, you just need to iterate the model items, children, decendents, and create the tree node one by one in the Tree View control of Windows Form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you work with WPF, the Tree View control can bind the hierarchy of Navisworks model items. Please refer to the blog below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2013/04/use-navisworks-api-with-wpf-binding-model-hierarchy-to-tree-view.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2013/04/use-navisworks-api-with-wpf-binding-model-hierarchy-to-tree-view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 03:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4371678#M6884</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-08-19T03:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4371798#M6885</link>
      <description>&lt;P&gt;hi Xiaodong Liang,&lt;/P&gt;&lt;P&gt;Interesting blog post, I'll look more into it, but using wpf and having to work around issues with the render tread just to do a simple sort seems like overkill and I'm not sure it will work in nogui mode.&amp;nbsp;I can always hope that someday they will add a (file level) in-place sort capability to the API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ulrik&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:49:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4371798#M6885</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2013-08-19T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4373341#M6886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ulrik,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I logged a wish &lt;STRONG&gt;#44723:&lt;SPAN style="font-size: 11px;"&gt;&amp;nbsp;in-place sort capability (file level).&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11px;"&gt;But I cannot&amp;nbsp;guarantee anything until it is implemented in the future release(s).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 02:33:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/4373341#M6886</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-08-20T02:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/5466074#M6887</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone say which is status of the wish &lt;STRONG&gt;#44723:&lt;SPAN style="font-size: 11px;"&gt;&amp;nbsp;in-place sort capability (file level)&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I come from my post here and I'm facing similar issue&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/navisworks-general-discussion/sort-order-of-the-navisworks-selection-tree/m-p/5466064#M8749" target="_blank"&gt;http://forums.autodesk.com/t5/navisworks-general-discussion/sort-order-of-the-navisworks-selection-tree/m-p/5466064#M8749&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One possible idea for me also is to have a workaorund coming from a little API program sorting the model tree (1st level only) whereas a built-in solution to enhance the scene--&amp;gt;sort function would be nice at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;danko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2015 11:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/5466074#M6887</guid>
      <dc:creator>koeltzsch</dc:creator>
      <dc:date>2015-01-12T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/5702906#M6888</link>
      <description>Hi Danko,&lt;BR /&gt;&lt;BR /&gt;There is not any update about the wish #44723. Sorry if this is a bad news to you.</description>
      <pubDate>Thu, 02 Jul 2015 02:27:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/5702906#M6888</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-07-02T02:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7750681#M6889</link>
      <description>&lt;P&gt;Hi XiaoDong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to use your code to remove exsiting models and Navisworks crashes at the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; ComBridge.State.DeleteSelectedFiles();&lt;/PRE&gt;&lt;P&gt;I'm currently using Navisworks 2018; has there been any changes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 06:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7750681#M6889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-05T06:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7750877#M6890</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;perhaps you get this&amp;nbsp;error because you try to delete the last remaining model - Navisworks doesn't allow you to have 0 models in a loaded nwf&amp;nbsp;- so you need to have a check in your code to prevent this from happening (if count = 1 do not delete). If you want to unload all models from Navisworks like a "file new" you need to use Autodesk.Navisworks.Api.Application.MainDocument.Clear();&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;edit: forgot to mention the delete statement works perfectly fine in 2018 - we run it on our rather massiv nwd production line.&lt;/P&gt;
&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;Ulrik&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 08:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7750877#M6890</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2018-02-05T08:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Navisworks.Api.Application.ActiveDocument.Models sorting</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7753883#M6891</link>
      <description>&lt;P&gt;Thanks ulski. The clear solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Couldn't use the comapi to delete though despite using NW 2018.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 04:14:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/autodesk-navisworks-api-application-activedocument-models/m-p/7753883#M6891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T04:14:08Z</dc:date>
    </item>
  </channel>
</rss>

