The copyentity
command lets you copy any entity stored in a repository.
This includes entities that are created in the Control Center, as well as entities
created using the command line interface (mtb_admin). A new entity is created to hold
the copy.
The command requires that you know the identifier of the entity you want to copy. Trillium gives each entity a unique identification number when it is created. This identifier is a number and displays in parenthesis in the Navigation View entity lists.
Syntax
copyentity {<entity_id1> <entity_id2 . . .<entity_idn>}
where <entity_id1><entity_id2. . .<entity_idn> are the numbers that identify the entities you want to copy.
Optional Parameters
Parameter |
Description |
---|---|
-workgroup <1|0> |
Type |
-joins <open|closed|empty> |
Type |
Example
This command copies the entity identified as "23" and ensures that the entity copy is not placed in the project that contains the source entity. It also ensures that joins are not copied.
copyentity 23 -workgroup 0 -joins empty