Getting error at "Create Object". And i don't know what else to do. I have tried everything. I have attached the model with it. Can someone help me understand why this error is being caused?
Getting error at "Create Object". And i don't know what else to do. I have tried everything. I have attached the model with it. Can someone help me understand why this error is being caused?
This has diverged from the initial concept a bit. Let me review the previous models and see how to get back on track.
Yeah i took your previously posted models (cycle time database AND Part Maps) and combined them together from my understanding of what you did in yours. Some variables are different in mine. Appreciate any help Jason.
It looks like two example models have been combined 'incorrectly'.
In one of the models we had this station process to set up some maps for the stations:
An in another we had a map for the locations of parts on the station that we were using when a chassis arrived:
The way to combine these model is not to change the source type :
but to instead either have seperate initialization and part creation process flows, both of which the station would be a member - or put them in the same process flow.:
In your latest upload the expression for the part to create is incorrect. It was
Model.find("Tools/FlowItemBin/"+current.partMap[creationRank]+"/1")
but we've now got model based part list so we need to find the array if parts using
current.partMap.as(Map)[token.item.modelID]
But it looks like you didn't have a label for modelID on the chassis - I've added that.
There were many things that needed fixing - too many to list here. The main issues were:
Revised model attached.
I changed the source type because I did not have the Source in 3D model like you did to introduce the chassis. Attached is the model you first made. I changed my initial model that did not have Source in 3D model to the one that looks like right now.
Understood - but hang on I'll keep updating the post as I progress.
Finished updating the post - let us know if you have questions.
Follow-up questions: Q1. How do i print the "Model.find("Tools/FlowItemBin/"+token.parts[creationRank]+"/1")" to see its value? I am trying to understand what creationRank means.
Q2. What does the "/1" at the end mean?
Q3. I see the objects in 3-D model but cannot see any tokens in Process Flow. But when i remove "+/1" (from the previous question) I can now see the tokens but cannot see anything being added to the 3-D model (see pictures below).
When i added +"/1" back to the place, the tokens are gone from process flow and now i get an error saying that it could not find "M1_Floor_A1". Which is why i removed the extra "1" at the end in my previous model to make it work but did not go anywhere with it.
champion-homes-v1-1-060723a-jl_autosave.fsm
You can print the string within the find() method - just use the whole string expression.
The /1 just means the first subnode under the path to the left of the /. It's useful because you don't need the name which in our case would be concatenating the partID twice.
The tokens get created and destroyed during the events - there's no need for them to persist - but you can disconnect the sink or place breakpoints in the expressions if you want to inspect the labels. Just keep in mind that when stopping at an event you want a breathe or delay of 0 seconds after the token's activity in order to step and see the token move through the process.
I'm not sure about you adding "/1" anywhere in the model - I uploaded it working. Do you mean when trying to set up the part locations for a different model?
Hi Jason, how did you get "token.addedParts"? I searched everywhere i could but could not find the label "addedParts" anywhere. Is this a custom label you created or is it something that is in-built in Flexsim?
That's the only place it's defined - it just creates an array of added parts if you needed references to them after the RunSubflow for each station's additions.
Thanks Jason! That makes sense. Whenever the parts get created almost all move but one object (M1_Sidewall_A) that is just created and won't move anywhere. I don't know what changed in your model but could you show me how can i use "so" to orient the objects created on the Chassis flow item?Jason'schampion-homes-v1-1-060723a-jl_autosave.fsm
Correct me if I'm wrong @Jason Lightfoot but I think that line is just creating a new label on the token and automatically adding it to an array that will keep track of added parts
This is a quote from the documentation for the Insert at Front checkbox:
"Insert at Front
If the Insert at Front box is checked, any data stored on the label or node that was passed into the Assign To box will remain and the new value(s) will be added to the front. This will cause the data to become an array with the most recent value as the first entry in the array."
Edit: Oops Jason just barely beat me to this post haha! Hopefully this can just be extra info now :)
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