Application.BoxDataTemplate Method
Project Developer Reference |
Creates, copies, renames, or deletes a Network Diagram data template.
Syntax
expression.BoxDataTemplate(Name, Action, NewName, Overwrite)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Name | Required | String | The name of the template to edit, create, copy or delete. |
Action | Required | Long | The operation to perform on the template. Can be one of the following PjDataTemplate constants: pjDataTemplateCopy, pjDataTemplateDelete, pjDataTemplateNew, or pjDataTemplateRename. |
NewName | Optional | String | Required when specifying a new name for an existing data template (Action is pjDataTemplateNew) or naming a copied data template (Action is pjDataTemplateCopy). If Action is pjDataTemplateRename or pjDataTemplateDelete, NewName is ignored. |
Overwrite | Optional | Boolean | True if an existing template should be replaced with one of the same name. If Action is pjDataTemplateRename or pjDataTemplateDelete, Overwrite is ignored. The default value is False. |
Return Value
Boolean
See Also