Simio
  • DirectDistanceTo.Object(object) question

  • General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
    To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
 #8205  by khaterehhadi
 Thu Mar 02, 2017 2:01 pm
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?

Thanks,
Kati
 #8211  by willem
 Fri Mar 03, 2017 11:07 am
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)}

Regards,
Willem