New project document
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public virtual Document NewProjectDocument( string templateFileName )
Parameters
- templateFileName String
- The template file name.
Return Value
DocumentExceptions
Exception | Condition |
---|---|
ArgumentException | If 'templateFileName' is nullptr or an empty string. |
InvalidOperationException | If the new project document cannot be created. |