Changing the Start Index for an Indexed Set that is Already Being Referenced

If you are editing an existing indexed set which is already referenced by some elements for which data has been defined, and change the Start index, GoldSim will prompt you for how you would like to adjust the values in existing Data elements that reference that set. 

In particular, if the new range does not overlap with the old range, a dialog like this will appear to allow you to specify how the data is to be mapped to the new index values:

If you select Option 1, all data in existing Data elements will be cleared out (set to 0). 

If you select Option 2, existing data will be mapped such that any data associated with the old Start Index will be mapped to the new Start Index, and so on. If the new range is shorter, data at the end of the range will be lost.  If the new range is longer, zeros will be added to the new items.

If the new range does overlap with the old range, a slightly different dialog will be displayed for mapping the data:

If Option 1 is selected, GoldSim will only map entries for items in the old set which match items in the new set. For example, if the original set was 1 through 20, and the new (edited) set was 15 through 34, for any elements that referenced the set, only entries 15 through 20 would be mapped to the new set (as the first five entries), and entries associated with items 1 through 14 in the original set would be lost. The remaining entries associated with the new set (16 through 34) would all be set to zero.

If you select Option 2, existing data will be mapped such that any data associated with the old Start Index will be mapped to the new Start Index, and so on. If the new range is shorter, data at the end of the range will be lost.  If the new range is longer, zeros will be added to the new items.

If you select Option 3, all data in existing Data elements will be cleared out (set to 0). 

Related Topics…