Is there a quick way in code to duplicate the existing 3d object and its settings?
I have a default multiprocessor defined that I like to duplicate and relocate during model reset.
Is there a quick way in code to duplicate the existing 3d object and its settings?
I have a default multiprocessor defined that I like to duplicate and relocate during model reset.
You can use the createcopy() command. For example:
Object defaultMultiProcessor = Model.find("MultiProcessor1"); Object newObject = createcopy(defaultMultiProcessor, model()); newObject.location = Vec3(5, 5, 0);
Thanks for the reply. Does that copy the object and all of its settings?
That works with fixed resources and simple flow items, but any object that inherits coupling nodes get problems with a simple copy command. Module objects like AGV paths, conveyors, some taskexecuters and people module aren’t made for this easy method.
Do you mean the links between objects or other assignments are not copied?
14 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