BuildingCoder.CmdNewProjectDoc.Execute C# (CSharp) Method

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result
        public Result Execute(
            ExternalCommandData commandData,
            ref string message,
            ElementSet elements)
        {
            Application app = commandData.Application.Application;

              Document doc = app.NewProjectDocument(
            _template_file_path );

              doc.SaveAs( "C:/tmp/new_project.rvt" );

              return Result.Succeeded;
        }
CmdNewProjectDoc