New project document
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
- templateFileName
- Type: SystemString
The template file name.
Remarks
This command corresponds to New->Project command in the user-interface.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentException | If 'templateFileName' is a null reference (Nothing in Visual Basic) or an empty string. |
| Autodesk.Revit.ExceptionsInvalidOperationException | If the new project document cannot be created. |