[AGV Network] Check if allocation point of transfer cluster is at CP

[AGV Network] Check if allocation point of transfer cluster is at CP

IagoMontes
Not applicable
36 Views
4 Replies
Message 1 of 5

[AGV Network] Check if allocation point of transfer cluster is at CP

IagoMontes
Not applicable

[ FlexSim 24.0.4 ]

Hi!

I was trying to check if an allocation point of a transfer cluster is at a CP because I want to create a logic to change stopAtDist, traversalDist, arrivalDist info with the event On AGV Build Travel Path (I still don't know if this works for transfer clusters like it works for Allocatable Objects).

Now, the problem I have is that if its not at a CP, i'm getting an exception using getsdtvalue:

1721046215993.png

exception: FlexScript exception: <no path> c: <no path> i: <no path>

I just want to get that NULL value, 0 or any value to identify this. How can I avoid the System Console exception? I've tried with objectexists(getsdtvalue(...)) but its not working.

Thanks in advance!

Iago.

0 Likes
Accepted solutions (1)
37 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

We've noted that there's an issue trying to get this value when NULL.

In the meantime you could scan the trees to see if a path point is co-located with a control point. Attached is a user command that should do that (just load the user library to auto-install it to your model). To use it just call getCPPoint(pathpoint).

getCPPoint_userCommand.fsl

0 Likes
Message 3 of 5

IagoMontes
Not applicable

Thanks Jason! It's working fine

Message 4 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

Good to hear. The issue should be fixed in the next release.

0 Likes
Message 5 of 5

Matthew_Gillespie
Autodesk
Autodesk
@Iago Montes @Jason Lightfoot This issue is fixed in the latest bug fix releases: 24.0.5 and 24.2.1.


Matthew Gillespie
FlexSim Software Developer

0 Likes