question

Meng,Li avatar image
0 Likes"
Meng,Li asked Meng,Li commented

How to create AGV CP with a cross sign in code?

Hi you there!

As the photo shown above, CP2, the one that i dragged from the library and put it on the path, is connected with the path with a cross sign inside its shape. And we can see the connection through the tree structure.

Then i attempted to create a CP1 in code like the script below, but there is no connection between the CP1 and the path.

So i wonder how to build the connection between the CP1 and the path through code?

FlexSim 19.0.0
flexsim 19.0.0cp
001.png (13.7 KiB)
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
1 Like"
Jason Lightfoot answered Meng,Li commented

Call use function_s to call finalizeSpatialChanges:

function_s(cp,"finalizeSpatialChanges");
· 4
5 |100000

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

Meng,Li avatar image Meng,Li commented ·

Thank you, Jason!

Furthermore, function_s() is a powerful funtion you brilliant guys build. As i have searched the manual with nothing found, I wonder where to find the fields like "finalizeSpatialChanges" and their instructions.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Meng,Li commented ·

It's not officially supported so putting it in a user command might be a good idea in order to change it in one place.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Meng,Li commented ·

You find undocumented functions in the library tree.

0 Likes 0 ·
Meng,Li avatar image Meng,Li Joerg Vogel commented ·

OK! I found it as a DLL node.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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