Revit 2025.3 API
ApplicationNew |
New project template document
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public virtual Document NewProjectTemplateDocument( string templateFilename )
Public Overridable Function NewProjectTemplateDocument ( templateFilename As String ) As Document
public: virtual Document^ NewProjectTemplateDocument( String^ templateFilename )
abstract NewProjectTemplateDocument : templateFilename : string -> Document override NewProjectTemplateDocument : templateFilename : string -> Document
Parameters
- templateFilename String
- The template file name.
Return Value
Document| Exception | Condition |
|---|---|
| ArgumentException | If 'templateFileName' is or an empty string. |
| InvalidOperationException | If the project template document cannot be created. |
This command corresponds to New->Project->Project Template command in the user-interface.
See Also