| Revit 2017 API |
| Application..::..NewProjectTemplateDocument Method |
| Application Class See Also |
New project template document
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.484.0)
Syntax
| C# |
|---|
public virtual Document NewProjectTemplateDocument( string templateFilename ) |
| Visual Basic |
|---|
Public Overridable Function NewProjectTemplateDocument ( _ templateFilename As String _ ) As Document |
| Visual C++ |
|---|
public: virtual Document^ NewProjectTemplateDocument( String^ templateFilename ) |
Parameters
- templateFilename
- Type: System..::..String
The template file name.
Remarks
This command corresponds to New->Project->Project Template command in the user-interface.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | If 'templateFileName' is nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string. |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | If the project template document cannot be created. |