Function ProMdlCombStateCreate
Description
Create combined state from references.
Replacement in Object TOOLKIT:
Synopsis
#include <ProCombstate.h>
ProMdlCombStateCreate
(
ProSolid p_solid
/* (In)
Solid.
*/
ProName new_name
/* (In)
Name of the new state.
*/
ProModelitem* ref_arr
/* (In)
ProArray of references. Must be non empty array. See ProCombstateDataGet for possible types of items in this array. The PRO_XSEC item may represent either a valid ProXsec handle or a zone feature. Use ProModelitemIsZone to check it and, if it returns TRUE, change the item type to PRO_FEATURE and use ProFeatureZoneGet instead. Omit a reference for 'NO STATE', where comb state activation will not affect this aspect, and use id PRO_COMBSTATE_REF_MRU for Most Recently Used.
*/
/* (In)
Cross section clip option. Not used if PRO_XSEC reference is not passed.
*/
ProBool is_expld
/* (In)
Is state exploded or not. Not relevant in Part.
*/
ProCombstate* cs_item
/* (Out)
Created combined state item. Allowed to be NULL.
*/
)
Returns
Combined state created.
Invalid solid or name (including that combined state with such name exists. Reference array is NULL or it's size is zero.
Invalid references. Possible errors:
- The type of one of the references is not valid.
- Reference of some type appears twice or more.
- Id and type of a reference don't match.
User Guide References
これは役に立ちましたか?