<?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: Publish using the Batch Utility (Simulate 2012) in Navisworks Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3887478#M21471</link>
    <description>&lt;P&gt;Patrick - can you post the modifications you made to remove the expiration date and password?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2013 19:38:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-24T19:38:22Z</dc:date>
    <item>
      <title>Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3320921#M21460</link>
      <description>&lt;P&gt;Is it possible to publish an nwd file via the Batch Utility?&lt;/P&gt;&lt;P&gt;I currently generate a new model via the Batch Utility Scheduler but for security reasons, I need the file to be locked after 24hrs.&lt;/P&gt;&lt;P&gt;I can manually publish the file with these settings but I need to automate the file creation.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2012 13:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3320921#M21460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-07T13:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322477#M21461</link>
      <description>&lt;P&gt;In the VB examples there is an example that does just that:&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Navisworks Simulate 2011\api\COM\examples\AUTO_08\Auto_08.vbs&lt;/P&gt;&lt;P&gt;(I suppose it is also included in the 2012 version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just open with Notepad and read it.&lt;BR /&gt;This can be launced from a command line&lt;/P&gt;&lt;P&gt;and thus by a scheduled CMD-file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to modify it to get rid of the password and expirying date...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 08:17:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322477#M21461</guid>
      <dc:creator>Patrick_Aps_9121</dc:creator>
      <dc:date>2012-02-08T08:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322607#M21462</link>
      <description>&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works a dream, many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 10:46:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322607#M21462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-08T10:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322637#M21463</link>
      <description>&lt;P&gt;Is there a way to set the date to increment automatically?&lt;/P&gt;&lt;P&gt;eg todays date + 1&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 11:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3322637#M21463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-08T11:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3324405#M21464</link>
      <description>&lt;P&gt;Within the&amp;nbsp;VB code, surly, but I don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 06:19:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3324405#M21464</guid>
      <dc:creator>Patrick_Aps_9121</dc:creator>
      <dc:date>2012-02-09T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3327485#M21465</link>
      <description>&lt;P&gt;Try the Navisworks API forum&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Navisworks-API/bd-p/600" target="_self"&gt;http://forums.autodesk.com/t5/Autodesk-Navisworks-API/bd-p/600&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 17:08:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3327485#M21465</guid>
      <dc:creator>lee.mullin</dc:creator>
      <dc:date>2012-02-10T17:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3332941#M21466</link>
      <description>&lt;P&gt;Solution found,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you replace the expiry argument with the following code, the published file has a onw week lifespan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arg_expiry = dateadd("d", 7, Now() )&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 11:56:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3332941#M21466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T11:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372477#M21467</link>
      <description>&lt;P&gt;Do you know if there is a way of creating a batch that uses the publish option "embed database properties" instead of expiration date?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 16:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372477#M21467</guid>
      <dc:creator>OLLE_86</dc:creator>
      <dc:date>2012-03-15T16:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372521#M21468</link>
      <description>&lt;LI-SPOILER&gt;Ollie. I looked at trying to change some of the settings at the bottom of the publish dialogue but had no success. I think it was the spces in the attribute names that caused the problem (together with my lack of vb knowledge). I tried with single and double quotes but couldn't get it to work.&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 16:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372521#M21468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372529#M21469</link>
      <description>&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;Ollie. I looked at trying to change some of the settings at the bottom of the publish dialogue but had no success. I think it was the spces in the attribute names that caused the problem (together with my lack of vb knowledge). I tried with single and double quotes but couldn't get it to work.&lt;/DIV&gt;&lt;DIV class="lia-spoiler-content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-spoiler-content"&gt;Sorry, not sure what happened to my last reply&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Mar 2012 16:23:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3372529#M21469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-15T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3597498#M21470</link>
      <description>&lt;P&gt;Does Anyone got solution for customizing sample AUTO_08.vbs to&amp;nbsp;publish option "embed database properties".&lt;/P&gt;&lt;P&gt;Also wanted to know&amp;nbsp;with this script&amp;nbsp;publishing time is faster?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2012 03:28:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3597498#M21470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-28T03:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3887478#M21471</link>
      <description>&lt;P&gt;Patrick - can you post the modifications you made to remove the expiration date and password?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 19:38:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3887478#M21471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-24T19:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3887830#M21472</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Craig,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is one of the files I use. Hope it works for you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: You will have to change the txt suffix to .vbs&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 07:54:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/3887830#M21472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-25T07:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/5668905#M21473</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;I need to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;activate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;may&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;re&lt;/SPAN&gt;&lt;SPAN&gt;-saved&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;option.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;What is the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;parameter&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Would you help me&lt;/SPAN&gt;? Tks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 18:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/5668905#M21473</guid>
      <dc:creator>det047</dc:creator>
      <dc:date>2015-06-08T18:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/7793338#M21474</link>
      <description>&lt;P&gt;Is there an option that can be added to the script to embed the textures like you would if you were doing a manual publish?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 21:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/7793338#M21474</guid>
      <dc:creator>jhamilton</dc:creator>
      <dc:date>2018-02-20T21:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Publish using the Batch Utility (Simulate 2012)</title>
      <link>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/10126452#M21475</link>
      <description>&lt;P&gt;Just follow the steps:&lt;/P&gt;&lt;P&gt;1 - Pick the code below and create the file nwd2nwd_publish.vbs;&lt;/P&gt;&lt;P&gt;2 - rename the file attached Publish_nwd.txt to Publish_nwd.bat;&lt;/P&gt;&lt;P&gt;3 - Put both in the same folder / directory in computer;&lt;/P&gt;&lt;P&gt;4 - Edit the&amp;nbsp;Publish_nwd.bat in Notepad to edit the arguments, such as the full path of the&amp;nbsp;nwd2nwd_publish.vbs file, and the full path of the .nwf file to publish and the destination folder;&lt;/P&gt;&lt;P&gt;5 - Open&amp;nbsp;nwd2nwd_publish.vbs to edit aditional arguments, there's an explanation in the top of the vbscript;&lt;/P&gt;&lt;P&gt;6 - Open the prompt and run the script that is inside the&amp;nbsp;Publish_nwd.bat file or use Task Scheduler in windows to to schedule to&amp;nbsp; run this automation daily for exemple;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'Usage:
'cscript.exe nwf2nwd_advanced.vbs &amp;lt;f_in&amp;gt; &amp;lt;f_out&amp;gt; &amp;lt;title&amp;gt; &amp;lt;subject&amp;gt; &amp;lt;author&amp;gt; &amp;lt;publisher&amp;gt; &amp;lt;publishedfor&amp;gt;
'&amp;lt;copyright&amp;gt; &amp;lt;keywords&amp;gt; &amp;lt;comments&amp;gt; &amp;lt;password&amp;gt; &amp;lt;expirydate&amp;gt;

'Example of the command in .bat (batch file command, just create a test.txt in yout desktop and rename to test.bat) 
'using cscript.exe in the beginning to run the vbscript, you can run by prompt or task scheduler:
'cscript.exe "P:\teste_smartplant\nwf2nwd_advanced.vbs" "P:\teste_smartplant\112-60-45-Mecanica.nwf" "P:\teste_smartplant\112-60-45-Mecanica.nwd" "Projeto XXX" "Modelo para acompanhamento de projeto" "Company_Name" "" "" "" "" ""

' input argument 
dim roamer
dim attrib
dim ndx
dim arg_in
dim arg_out
dim arg_title
dim arg_password 
dim arg_author 
dim arg_subject
dim arg_copyright
dim arg_keywords
dim arg_comments
dim arg_publisher
dim arg_publishedfor
dim flags
dim arg_expiry
dim expiry
dim count
dim datenow

''prepare arguments
if WScript.Arguments.Count &amp;lt; 10 then
    WScript.Echo "Missing parameters"
Else
    count=WScript.Arguments.Count
    arg_in=WScript.Arguments(0)
    arg_out=WScript.Arguments(1)
    arg_title=WScript.Arguments(2)
    arg_subject=WScript.Arguments(3)
    arg_author=WScript.Arguments(4)
    arg_publisher=WScript.Arguments(5)
    arg_publishedfor=WScript.Arguments(6)
    arg_copyright=WScript.Arguments(7)
    arg_keywords=WScript.Arguments(8)
    'arg_comments=WScript.Arguments(9)
    arg_comments="Data de publicação: " &amp;amp; dateadd("d", 0, Now())
    arg_password=WScript.Arguments(9)
    'arg_expiry=WScript.Arguments(11)
    'arg_expiry = dateadd("d", 21, Now())
    'expiry=CDate(arg_expiry)

End if

''create roamer via automation
set roamer=createobject("navisWorks.document") 
roamer.visible = false

''open input file
roamer.openfile arg_in

''create publishing attribute
ndx=roamer.state.getenum("eObjectType_nwOaPublishAttribute")
set attrib=roamer.state.objectFactory(ndx)

''set publishing properties
attrib.title=arg_title
attrib.password=arg_password
attrib.author=arg_author
'attrib.expirydate=expiry
attrib.subject=arg_subject
attrib.copyright=arg_copyright
attrib.keywords=arg_keywords
attrib.comments=arg_comments
attrib.publisher=arg_publisher
attrib.publishedfor=arg_publishedfor

flags=attrib.flags
''show properties when open Navisworks
ndx=roamer.state.getenum("ePublishFlag_DISPLAY_ON_OPEN")
''embed recap and textures
ndx1=roamer.state.getenum("ePublishFlag_EMBED_TEXTURES")
''embed database properties such as datatools linked to excel table
'ndx2=roamer.state.getenum("ePublishFlag_EMBED_DATABASE")
''allow nwd output file be saved in other model or naviswork file
'ndx3=roamer.state.getenum("ePublishFlag_ALLOW_RESAVE")

flags=flags or ndx or ndx2 or ndx1 or ndx3
attrib.flags=flags

'write output file
roamer.publishfile arg_out,attrib&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 12:46:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-forum/publish-using-the-batch-utility-simulate-2012/m-p/10126452#M21475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T12:46:19Z</dc:date>
    </item>
  </channel>
</rss>

