SaveAsOptions
This class contains options available for saving a document to disk with a new filename.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.SaveAsOptions
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class SaveAsOptions : IDisposable
The SaveAsOptions type exposes the following members.
Constructors
Name
Description
Public Method
SaveAsOptions
Default constructor.
Properties
Name
Description
Public Property
Compact
Default is false: let the OS eliminate as much or as little dead data as it wants to. True: force the OS to eliminate all dead data from the file on disk.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MaximumBackups
The maximum number of backups to keep on disk.
Public Property
OverwriteExistingFile
Identifies if the operation should be able to overwrite an existing file.
Public Property
PreviewViewId
The view id that will be used to generate the preview; this id is not saved to the document’s permanent settings.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the SaveAsOptions
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
GetWorksharingOptions
Gets Worksharing options for SaveAs.
Public Method
SetWorksharingOptions
Sets Worksharing options for SaveAs.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)