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.
Post Reply
khaterehhadi
Posts: 9
Joined: Sun Jan 01, 2017 10:26 pm

DirectDistanceTo.Object(object) question

Post 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

willem
Posts: 106
Joined: Wed Jul 03, 2013 12:07 pm

Re: DirectDistanceTo.Object(object) question

Post 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

khaterehhadi
Posts: 9
Joined: Sun Jan 01, 2017 10:26 pm

Re: DirectDistanceTo.Object(object) question

Post by khaterehhadi » Mon Mar 06, 2017 10:08 am

Thanks willem. It was really helpful.

Post Reply