IProjectService.NewProject Method
Namespace: NextDesign.Core.Runtime
Description
Creates a new project.
Regardless of whether you save the project created with this method, close it with CloseProject(IProject) when it is no longer needed.
Failing to close the project will result in a memory leak.
Argument
Name | Type | Description |
---|---|---|
projectName | string | Project name (optional). If omitted, a new project will be created with the default project name determined by NextDesign. |
description | string | Project description (optional). If omitted, a new project will be created with an empty description. |
profilePath | string | Profile path (optional). If omitted, a new project will be created with an empty profile. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid Argument | ExtensionArgumentException | If the profilePath specifies a profile path in a format not supported by the running Core.Runtime. |
File Not Found | FileNotFoundException | If the file specified in profilePath cannot be found. |
Not Supported | ExtensionNotSupportedException | If the current edition of the application is not compatible. |