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

New Software Release

Our latest release, Simio 11, is here!

sutthi

Access a property of a next entity on a link

Recommended Posts

I want to access a property of a next entity on a link.


For example, in Simbit "Checking Next Entity Ahead On Link", I want a speed of the next entity behind the current entity on a link. I refer to the behind entity and try to access other properties e.g. "NextEntityBehindOnLink.DesiredSpeed". However, it does not work.


How should i do to solve this problem?

Share this post


Link to post
Share on other sites

I think the problem was not in the actual expression you used, but HOW you were using it. If you use that expression when there is no following entity it will give an error. But I added this expression to that floor label in that same SimBit and it worked fine because I don't evaluate it when it is invalid.

 

and followed by {NextEntityBehindOnLink} at speed {Math.If(NextEntityBehindOnLink==Nothing,0,NextEntityBehindOnLink.DesiredSpeed)}

Share this post


Link to post
Share on other sites

×
×
  • Create New...