Skip to main content
3-Newcomer
October 16, 2025
Question

[Creo10 ProToolkit development] How to route multiple cables through a network?

  • October 16, 2025
  • 2 replies
  • 541 views

Creo 10 Pro/Toolkit developement. How to route multiple cables through a network?

 

I tried following code to route all cables through the network point. But all cables are concentrating in one point as the attached picture shown. It is not what I want. 

 

for (int j = 0; j < cablenum; j++)
{
err2 = ProCablelocationrefAlloc(PRO_LOC_POINT, sel_array_route, PRO_B_TRUE, NULL, &cablelocationref);
err3 = ProCableThruLocationRoute(cable_route_data_arr[j], cablelocationref, &p_location, &second_location);
err = ProCablelocationrefFree(cablelocationref);
}
 
How to route the cable through the point like the right pic shown? I will be appreciated.

2 replies

12-Amethyst
October 16, 2025

Make sure that the location is defined as "Flat" and you can then change the "Packing" of the location.

Catalina
Community Moderator
October 29, 2025

Hi @KJ_9759172

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.

Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,

Catalina | PTC Community Moderator