OpenOptions Class

This class contains options available for opening a document from disk.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBOpenOptions

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class OpenOptions : IDisposable

The OpenOptions type exposes the following members.

Constructors
 NameDescription
Public methodOpenOptions Constructs a new instance of the options class using default values.
Top
Properties
 NameDescription
Public propertyAllowOpeningLocalByWrongUser Specifies whether a local file is allowed to be opened as read-only by a user other than its owner.
Public propertyAudit Specifies whether to expand all elements in order to check for corruption.
Public propertyDetachFromCentralOption An option that specifies whether or not a workset-enabled document is detached from its central document.
Public propertyIgnoreExtensibleStorageSchemaConflict Specifies whether to ignore the error of schema conflict.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyOpenForeignOption An option that specifies how to open files saved by an application that was not developed or licensed by Autodesk.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the OpenOptions
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOpenWorksetsConfiguration Gets the object used to configure the worksets to open when the model is opened.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodCode exampleSetOpenWorksetsConfiguration Sets the object used to configure the worksets to open when the model is opened.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also