Category View manager, Object ProExpldstate

Function ProExpldstateCreate


Description
Creates an explode state.
Replacement in Object TOOLKIT: wfcWAssembly::CreateExplodedState
Synopsis
#include <ProExpldstate.h>
ProErrorProExpldstateCreate(
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.
*/
ProExpldAnimMoveData* p_move_arr
/* (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
PRO_TK_NO_ERRORThe function successfully created the explode state.
PRO_TK_BAD_INPUTSSome of the input argument is invalid (see also errors for ProExpldstateInit and ProArraySizeGet).
PRO_TK_INVALID_NAMEThe explode state with given name cannot be created (there is an explode state with such name; or name contains invalid characters)
PRO_TK_GENERAL_ERRORFailed to create the state.
PRO_TK_E_NOT_FOUNDSome ProAsmcomppath in comp_set for some moves do not correspond to any component (this error may be also returned for other non-specified cases).

Manual References:

  1. Assembly: Basic Assembly Access: Manipulating Exploded States
  2. Assembly: Basic Assembly Access: Manipulating Exploded States