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

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

962076751
Advocate Advocate
374 Views
5 Replies
Message 1 of 6

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

962076751
Advocate
Advocate

[ FlexSim 19.0.0 ]

37885-001.png 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?

0 Likes
Accepted solutions (1)
375 Views
5 Replies
Replies (5)
Message 2 of 6

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Call use function_s to call finalizeSpatialChanges:

function_s(cp,"finalizeSpatialChanges");
Message 3 of 6

962076751
Advocate
Advocate

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
Message 4 of 6

jason_lightfoot_adsk
Autodesk
Autodesk

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
Message 5 of 6

joerg_vogel_HsH
Mentor
Mentor

You find undocumented functions in the library tree.

0 Likes
Message 6 of 6

962076751
Advocate
Advocate

OK! I found it as a DLL node.

0 Likes