Returns the object corresponding to the project identified by the specified name.

syntaxSyntax:
DlxJob.GetProject(name, bCreate = false)

Parameters

Parameter Description
name The project name. If the project name is not specified, the first project of the job is returned.
bCreate If there is no project with the specified name and this parameter is true then a new project is created.

Return Value

Returns the object corresponding to the project. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
if (!DlxApp.GetJob().GetProject("Prj1").IsValid())
{
  throw new Error("Project not found.");
}

See also