Is there a way to convert a queue to a warehouse rack? I need to do this for multiple queues and am looking for a fast an easy way1.28 FGW - r9.fsm
Is there a way to convert a queue to a warehouse rack? I need to do this for multiple queues and am looking for a fast an easy way1.28 FGW - r9.fsm
Hi @Eryn C2, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
You can’t exchange objects. There doesn‘t exists a universal container to hold classes of objects you can replace.
You can
You can do this all by FlexScript. Unfortunately you try to replace a Fixed Resource Class object by a module class object which behaves only optionally like a fixed resource.
Here is an example of how the code might look. The following copies an existing object (so you can set properties that will be shared between the racks beforehand, such as dimension for example). It then sets the location in the model and the tree and copies the send to port logic and connections to the new object.
Object queue = Model.find("QueueName"); Object storage = Model.find("RackName"); // Create copy Object copy = createcopy(storage, queue.up); // Copy location, tree rank and sendtoport copy.location = queue.location; copy.rank = queue.rank + 1; copy.setVariable("sendtoport", queue.getVariable("sendtoport")); // Copy connections for(int in = 1; in <= queue.inObjects.length; in++) { contextdragconnection(queue.inObjects[in], copy, "A"); } for(int center = 1; center <= queue.centerObjects.length; center++) { contextdragconnection(queue.centerObjects[center], copy, "S"); } for(int out = 1; out <= queue.outObjects.length; out++) { contextdragconnection(copy, queue.outObjects[out], "A"); }
You would be better to transfer the connection nodes which will then preserve any port ranks on the other objects.
/**transferConnections() user command*/ // useage: transferConnections(fromobj, toobj) Object from=param(1); Object target=param(2); while (connectionscenter(from).subnodes.length) transfernode(connectionscenter(from).first,connectionscenter(target)); while (connectionsin(from).subnodes.length) transfernode(connectionsin(from).first,connectionsin(target)); while (connectionsout(from).subnodes.length) transfernode(connectionsout(from).first,connectionsout(target));
16 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