Importing and exporting data with copy and paste

Using the Copy and Paste commands is the simplest way to move data into and out of your models.

Note: The following procedures are most practical when the exchange of data is a one-time event. For more information about import and export methods, see, Overview: Importing and exporting data.

To export data with copy and paste

Use the following procedure to export data from your model by using Copy and Paste commands.

  1. Set up a table in your model that contains the entities that you want to export, formatted as you want.
  2. Run the model.
  3. Click the column headers in the table to select the data to be exported.

  4. From the Edit menu, choose Copy.

    The selected data is copied to the clipboard.

    Tip: To copy the entity name along with its values, hold down the ALT key (Windows) or Option key (Macintosh) when you choose the Copy command.

  5. Open the document into which you want to paste the data.
  6. Use the document application's Paste command to paste the copied data.

To import data with copy and paste

Use the following procedure to import data into your model by using the Copy and Paste commands.

  1. Copy the data that you want to import from another application by following the application's directions.

    The data is automatically stored on the clipboard included in your system.

  2. Open the model into which you want to paste the copied data.
  3. Select all pre-existing data in the model that is to be replaced by the copied data.
  4. Paste the data by choosing Paste from the Edit menu, or by pressing CTRL+V (Windows) or Command-V (Macintosh).

    Note: The Copy and Paste commands on the Edit menu are not available when a dialog box is open.

Notes on formatting data for copy and paste

You can paste numeric data into any model entity, but you must ensure that the number of data points is appropriate to the location.

Graphical functions

You can paste X-axis and Y-axis values for a graphical function by using the Points tab of the Graphical Function panel.

Tips: You can use SHIFT+click, CTRL+click (Windows), and Command+click (Mac) to select multiple rows. To select an entire column in the table, click the column header.

For more information about graphical functions, see Defining graphical functions.

Stocks, flows, and converters

Arrays

The process for pasting copied values into an arrayed entity is essentially the same as for non-arrayed entities. There are several exceptions to note.

Note: For information about working with arrayed entities in general, see Overview: Arrays.

Concept Link IconSee Also