API 文件集 > View manager > Object ProExpldstate > Function ProExpldstateCreate
Function ProExpldstateCreate
Description
Creates an explode state.
Replacement in Object TOOLKIT:
Synopsis
#include <ProExpldstate.h>
ProExpldstateCreate
(
ProSolid p_solid
/* (In)
The assembly where the explode state will be created. Cannot be NULL.
*/
ProName name
/* (In)
The name of the state. Cannot be NULL.
*/
/* (In)
ProArray of the state moves. Can be NULL.
Each ProExpldAnimMoveData element describes the set of assembly components and how they should be moved. The moves are applied in the same order as they go in the array.
*/
ProExpldstate* p_new_expl_state
/* (Out)
The new explode state
*/
)
Returns
The function successfully created the explode state.
Model is in read-only state.
Some of the input argument is invalid (see also errors for ProExpldstateInit and ProArraySizeGet).
The explode state with given name cannot be created (there is an explode state with such name; or name contains invalid characters)
Failed to create the state.
Some ProAsmcomppath in comp_set for some moves do not correspond to any component (this error may be also returned for other non-specified cases).
User Guide References
這是否有幫助?