API Documentation > Miscellaneous > Object ProCavitylayout > Function ProCavitylayoutLeaderMdlnameSet
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
ProCavitylayoutLeaderMdlnameSet
(
/* (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
The model is successfully set.
The layout handle is not initialized or the leader type is not allowed or does not correspond to the owner type.
Cannot set the leader model.
Sample Code References
User Guide References
Was this helpful?