Opens a Building Component document from disk.
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- fileName
- Type: System String
The Building Component file to be opened.
Remarks
The opened document is a family document.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | If a null reference ( Nothing in Visual Basic) is passed as 'fileName'. |
| Autodesk.Revit.Exceptions ArgumentException | If 'fileName' is an empty string or it is not an Autodesk Exchange file name. |
| Autodesk.Revit.Exceptions FileArgumentNotFoundException | If the file specified by 'fileName' cannot be found. |
| Autodesk.Revit.Exceptions InvalidOperationException | If the Building Component file cannot be opened. |