Jump to content
Simio Forum

Welcome to the Simio Forum

Welcome to the Simio Forum! Experience the full experience of the forum by becoming a Simio Insider! You must be an Insider to post on any forum!

Click_Here_button.png

Sign in to follow this  
dpaz

[SOLVED] Searching through a Node List

Recommended Posts

Hi. I'm having a tiny problem, I would say, but I can't figure it out.

I'm searching through a Node List for a Node, the Search Step finds it, and now I need to Move a Vehicle to that Node. I thought this would be easy: just add a Seize Step (with a Request Move) to the Found exit of the Search Step. The problem is that I cannot find a simple way to refference the Node in the Request Move's 'Destination Node'. I find this frustrating since the token leaving the Found exit is associated with the Node... If I leave 'Destination Node' empty, it shows me this error: Error initiating resource move request on behalf of owner 'P11' [P11 is the name of the found Node]. The node destination location was defaulted to the current location of object 'P11', but that object is not a node.

Thanks very much in advance.

Edited by Guest

Share this post


Link to post
Share on other sites
Guest DanSpice

Hi,


The keyword Object returns a reference to the Associated Object of a Token. So in the Seize Step, you will want to set the Node Name to 'Object.Node' - where Object means the Associated Object (the Node) and .Node casts it as a Node (because that property is a Node Property and will only accept Node Values).


I made a very simple example model illustrating this. After 2 minutes a Timer will fire, a process will then Search a Node List, and then the node will Seize the Vehicle to it.


Thanks

MoveToNodeWithNodeRef.spfx

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...