Currently there is no easy way to duplicate a time table and preserve its member list. The current process we've used is as follows:
- Create a new group.
- Run custom code that copies the member list from the source Time Table "WorkSched" to the new group "Group4":
string tableName = "WorkSched"; string groupName = "Group4"; treenode members = node(concat("MODEL:/Tools/TimeTables/", tableName, ">variables/members")); for(int index = 1; index <= content(members); index++){ treenode member = ownerobject(tonode(get(rank(members, index)))); groupaddmember(groupName, member); }
- Create a new Time Table.
- Click on Members.
- Click the plus symbol.
- Add the group created above.
- Click on Functions and make sure the settings match.
- Click on Table and make sure the settings match.
- Click OK.
I would like to propose a new process:
- Right-click on the Time Table.
- Select "Duplicate".
- If necessary, rename the new table.
FlexSim would create a duplicate Time Table with a slightly modified name (adding "(2)" or something similar to the end of the name), while preserving the member list and other settings. This concept should also apply to other toolbox elements such as Global Tables, MTBFs/MTTRs, etc. The "Duplicate" function should also be accessible via the Edit menu. Thanks for considering this idea.