Cable Routing
 
Functions Introduced:
To Route a Group of Cables Through a Sequence of Locations:
1. Call ProCableRoutingStart() to identify the cables to be routed.
2. Call ProCablelocationrefAlloc() to create a routing reference location structure.
3. Call ProCableThruLocationRoute() for each location through which to route the cables.
4. Call ProCablelocationrefFree() to free the location reference.
5. Call ProCableRoutingEnd() to complete the routing.
6. Call ProSolidRegenerate() to make Creo+ calculate the resulting cable geometry and create the necessary cable features.
Note:
 
You must also call the function ProWindowRepaint() to see the new cables.
After the call to ProCableRoutingStart(), the information about the routing in progress is contained in an opaque data structure ProRouting that ProCableRoutingStart() provides. This pointer is then given as an input to the functions ProCableThruLocationRoute() and ProCableRoutingEnd().
The inputs to ProCableRoutingStart() are the cabling assembly and harness handles, and an array of cables.
The input to ProCableThruLocationRoute() is a structure of type ProCablelocationref, which contains all the necessary information about the location through which to route the cables.
The following table shows the possible values of the type field, and the values that other fields need for each type.
type
refs
axis_flip
offsets
PROLOC_CONNECTOR
The coordinate system datum for the entry port
PROLOC_POINT
The datum point
PROLOC_AXIS
The axis
0 or 1 to show the routing direction
-—
PROLOC_OFFSET
The coordinate system datum to define the offset directions
Offset distances from the previous location
PROLOC_LOC
An existing routing location
The function ProCableThruLocationRoute() also outputs an array of the structures for the locations created as a result of the call. (The function usually creates a single location, but creates two in the case of routing through an axis.)
As input, the ProCableRoutingEnd() function takes only the void* for the routing data.
도움이 되셨나요?