Repository.Pool.AddPool

Saves a new cPool object to the current project. Returns a Boolean value; when true, indicates indicates a successful save.

If a pool with the same name already exists in the current project, the application will automatically increment the name. For example, if "Pool1" already exists, the new pool might be renamed to "Pool2," "Pool3," etc.

Syntax
.Pool.AddPool(pool)

Parameters
pool
 * The cPool object to be added. (Required)

Example
This example creates a new spare part pool resource, and then saves it in the first available project in a Synthesis repository. VBA MyRepository Repository NewSpares cPool NewSpares.Name = MyRepository.Project.SetCurrentProject(1) MyRepository.Pool.AddPool(NewSpares)

VB.NET MyRepository Repository NewSpares cPool MyRepository.Project.SetCurrentProject(1) MyRepository.Pool.AddPool(NewSpares)