OpenForeignOption Enumeration


Options for opening files saved by an application that was not developed or licensed by Autodesk.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2019.2

Syntax

C#
public enum OpenForeignOption
Visual Basic
Public Enumeration OpenForeignOption
Visual C++
public enum class OpenForeignOption

Members

Member name Description
Open Do not show any prompt to the user if a foreign file is detected. Proceed to open.
DoNotOpen Do not show any prompt to the user if a foreign file is detected. Cancel this operation (do not open the file).
Prompt If possible, show a prompt to the user if a foreign file is detected. The operation may proceed or cancel based on the response.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →