If I have a simple model that contains a Source1 (Rank 3), Queue1 (Rank 4), Processor1 (Rank 5) and a Sink1 (Rank 6), how can I change the rank of the objects in my model using an excel spreadsheet?
For example, using an excel spreadsheet that contains 2 columns (1 for the Name of objects, 1 for the Rank of objects) and 5 rows (1 for the heading, 4 for the number of objects in the model). Using the User Commands custom code option, what code can I create so that I can import an excel spreadsheet to change the rank of the objects?
Original ranks ----> New ranks
Source1 3 ---> 6
Queue1 4 ---> 5
Processor1 5 ---> 4
Sink1 6 ---> 3