Object ProCavitylayout

Function ProCavitylayoutGetByNumber


Description
Initializes the handle of the n-th cavity layout. The function ProCavitylayoutCountGet() should be called first to find out the number of existing layouts.
Synopsis
#include <ProCavitylayout.h>
ProErrorProCavitylayoutGetByNumber(
ProMdl owner_assem
/* (In)
The top assembly to own the layout (may be either regular assembly or mold/casting model)
*/
int n
/* (In)
the number identifying the layout
*/
ProCavityLayout* cvlayout
/* (Out)
Pointer to the layout handle
*/
)
Returns
PRO_TK_NO_ERRORThe handle is successfully initialized.
PRO_TK_BAD_INPUTSThe owner type is not allowed
PRO_TK_GENERAL_ERRORThe selected component does not belong to any cavity layout.

Sample Code References:

  1. pt_examples ( TestCavityLayout.c )