Cable Parameters
 
Functions Introduced:
Function ProCableParameterGet() retrieves a single parameter for the specified cable. This function supports only single-valued parameters. If you specify a multivalued parameter, the function returns PRO_TK_E_NOT_FOUND.
Use ProCableParameterDelete() to remove a single parameter from the specified cable. This function deletes both single- and multi-valued parameters.
Function ProCableParametersCollect() retrieves all parameters of the specified cable. This function supports both single- and multi-valued parameters.
Function ProCableParametersSet() sets all parameters of the specified cable. This function overwrites all existing parameter values with the values in the input parameter array. This function supports both single- and multi-valued parameters.
Function ProCableparammemberFree() releases the memory assigned to the ProCableparam object. Function ProCableparamproarrayFree() releases the memory assigned to the array of ProCableparam objects. The ProCableparam object stores the names and values of cable parameters.
Function ProCablesFromLogicalGet() returns a list of cable names in the specified assembly for which data has been imported from a logical reference but which have not yet been created.
Use function ProCablesFromLogicalCreate() to create instances of cables for which logical data exists.
The function ProCablesFromLogicalAllCreate() creates cables and conductors from logical references. Cables are created using the spool features. If a cable already has a spool feature defined for it, then such cables are created using the existing spools in the model. If the spool feature is not defined for a cable, then this function also creates spools for such cables.
Refer to the Creo Parametric Cabling Help and Creo Parametric Harness Help for more information on logical references.
The function ProCableLocationsOnSegEndGet() returns the start and end location of each segment for the specified cable. The locations are returned as a ProArray.
The functions ProOutputFileMdlnameWrite() and ProInputFileRead() can be used with the option PRO_CABLE_PARAMS_FILE to export and import (and therefore edit) parameters on the specified cable.
Use the function ProCableTessellationGet() to get the tessellation for the specified input cable. Specify the following parameters as input arguments to create the surface tessellation:
cable—Specify the input cable on which the tessellation is to be created.
input_data—Specify the input data used for the tessellation such as AngleControl, ChordHeight, StepSize and so on. You can choose the options to use when generating a tessellation for the input cable.
Note:
 
You must set the configuration option display_thick_cables toyes before using this API.
Use the function ProCablesegmentInfoIsNew() to identify if the specified cable segment with location information is connected to the previous segment.
Use the function ProCablesegmentInfoPointsGet() to get an array of points, tangents and location Ids for the specified cable segment.
Use the function ProCablesegmentInfosGet() to collect cable segments with location Ids of the cable segments present within the specified cable.
The following example shows a sample cable parameters file. Like the file for connector parameters, the parameter names and values are separated by tab characters.
這是否有幫助?