question

michel.torbey avatar image
0 Likes"
michel.torbey asked michel.torbey commented

Choose Connection type using contextdragconnection

I am using the function "contextdragconnection" and I have three types of "Object two way" connection in the agv network I am using.

When I apply the function, a pop-up appears asking me to choose between the three type.

Is there a way to make the program automatically choose one of the three type by using a command?

agvfunctions
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

·
jing.c avatar image
3 Likes"
jing.c answered michel.torbey commented

Hi @michel.torbey

Try this command: function_s(obj FromCP,"addConnection",int index,obj ToCP);

"index" is the index of connection types, -1 means "traveler agv"

· 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.

michel.torbey avatar image michel.torbey commented ·

Thank you for your help! it works well.

Best regards,

Michel

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.