Jump to content
Simio Forum

DirectDistanceTo.Object(object) question

Recommended Posts

I have two workers in my model and trying to get the bellow expression values on an attached floor label for one of my workers:

WrkA.Location.X: {Math.Round(Location.X)}

WrkA.DirectDistanceTo.Location(0,0,0): {DirectDistanceTo.Location(0,0,0)}

WrkA.DirectDistanceTo.Object(WrkB): {DirectDistanceTo.Object(WrkB)}

WrkA.DirectDistanceTo.Object(TransferNode1): {DirectDistanceTo.Object(TransferNode1)}

The first and second expression show the value of expression on the run and work fine. But the third and forth expressions using the DirectDistanceTo.Object(object) function show the expression itself (instead of the resulted value). I tried this with status labels and still don't get results.

Am I missing something?



Share this post

Link to post
Share on other sites

Try the following:

Specify the instance of the work, if you have only one:

WrkA.DirectDistanceTo.Object(WrkB): {DirectDistanceTo.Object(WrkB[1])}

Reference the model:

WrkA.DirectDistanceTo.Object(TransferNode1): {DirectDistanceTo.Object(Model.TransferNode1)}



Share this post

Link to post
Share on other sites

  • Create New...