Database Management Reference Manual

Database Modification : Modify the Content of a DB : Copy Attributes from One Element to Another
1.
When an element is 'cloned' in this way, all attributes are copied from the source element to the target element except NAME (which must be unique) and LOCK (which is always unlocked in the target element). Additionally, and this is what makes the facility so powerful, all offspring of the source element are copied as offspring of the target element.
Note:
If the Current Element already has members, it is not possible to make it a copy of another element in this way.
You may specify automatic renaming of the Current Element and its offspring as part of the copying process. Without this the new elements will be unnamed, since AVEVA E3Dâ„¢ does not permit two elements in the same DB hierarchy to have identical names. You may also choose to copy only the members (and their offspring) of the source element, leaving the attributes of the Current Element itself unchanged.
To copy a complete element and all of its offspring, after creating a new Current Element of an appropriate type, enter
COPY element_id
where element_id identifies the source element to be copied.
To copy all offspring of an element, so that they create duplicate offspring for the Current Element, enter
COPY MEMbers OF element_id
To copy selected offspring of an element, so that they create duplicate offspring for the Current Element, enter
COPY MEMbers integer TO integer OF element_id
creates a new Branch named /SIDEARM whose components replicate that part of the existing Branch /MAINLINE between the specified list positions. The attributes of the Branch /SIDEARM itself are unaffected by the COPY command, so that its position, orientation, etc. (as defined by its Head and Tail settings) remain unchanged by the addition of its new members.
To copy attributes from an identified element into the current element, type
COPY LIKE element_id
To copy elements alongside their original positions, type
This option causes a list of elements, defined by the selection criterion select, to be copied alongside their original positions in the database. So if the list includes a SCTN and a PNOD (for example) then each of these items would be copied so that the new SCTN shares the same owner as the old SCTN and the new PNOD shares the same owner as the old PNOD. As this option copies elements, rather than just attributes, other COPY options, such as RENAME, are valid.
... REName old_name new_name

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo