|
![]() |
Try to save contents of document to a file using a specific file version.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Function TrySaveFile ( _ fileName As String, _ fileVersion As DocumentFileVersion _ ) As Boolean |
C# |
---|
public bool TrySaveFile( string fileName, DocumentFileVersion fileVersion ) |
Visual C++ |
---|
public: bool TrySaveFile( String^ fileName, DocumentFileVersion fileVersion ) |
Parameters
- fileName
- Type: System..::..String
Path to try and save file to
- fileVersion
- Type: Autodesk.Navisworks.Api..::..DocumentFileVersion
Return Value
false if save fails
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | Document IsClear |
System..::..ArgumentException | fileName does not have .nwd or .nwf extension |