ApplicationOpenDocumentFile(String) Method |
Opens a document from disk.
Namespace: Autodesk.Revit.ApplicationServicesAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic Document OpenDocumentFile(
string fileName
)
Public Function OpenDocumentFile (
fileName As String
) As Document
public:
Document^ OpenDocumentFile(
String^ fileName
)
member OpenDocumentFile :
fileName : string -> Document
Parameters
- fileName String
-
The file to be opened.
Return Value
Document
The opened document.
Exceptions
Remarks
This method opens the document into memory but does not make it visible to the user in any way.
See Also