Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Navisworks Vbscript to perform Saveas of nwf to nwd version 2011 from 2013

1 REPLY 1
Reply
Message 1 of 2
p.porter74
935 Views, 1 Reply

Navisworks Vbscript to perform Saveas of nwf to nwd version 2011 from 2013

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?

Tags (1)
1 REPLY 1
Message 2 of 2
xiaodong_liang
in reply to: p.porter74

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report