Application.NewProjectDocument(String)
Public Class
ArgumentException
InvalidOperationException
New project document
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public virtual Document NewProjectDocument( string templateFileName)
Parameters
templateFileNameString
The template file name.
Return Value
DocumentExceptions
Exception
Condition
ArgumentException
If ‘templateFileName’ is . or an empty string.
InvalidOperationException
If the new project document cannot be created.
Remarks
This command corresponds to New->Project command in the user-interface.