XPRafts uses an internal buffer to move or copy information between network objects and other elements within the software. Data may be "copied," in which case the original data remains unchanged, or it may be "cut" - in which case the data is copied into the copy buffer and removed from the source object.

To Copy or Cut data:

  1. Select the objects from which the data will be copied
  2. Click Edit on the main menu, and choose either Cut Data or Copy Data
  3. Alternatively, users can press <Ctrl>+C to copy, or <Ctrl>+X to cut the data

  • At present, "copying" or "cutting" is restricted to either one item of a dialog or to the entire data structure of a node or link. Data can only be pasted into similar objects, i.e. node data cannot be pasted into any object except for the same type of node. This is transparent to the user so you may select a multitude of different types of objects before "pasting" and the data will only be pasted into objects of the same type and mode as the parent.
  • Data within the buffer remains active until the program is ended or another copy command is executed, whereupon the buffer data is overwritten. Data may be copied between databases by closing the current database, opening the new one and then Pasting from the Copy buffer.

Copy Data from a Single Object

To copy all of the data associated with a node or link to one or more other similar items in one operation, first select the node or link to be copied and then select Copy or Cut from the Edit menu. If the copy operation is successful XP then reports how many records have been copied into the buffer. For example:

To paste the copied data select one or more objects (by holding down the <Shift> key and clicking on multiple objects or by dragging a dotted rectangle around the selected objects) and select "Paste" from the Edit. XP will now report to the screen the number of objects data has been pasted into and the number of records pasted. For example:

Copy Multiple Objects

To copy both the graphical attributes plus all the data associated with a node or link, first select one or more objects by either dragging a box around them, or individually selecting objects using the <Shift> key. Copy the objects by selecting Copy from the Edit menu. If the operation is successful XPRafts will report the number of database record and objects copied. 

All types of objects can be copied, including nodes, links, text elements and background pictures. When a link is copied, the end nodes are also copied because a link cannot exist without end nodes so that pasting into an empty selection will properly create the copied link. A single link copied can still be pasted into a multiple selection in the usual way.

To create new objects deselect all objects by clicking in open space then select Paste from the Edit menu. New objects will be created slightly offset from the original location and will be highlighted. It may be necessary to clean up the screen by selecting Redraw from the View Menu. The objects should be renamed before solving the network as each object must have a unique name.

When objects are pasted into a different database than that copied from, global database references are maintained but the actual data for the global database records (the global database definitions) are not pasted. These global databases can be merged from one .XP project to another, or single global database records can be copied from a source database into the copy buffer and then pasted into a target project.

Copy a Single Item

To copy an individual item, open up the desired Dialog Box, select the item by dragging a rectangle with the mouse around the field or button. A rectangle surrounding the item indicates it has been selected. Then select the copy icon  in the upper right hand corner of the dialog box to copy the data to the copy buffer. All text items, radio buttons or checkboxes can be copied in this manner

To paste the copied data select one or more objects by holding down the <Shift> key and clicking on multiple objects or by dragging a dotted rectangle around the selected objects) and select Paste from the Edit Menu, or <CTRL><V> on the keyboard.

When copying a Text item, the text is checked as if it were to be saved to the database before copying. For Radio Button items, only the active item in the group of buttons can be copied. For both Radio Buttons and Checkboxes with underlying data, only the flag itself and not the whole underlying data structure will be copied. Only single data items can be copied, structures including all underlying data cannot be copied as single items. However, when copying all of the data for an object the underlying data is copied to the copy buffer.

Copy a Dialog List (DLIST) Item

To copy a single cell in a dialog list (DLIST) first move the text insertion point to the cell you wish to copy. Select the text or numerical string by double-clicking or depressing the mouse and dragging over the entire string. Right mouse click to get a Window's pop-up dialog and select copy from the list. Alternatively using <Ctrl> <C> will copy the selected string. Next move to the text insertion point to the cell where you wish to insert the data and paste the data from the buffer using the right mouse click pop-up dialog or <Ctrl> <V> and repeat as many times as necessary. Only single cells in DLISTS can be copied, there is no facility to copy an individual column or row.

Copying Global Data

Single records of a global database can be copied using the Copy button. After opening up a new target database the record is pasted by selecting Paste from the Edit menu. When pasting database records, new records are always created in the current database. If record names clash with existing names, unique names based on the original name and a numerical extension will be generated.