question

Iago Montes avatar image
0 Likes"
Iago Montes asked Matthew Gillespie commented

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

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.

FlexSim 24.0.4
agvnetworkexit transferallocation pointsimpledatatype
1721046215993.png (110.1 KiB)
· 1
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
@Iago Montes @Jason Lightfoot This issue is fixed in the latest bug fix releases: 24.0.5 and 24.2.1.
0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

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


· 2
5 |100000

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

Iago Montes avatar image Iago Montes commented ·

Thanks Jason! It's working fine

1 Like 1 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Iago Montes commented ·

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

0 Likes 0 ·