Skip to main content
Oct 16, 2025 9:31 AM UTC
Question

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

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

Oct 16, 2025 6:57 PM UTC

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

Community Manager
Oct 29, 2025 9:22 AM UTC

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,