Is it possible to copy the processes from one multiprocessor to other multiprocessors?
Is it possible to copy the processes from one multiprocessor to other multiprocessors?
The MultiProcessor keeps information about its processes in both its "optable" variable and its custom state profile.
You need to copy both of those.
You can copy the "optable" variable using Edit Selected Objects, but there isn't currently a nice way to copy the custom state profile using a button. You will need to copy it using the tree view or using a script. This is the node you need to copy:
MODEL:/MultiProcessor1>stats/state_profiles/MultiProcessor States
Following up on this answer. I have many multiprocessors in a model I'm building and would like to implement a script-based approach to copying over the custom state profiles from one key multiprocessor to the others. I know down the line I will have to make changes to the key multiprocessor and want to save future modelers the manual task of repeatedly copy and pasting from the tree view. Is the script to accomplish this able to be shared?
You can use the createcopy() command:
// copy processes from one highlighted multiprocessor to red selected others treenode view = activedocumentnode(); treenode highlightedObject = selectedobject(view); if (isclasstype(highlightedObject, "MultiProcessor")) { forobjecttreeunder(model()) { treenode obj = a; if (switch_selected(obj, -1) && isclasstype(obj, "MultiProcessor")) { createcopy(getvarnode(highlightedObject, "optable"), getvarnode(obj, "optable"), 1, 0, 0, 1); createcopy(state_profiles(highlightedObject).first, state_profiles(obj).first, 1, 0, 0, 1); } } } else { msg("Error", "The highlighted object is not a MultiProcessor."); }
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved