Application.NewProjectDocument(String) Method
New project document
Namespace:
Autodesk.Revit.ApplicationServices
Assembly:
RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public virtual Document NewProjectDocument( string templateFileName )
Parameters
templateFileName
String
The template file name.
Return Value
Document
Exceptions
Exception
Condition
ArgumentException
If 'templateFileName' is
null
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.
See Also
Reference
Application Class
NewProjectDocument Overload
Autodesk.Revit.ApplicationServices Namespace