Object ProCavitylayout

Function ProCavitylayoutLeaderMdlnameSet


Description
Sets a leader model for the cavity layout (NOTE: The leader model cannot be reset in the handle of the existing cavity layout) Note: In Creo 3 this function does not differ in behavior from superseded ProCavitylayoutLeaderSet. In particular, ref_name can be only of ProName length. This function is reserved for future use.
Synopsis
#include <ProCavitylayout.h>
ProErrorProCavitylayoutLeaderMdlnameSet(
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);
*/
ProMdlName 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: Functions that Support Multi-CAD Assemblies
  2. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  3. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions

Sample Code References:

  1. pt_examples ( TestCavityLayout.c )