Documentação da API > Cabling > Object ProCable > Function ProCableCreate
Function ProCableCreate
Description
Creates new cable or wire in specified harness. The type of the cable corresponds to the spool type. Required parameters will be created with default values, unless the cable name has been imported from a logical reference, in which case the parameters from the reference are used instead. after finishing the call, now reset the current model back to its status before the call
Synopsis
#include <ProCabling.h>
ProCableCreate
(
ProHarness harness
/* (In)
The handle of harness
*/
ProSpool* spool
/* (In)
The spool handle
*/
ProName cable_name
/* (In)
The cable name
*/
ProCable* p_cable
/* (Out)
The handle of new cable
*/
)
Returns
The function successfully created the new cable.
Model is in read-only state.
One or more of the arguments was invalid.
Cable already exists.
Spool does not exist yet.
Other error.
Sample Code References
User Guide References
Isto foi útil?