Idea

Jon Abbott avatar image
7 Likes"
Jon Abbott suggested Jon Abbott commented

Make it easier to duplicate Time Tables, Global Tables, MTBF/MTTRs, User Commands, etc.

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:

  1. Create a new group.
  2. Run custom code that copies the member list from the source Time Table "WorkSched" to the new group "Group4":
    1. string tableName = "WorkSched";
    2. string groupName = "Group4";
    3. treenode members = node(concat("MODEL:/Tools/TimeTables/", tableName, ">variables/members"));
    4. for(int index = 1; index <= content(members); index++){
    5. treenode member = ownerobject(tonode(get(rank(members, index))));
    6. groupaddmember(groupName, member);
    7. }
  3. Create a new Time Table.
  4. Click on Members.
  5. Click the plus symbol.
  6. Add the group created above.
  7. Click on Functions and make sure the settings match.
  8. Click on Table and make sure the settings match.
  9. Click OK.

I would like to propose a new process:

  1. Right-click on the Time Table.
  2. Select "Duplicate".
  3. 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.

global tablemtbf mttrtime tableuser commandsduplicate
· 10
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

Jon Abbott avatar image
0 Likes"
Jon Abbott commented

@Matthew Gillespie, I noticed that this idea was marked as completed but I did not see the functionality in 17.0.3. I tried right-clicking on toolbox items to look for a "Duplicate" function, and also manually duplicated an MTBF in the tree but its members were not preserved. I saw in the release notes that user libraries were updated to preserve members and contents. Is the duplicate functionality accessible via some other means, or is it slated for a future version? Thanks in advance for your help.

· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.