Managing Duplicated Variables when Inserting Smart Objects
When inserting a Smart Object into a model, the Smart Object and the model might contain variables with the same names. think3's behavior in such situations is controlled by the Keep variable name by inserting smart objects check box in the Construction category of the System Options dialog box.
- If the Keep variable name by inserting smart objects check box is selected all Smart Object variables associated with exposed parameters are automatically imported into the Spreadsheet with their own names. In the case of a variable with the same name already existing in the model, one more occurency will be added to the Used field in the Spreadsheet. While inserting a Smart Object, each mini-dialog box corresponding to a variable:
- is not editable, if the variable already exists in the Spreadsheet
- is editable, if the variable does not exist in the Spreadsheet
- If the Keep variable name by inserting smart objects check box is not selected, all variables associated with exposed parameters are automatically imported and renamed as described below and any mini-dialog box is editable.
A prefix is automatically added to the Smart Object variables, so that they're not confused with the ones of the model. The prefix consists of:
- the letter "N"
- a sequence number
- the "_" character.
For example, if the original variable was "A", the duplicated one might be "N1_A". If you insert the same Smart Object again, you'll get the variable "N2_A", and so on.