Description: Copies an object definition through the structure XML mechanism, optionally assigning a parent and overriding the target data and reason table names.
Calling convention: CIP_CopyObject("SourceObjectName": String, "TargetObjectName": String, "ParentObjectName": String, ["DATA_TABLE_NAME": String], ["REASON_TABLE_NAME: String"])
Parameters:
SourceObjectName: existing object to copy.
TargetObjectName: new, currently unused object name.
ParentObjectName: existing parent object name, or an empty String for no parent.
DATA_TABLE_NAME: optional target data-table name.
REASON_TABLE_NAME: optional target reason-table name.
Returns: Undefined. Invalid arguments, missing source or parent objects, or an existing target object raise an exception.
Availability: Default with structure-copy support; modifies object definitions and database table structures.
Example:
CIP_CopyObject("LineTemplate", "Line04", "Plant", "DATA_LINE04", "REASON_LINE04");