Skip to main content

IWorkspace.NewProject method

Namespace: NextDesign.Desktop

Description

Generate a new project.

argument

NameTypeDescription
projectNamestringproject name

You cannot specify null or an empty string.
descriptionstringDescription

You can specify any string, including null.
profilePathstringProfile path

If null is specified, a project with an empty profile will be generated.
isSetCurrentboolIf you set the generated project as the current project or
False is specified, the generated project will not be set as the current project.
The default value is True.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for projectName
Invalid pathExtensionInvalidPathExceptionIf the specified path cannot be interpreted as a valid path string when profilePath is not null
Invalid file specificationExtensionInvalidFileExceptionWhen profilePath is not null and the file extension of the corresponding path is not a profile
When a profile path of a save format that is not supported by NextDesign being executed is specified in profilePath
File not foundExtensionFileFoundExceptionIf profilePath is not null and the file in the path is not found