question

Jay Khedekar avatar image
0 Likes"
Jay Khedekar asked Jason Lightfoot answered

How to get control point object which my queue is connected to using flexscript?

I want to write a script where I want to use cpdistance(CP1, CP2) as formula to get distance.

I want to calculate network distance between queue for which I am thinking to get the control point its connected to and then use the cpdistance to get the distance.

How can I get the controlpoints that my queues are connected to and store them in Object variable CP1 and CP2 with flexscript?

FlexSim 23.0.15
flexscriptobjectcontrolpoint
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered
AGV.Connections(queue,"Location")[1];

Change the index of array to reference multiple control points.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.