Good afternoon,
Im rather new to vbscripting with Navisworks but have found code online to Append files to navisworks model via script. Im pretty sure I understand most of what this script is doing but im stuck at the end where performing a Saveas. See below for the current working syntax:
' save to the nwd
roamer.saveas "C:\Temp\Navisworks\Test.nwd"
What would be the syntax for saving the current model to a lower version of Navisworks (from a 2013 model to a 2011 .nwd)
' save to the nwd
roamer.saveas "C:\Temp\Navisworks\Test.nwd", Navisworks2011
Is this possible through VB script?
Hi,
Sorry, unfortunately, COM API (VBS uses) does not support saving file to previous version. But .NET API can do. .NET API provides "Automation" as well. api\net\API\documentation\NET API.chm has Developer Guide which could be start to you.
note, the NavisworksApplication.Savefile method of Automation does not provide version argument. Instead, Document.SaveFile has version argument. That means you have to create a .NET plugin firstly to do saveas, then create an automation EXE to start Navisworks application, calling the plugin.