Skip to main content

Create a new project

To create a new project, use the NewProject method of the IWorkspace object.

public void NewProject(ICommandContext c, ICommandParams p) 
{
//Create a new project
c.App.Workspace.NewProject("MyProject", "Project description");
}

You can also specify a profile file.

public void NewProject(ICommandContext c, ICommandParams p) 
{
//Profile path
var profilePath = @"c:\data\myprofile.nprof";

//Create a new project
c.App.Workspace.NewProject("MyProject", "Project description", profilePath);
}