Category Cabling, Object ProSpool

Function ProSpoolCreate


Description
Creates new spool.
Synopsis
#include <ProCabling.h>
ProErrorProSpoolCreate(
ProAssembly assy
/* (In)
The handle of spools assembly owner.
*/
ProName w_name
/* (In)
The spool name.
*/
ProCableType cable_type
/* (In)
The type of created spool.
*/
ProBundleType sheath_type
/* (In)
The type of bundle.
*/
ProSpool* p_spool
/* (Out)
The handle of created spool.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully creates new spool.
PRO_TK_BAD_INPUTSOne or more of the arguments was invalid.
PRO_TK_E_FOUNDA spool with this name already exists. (Note: in this case p_spool will contain the spool information; this is an exception to the rule that all information in output arguments is unreliable if a function returns anything other than PRO_TK_NO_ERROR.)
PRO_TK_GENERAL_ERROROther error.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Production Applications: Cabling: Managing Spools
  3. Production Applications: Cabling: Managing Spools

Sample Code References:

  1. pt_examples ( UtilCable.c )