Documentation Center

PslProjects.Add

A new empty project is generated. If the project already exists, an error message will be displayed.

Syntax

Expression.Add (Name as VARIANT, Location as VARIANT) as PslProject

Expression Required. Object of type PslProjects

Name Name of the new project. If Location is not entered, the Name must contain the path of the project file.

Location If Name only contains the project name, Location must contain the path, in which the project will be generated.

Example

Dim prj As PslProject
Set prj = PSL.Projects.Add("Test", "c:\temp")
prj.LogMessage("Project generated by Automation");