API 文档 > Miscellaneous > Object ProCavitylayout > Function ProCavitylayoutGetByNumber
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
ProCavitylayoutGetByNumber
(
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
The handle is successfully initialized.
The owner type is not allowed
The selected component does not belong to any cavity layout.
Sample Code References
这对您有帮助吗?