Skip to content

OpenOptions

Public Class

This class contains options available for opening a document from disk.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.OpenOptions

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

Name

Description


Public Method
OpenOptions

Constructs a new instance of the options class using default values.


Properties

Name

Description


Public Property
AllowOpeningLocalByWrongUser

Specifies whether a local file is allowed to be opened as read-only by a user other than its owner.


Public Property
Audit

Specifies whether to expand all elements in order to check for corruption.


Public Property

An option that specifies whether or not a workset-enabled document is detached from its central document.


Public Property
IgnoreExtensibleStorageSchemaConflict

Specifies whether to ignore the error of schema conflict.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

An option that specifies how to open files saved by an application that was not developed or licensed by Autodesk.


Methods

Name

Description


Public Method

Releases all resources used by the OpenOptions


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

Gets the object used to configure the worksets to open when the model is opened.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method
Code Example
SetOpenWorksetsConfiguration

Sets the object used to configure the worksets to open when the model is opened.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)