Input manager - Automatch

How to match automatically input grid names with chosen csv file name pattern?

Written By Nikolas Ethoré (Super Administrator)

Updated at June 6th, 2023

Classic behavior

By default, when you import a set of CSV files in the Input Manager, the system will automatically match the CSV with grids that have the same name. You can find the expected Input name by hovering this icon on your input manager:

/InputSettings grid behavior

In order to manage better file matching during import, you have the possibility with /InputSettings grid to match automatically chosen CSV file name patterns with input grid names. First create a unique grid in your project with /InputSettings flag

The grid has to be built with the following headers:

  • The first header should be named GridName
    This column will include all grids flagged with "/Input" in your model

  • The second header should be named FileNamePattern.
    This column contains CSV file names that should be matched automatically with corresponding input grid names. You can also enter the current Model, Instance, or Grid name in your pattern by writing {GridName}, {InstanceName} or {ModelName}.
    It is also possible to define a wildcard to select any set of character {*} or a specified number of characters (3 for example here) {???}

In the Input Manager, when importing CSV files names with the correct pattern, the files should match automatically corresponding input grids at the import.

If one of your file doesn't match with a grid according to the /InputSettings grid, Mind will ask you to match it manually.

Update /InputSettings grid directly within Mind

To do so, open the Model Manager, click on the Specific grids button from the model in which you have the current /InputSettings grid. Click on Inputs match. You will get your current /InputSettings grid displayed:

Buttons upper right allow you to import a new /InputSettings grid as CSV. You can also download your current grid as CSV.