Project Template Creation
You can create a project from a project template by specifying information in an XML configuration file and using the Cobra API.
Required Components
This feature requires the following components:
- A project template with associated template files.
- An XML configuration file that defines the additional changes to be made to the created project.
- An API process definition that initiates the creation of the new project.
Process for Creating a Project Template
When you create a new project from a project template, several steps take place:
The API script initiates the new project creation process.
The XML configuration file is parsed.
Information for the new project is gathered by using information from the XML configuration file and template files.
The new project and supporting files are created.
- Related Topics:
- Required Template Files
A number of template files must exist before you can create a new project from a project template. - XML Configuration File
You can define settings in an XML configuration file to be used when you create a new project from a project template. - API Script to Create a New Project from a Project Template
When you create a new project from a project template, the process section of the API script must refer to the XML configuration file containing relevant settings. - Application Settings
When you create a new project from a project template, you can use a number of global settings. - Additional Project Files
Below are the additional project files that are created when you create a new project from a project template. - XML Configuration File Sample
This is an example that shows the XML elements in a sample XML configuration file without any node values. - Hook Program Methods
This parameter object contains methods that the hook program can use to get access to data used by the project creation process. - XML Configuration Object Interface
Use this table to see property names and their data types for the properties defined in the XML configuration file. - ClassRateFiles Collection
The ClassRateFiles collection property is a collection of ClassRateFile objects. - MsgLogger Object Interface
A custom hook can use the message logger object to add messages to the message log.
Parent Topic: API