<?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 Scripting &amp;quot;End-to-End&amp;quot; creation of NWD from simple control lists in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4743361#M6749</link>
    <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am approaching the same type automation of NWD problems that Xiaodong addressed with Jurgen back in the post &lt;A target="_self" href="https://forums.autodesk.com/t5/Autodesk-Navisworks-API/I-can-t-import-XML-Search-Sets-using-control-API/td-p/3002500"&gt;I cant import XML Search Sets...&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;That post gives me many good ideas but did not address the problem of the import of the Search Sets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Specific Goals for this task are probably similar or identical to lots of others trying to Automate Navisworks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Lower cost of Navisworks in Designer/User Project Hours&lt;/LI&gt;&lt;LI&gt;Reduce/eliminate the delays waiting for NWF's composed of source files to open.&lt;/LI&gt;&lt;LI&gt;Increase update frequency of fast to open NWD’s.&lt;/LI&gt;&lt;LI&gt;Lower cost of periodic NWF Maintenance to add/remove Models, update Search Sets, apply Appearance Profiles and other repeated misc items.&lt;/LI&gt;&lt;LI&gt;Create solution for End-to-End Automation of Design Source Model files and Control files to finished NWD.&lt;/LI&gt;&lt;LI&gt;Solution must be simple enough that it can be administered by someone who is not a programmer, so all they must do is supply a few simple lists or control files.&lt;/LI&gt;&lt;LI&gt;Like any Automation task, it has to pay for itself and be reusable.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I would like to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a series of NWD's from source Models and lists, to be composited in a parent NWF, we want to preserve the tree structure for organizational reasons. &lt;FONT color="#99cc00"&gt;I can create both NWD sets and put them into a NWF at a low level using filelists with "FileToolsTaskRunner".&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Import a Search Set XML to the NWF. &lt;FONT color="#ff0000"&gt;Currently looking for solution.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;For one of the Search Set items by name, choose those members and Hide them. &lt;FONT color="#ff9900"&gt;The previous post may work here, I have yet to experiment.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Apply a "Appearance Profile" based on those "Search Sets". &lt;FONT color="#ff0000"&gt;Currently looking for solution, from what I can tell it is not scriptable and has no API. Not good.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Load a "ViewPoints" XML and select one. &lt;FONT color="#ff0000"&gt;Currently looking for solution.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Set a few misc items, like the Horizon background, etc... &lt;FONT color="#ff9900"&gt;No idea if any of this can be low level scripted, probably it can with a higher API. Possibly may be able to create a "seed" NWF with a few things set that do not change... will try this...&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Save out the NWD. &lt;FONT color="#99cc00"&gt;The COM solution of "AutoPublishScriptExample" as we have modified works, &lt;FONT color="#ff9900"&gt;and I am considering if "FileToolsTaskRunner" may help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Several of these things can be done automatically and scripted individually at a low level, but apparently none can be done all the way through for a end-to-end solution. Some appear to not be low level scriptable by the same methods, or simply not available in an API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just starting the process of learning how to interact with Visual Studio to deal with the higher level languages. Old world coding and scripting I can understand, newer .NET and similar API's will take time but I am trying to learn fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I have missed some solutions by not searching for the correct words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any simple solutions to this series of tasks, or if not, are there any complex but workable API solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later I will tackle the problem of Automating Clash Detection and Report writing, that is for another day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any and all help,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2014 00:22:00 GMT</pubDate>
    <dc:creator>JohnStory</dc:creator>
    <dc:date>2014-01-11T00:22:00Z</dc:date>
    <item>
      <title>Scripting "End-to-End" creation of NWD from simple control lists</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4743361#M6749</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am approaching the same type automation of NWD problems that Xiaodong addressed with Jurgen back in the post &lt;A target="_self" href="https://forums.autodesk.com/t5/Autodesk-Navisworks-API/I-can-t-import-XML-Search-Sets-using-control-API/td-p/3002500"&gt;I cant import XML Search Sets...&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;That post gives me many good ideas but did not address the problem of the import of the Search Sets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Specific Goals for this task are probably similar or identical to lots of others trying to Automate Navisworks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Lower cost of Navisworks in Designer/User Project Hours&lt;/LI&gt;&lt;LI&gt;Reduce/eliminate the delays waiting for NWF's composed of source files to open.&lt;/LI&gt;&lt;LI&gt;Increase update frequency of fast to open NWD’s.&lt;/LI&gt;&lt;LI&gt;Lower cost of periodic NWF Maintenance to add/remove Models, update Search Sets, apply Appearance Profiles and other repeated misc items.&lt;/LI&gt;&lt;LI&gt;Create solution for End-to-End Automation of Design Source Model files and Control files to finished NWD.&lt;/LI&gt;&lt;LI&gt;Solution must be simple enough that it can be administered by someone who is not a programmer, so all they must do is supply a few simple lists or control files.&lt;/LI&gt;&lt;LI&gt;Like any Automation task, it has to pay for itself and be reusable.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I would like to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a series of NWD's from source Models and lists, to be composited in a parent NWF, we want to preserve the tree structure for organizational reasons. &lt;FONT color="#99cc00"&gt;I can create both NWD sets and put them into a NWF at a low level using filelists with "FileToolsTaskRunner".&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Import a Search Set XML to the NWF. &lt;FONT color="#ff0000"&gt;Currently looking for solution.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;For one of the Search Set items by name, choose those members and Hide them. &lt;FONT color="#ff9900"&gt;The previous post may work here, I have yet to experiment.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Apply a "Appearance Profile" based on those "Search Sets". &lt;FONT color="#ff0000"&gt;Currently looking for solution, from what I can tell it is not scriptable and has no API. Not good.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Load a "ViewPoints" XML and select one. &lt;FONT color="#ff0000"&gt;Currently looking for solution.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Set a few misc items, like the Horizon background, etc... &lt;FONT color="#ff9900"&gt;No idea if any of this can be low level scripted, probably it can with a higher API. Possibly may be able to create a "seed" NWF with a few things set that do not change... will try this...&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Save out the NWD. &lt;FONT color="#99cc00"&gt;The COM solution of "AutoPublishScriptExample" as we have modified works, &lt;FONT color="#ff9900"&gt;and I am considering if "FileToolsTaskRunner" may help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Several of these things can be done automatically and scripted individually at a low level, but apparently none can be done all the way through for a end-to-end solution. Some appear to not be low level scriptable by the same methods, or simply not available in an API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just starting the process of learning how to interact with Visual Studio to deal with the higher level languages. Old world coding and scripting I can understand, newer .NET and similar API's will take time but I am trying to learn fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I have missed some solutions by not searching for the correct words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any simple solutions to this series of tasks, or if not, are there any complex but workable API solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later I will tackle the problem of Automating Clash Detection and Report writing, that is for another day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any and all help,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 00:22:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4743361#M6749</guid>
      <dc:creator>JohnStory</dc:creator>
      <dc:date>2014-01-11T00:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting "End-to-End" creation of NWD from simple control lists</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4745673#M6750</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Firstly, I’d suggest you post question one by one. It is hard for the forum peers to jump into a case with long description and many questions. I’ll take a crack at answering your questions below. If it does not help, please log the question in a new post to hear more from others.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a series of NWD's from source Models and lists, to be composited in a parent NWF, we want to preserve the tree structure for organizational reasons.&amp;nbsp;I can create both NWD sets and put them into a NWF at a low level using filelists with "FileToolsTaskRunner".&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong] API provides the method AppendFile, MergeFile and SaveFile which should be what you need. These method are exposed in Automation and Plugin. So for automatic process, you can just write an Automation application, and do the batch work.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;2. Import a Search Set XML to the NWF.&amp;nbsp;Currently looking for solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong]&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;It is not related with Navisworks API when parsing XML, but after you get the info of the item of the XML, you can just create Search Set. Please see this blog:&amp;nbsp;&lt;A href="http://adndevblog.typepad.com/aec/2012/08/add-search-selectionset-in-net.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/08/add-search-selectionset-in-net.html&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;3. For one of the Search Set items by name, choose those members and Hide them.&amp;nbsp;The previous post may work here, I have yet to experiment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong]&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;Yes, API provides you with the ability to hide items: DocumentModels.SetHidden. I believe it is not difficult for you.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;4. Apply a "Appearance Profile" based on those "Search Sets".&amp;nbsp;Currently looking for solution, from what I can tell it is not scriptable and has no API. Not good.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong]&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;Yes, no direct API, but it does not mean you cannot do anything. You may have found a discussion:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;A href="https://forums.autodesk.com/t5/Autodesk-Navisworks-API/Manipulate-Appearances-in-the-Profiler/m-p/3904243/highlight/true#M944" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Navisworks-API/Manipulate-Appearances-in-the-Profiler/m-p/3904243/highlight/true#M944&lt;/A&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;5. Load a "ViewPoints" XML and select one.&amp;nbsp;Currently looking for solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong]&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;Similar to Search Set, after parsing the XML, create the viewpoints.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;A href="http://adndevblog.typepad.com/aec/2012/06/navisworks-net-api-2013-new-feature-saved-viewpoint.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/06/navisworks-net-api-2013-new-feature-saved-viewpoint.html&lt;/A&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;6.&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;a few misc items, like the Horizon background, etc...&amp;nbsp;No idea if any of this can be low level scripted, probably it can with a higher API. Possibly may be able to create a "seed" NWF with a few things set that do not change... will try this...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong]&amp;nbsp;&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;I do see &amp;nbsp;a way to manipulate Background Setting, but at least, you can set backgorund color.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;A href="http://adndevblog.typepad.com/aec/2012/07/changing-background-for-publishing-file-using-script-automation-in-navisworks.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/07/changing-background-for-publishing-file-using-script-automation-in-navisworks.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;7. Save out the NWD.&amp;nbsp;The COM solution of "AutoPublishScriptExample" as we have modified works,&amp;nbsp;and I am considering if "FileToolsTaskRunner" may help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P align="left"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;[Xiaodong] &amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;Both COM and .NET API provide the save method. By far, I started to guess you actually want to use COM API to implement all of your process? What I mentioned above are written in .NET.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 03:42:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4745673#M6750</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2014-01-13T03:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting "End-to-End" creation of NWD from simple control lists</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4756049#M6751</link>
      <description>&lt;P&gt;Xiaodong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your quick response to my question, and sorry it was all rolled together, that is how I approach the task, even though it may have multiple parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have "Search Sets" that have ~160 Searches,&amp;nbsp;Appearance Profiles with ~30 overrides and Viewpoint Lists can be dozens to well over a hundred. We would like to create more variations to be applied during different automation runs to get the desired outputs for the audiences. the use of these in automation seems to be complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your response, I see that I have significant programming ahead to learn to read the saved application&amp;nbsp;datafiles and use the API to recreate "Search Sets", create "Appearance Profile" like actions, and recreate "Viewpoints". This will take some time to learn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I get into the coding, I am sure I will be back later with more questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One request would be that these "Key/Core" type of utilities and features in future versions of Navisworks should have at minimum a API specific for that utility, and preferably a simpler scripting method that would not require programming to do "regular" tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 23:32:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/scripting-quot-end-to-end-quot-creation-of-nwd-from-simple/m-p/4756049#M6751</guid>
      <dc:creator>JohnStory</dc:creator>
      <dc:date>2014-01-16T23:32:28Z</dc:date>
    </item>
  </channel>
</rss>

