Opens an IFC document from disk using default options.
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- fileName
- Type: SystemString
The IFC file to be opened.
Return Value
The newly created document containing the IFC file.Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentException | If 'fileName' is an empty string. |
| Autodesk.Revit.ExceptionsArgumentNullException | If a null reference (Nothing in Visual Basic) is passed as 'fileName' -or- A non-optional argument was null |
| Autodesk.Revit.ExceptionsFileArgumentNotFoundException | If the file specified by 'fileName' cannot be found. |
| Autodesk.Revit.ExceptionsInvalidOperationException | If Revit is missing document templates or if the file cannot be opened. |