Hello, I have an external database, and I would change flow item also get some information from database. There problem in find flow item. I have printed out the "/Product1", next step is to assign token.producttake by using "model().find()".
Hello, I have an external database, and I would change flow item also get some information from database. There problem in find flow item. I have printed out the "/Product1", next step is to assign token.producttake by using "model().find()".
You don’t need the slash. The product need a unique name to find it successfully.
Alternatively you can store an item by its number inside FlexSim.
Command is tonum( a thing). A thing can be a node. Later you can convert this number back to a node by command tonode( from thing number).
@Joerg Vogel Thank you for the response. I have tried not putting a slash, but still return no path. I found "?" could return the node reference. "token.producttake" could be assigned.
@shanice.c , any search by method find will only work successfully, if you have a unique name for each item or object your are looking for! Typically products have equal names like “Product”. Such a Name won’t work, because it isn’t unique. I think you should go with Jason’s suggestion.
@Joerg Vogel Thank you for your reminds, I might encounter these problems soon.
I could understand 2 things you said. My organization is trying to control Flexsim object by only give agv information it needs(such as fromstation, tostation, whatproduct), and is not going to use process flow to handle any logic in flexsim.
We try to write our logic using external codes, and put information into database. Objects in flexsim are not doing any logic, only query a table recording tasks to check if any tasks to do. If no, just stay there.
It's better to push items to a list and then pull from that list using a WHERE clause or by partition than using find each time. That way you get a direct pointer (or array of pointers) to the item(s).
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