How to copy a package or view
The Explorer has Cut, Copy and Paste, as Windows File Explorer does. Copy and Paste makes copies; Cut and Paste moves rows. They replace Clone Package and Clone Diagram / Catalog / Board / Chart: to clone something, copy it and paste it beside the original.
Copy and paste
Section titled “Copy and paste”- Select one or more rows in the Explorer.
- Press Ctrl+C (Cmd+C on a Mac), or right-click and choose Copy. Nothing changes yet.
- Select where the copies should go, and press Ctrl+V, or right-click and choose Paste.
The menu item says where the copies will go:
- Paste into People: with a package selected, the copies go inside it, at the end if it’s arranged, otherwise in A to Z order.
- Paste after Billy Williams: with an element, relationship or view selected, the copies go into the same package, right after it.
- Paste at the top level: right-click empty space, or select a top-level model or metamodel when what you copied is a whole model or metamodel. This is how you copy a whole model or metamodel.
Each copy is named “Name (copy)”, or “Name (copy 2)”, “(copy 3)”… when that name is taken. The copies become the selection. Pasting again makes another set.
A large package copies in batches, with a progress notice. A copy appears whole or not at all: if something goes wrong, the part made so far is removed.
Undo in the notice after pasting deletes the copies again, for about 8 seconds; Ctrl+Z in the Explorer does the same later. See Undo a change.
What’s copied
Section titled “What’s copied”- A package with everything in it: subpackages, elements, relationships, property values, notes, attachments, and its diagrams, catalogs, boards and charts. Its views show the copies, and a view link to a view inside the package points to that view’s copy.
- An element with its child elements, property values, notes and attachments.
- A relationship is copied when both of its ends are copied too, and joins their copies. One to an element that isn’t copied stays behind. A relationship you copy on its own, without its ends, isn’t pasted, and the notice says so.
- A diagram, catalog, board or chart shows the same model elements as the original: copying a view never copies the model. Its settings, formatting and view links come along, and its scope is kept. If a diagram has unsaved changes, they are saved first, so the copy is what you see.
Copies are independent: changing a copy doesn’t change the original. References to metamodel types are shared, not copied.
Metamodels
Section titled “Metamodels”Only admins copy, cut and paste in metamodels. Each kind of row goes only to its own place in its own metamodel:
- A whole metamodel: paste at the top level. The copy’s own references (superclasses, relationship rules, enumeration-typed properties, subordinate types) point into the copy, and no model imports it until you add the import.
- An element type, with its property types and appearance: into a layer of Element Types.
- A layer: into Element Types. A relationship type, with its rules: into Relationship Types. An enumeration: into Enumerations.
- Property types come with their type; they aren’t copied on their own.
Models and metamodels don’t mix: a model’s rows can’t be pasted into a metamodel, or the other way round. Nothing is pasted into MOF Core.
Cut and paste to move
Section titled “Cut and paste to move”Ctrl+X (or Cut) marks the rows to move; they fade, and nothing changes until you paste. Ctrl+V moves them to where Paste points, in one step, as dragging them there would. After that the cut is finished; Esc, or another cut or copy, cancels it. Undo in the notice, or Ctrl+Z in the Explorer, puts them back where they were.
Cut works only on rows your role can change. A row deleted by someone else before you paste is left out.
When some rows can’t go there
Section titled “When some rows can’t go there”The rest are still pasted, and the notice names the ones that weren’t and why. Paste is dimmed when the clipboard is empty, or when nothing on it could go to the selected place.
Good to know
Section titled “Good to know”- The clipboard is Farkitect’s own, within the open project. Switching project clears it. To bring a package into another project, use Export Package and Import.
- Ctrl+X, Ctrl+C and Ctrl+V act on the Explorer’s rows when the Explorer has the focus. While you’re renaming a row, or typing anywhere else, they work on the text as usual. So does the Edit menu.
- Owned (nested) elements always live in their owner’s package. An element that owns more than 2,000 nested elements can’t be moved on its own; move its package instead.