Skip to main content

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

NameTypeDescription
projectNamestringProject name (optional). If omitted, a new project will be created with the default project name determined by NextDesign.
descriptionstringProject description (optional). If omitted, a new project will be created with an empty description.
profilePathstringProfile path (optional). If omitted, a new project will be created with an empty profile.

Return value

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionIf the profilePath specifies a profile path in a format not supported by the running Core.Runtime.
File Not FoundFileNotFoundExceptionIf the file specified in profilePath cannot be found.
Not SupportedExtensionNotSupportedExceptionIf the current edition of the application is not compatible.