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 Importing and Exporting Data.

To Export Data with Copy and Paste

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

  1. Set up a table in your model that contains the variables that you want to export, formatted the way you want.
  2. Run the model.
  3. Right-click on the table and select Copy Data in the menu that appears.

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

To Import Data with Copy and Paste

Use the following procedure to Copy and Paste your data into the model.

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

  2. Open the model that you want to paste the copied data into.
  3. Select all pre-existing data in the model that you want to replace with the copied data.
  4. Paste the data by choosing Paste from the Edit menu, or by pressing Ctrl+V (Windows) or ⌘+V (Macintosh).

    Note: The Copy and Paste commands on the Edit menu aren't available when a dialog box is open.

Notes on Formatting Data for Copy and Paste

You can paste numeric data into any model variable, but you have to 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.

Tip: You can use Shift-click, Ctrl-click (Windows), and ⌘-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 Creating a Graphical Function.

Stocks, Flows, and Converters

Arrays

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

Note: For information about working with arrayed variables in general, see Working with Arrays.

Concept Link IconSee Also