Object ProCavitylayout

Function ProCavitylayoutLeaderSet


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProCavitylayoutLeaderMdlnameSet
Description
Note: This function is deprecated Use ProCavitylayoutLeaderMdlnameSet instead. Sets a leader model for the cavity layout (NOTE: The leader model cannot be reset in the handle of the existing cavity layout)
Synopsis
#include <ProCavitylayout.h>
ProErrorProCavitylayoutLeaderSet(
ProCavityLayout cvlayout
/* (In)
Pointer to the layout handle;
*/
ProMdl in_leader
/* (In)
The leader model (must be a mold/casting model if the layout owner is a regular assembly, and mold/casting design model if the owner is mold/casting);
*/
ProName ref_name
/* (In)
Unique name for the reference model to be created for the design model in_leader. This argument has sense only if the owner is mold/casting.
*/
ProMdl* out_leader
/* (Out)
The result leader model set. It is the same as in_leader if if the layout owner is a regular assembly, and mold/casting reference model if the owner is mold/casting)
*/
)
Returns
PRO_TK_NO_ERRORThe model is successfully set.
PRO_TK_BAD_INPUTSThe layout handle is not initialized or the leader type is not allowed or does not correspond to the owner type.
PRO_TK_GENERAL_ERRORCannot set the leader model.

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  2. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions
  3. Technical Summary of Changes for Creo 4.0 F000: Cavity Layout