API 설명서 > Features > Object ProFeature > Function ProFeatureExternParentsGet
Function ProFeatureExternParentsGet
Description
Collect data on external (and local) parents of the specified feature according to the specified reference type.
Replacement in Object TOOLKIT:
Synopsis
#include <ProRefInfo.h>
ProFeatureExternParentsGet
(
ProFeature* feature
/* (In)
The handle to a feature to be checked.
*/
ProExtRefType parent_type
/* (In)
The type of required references. PRO_ALL_REF_TYPES means both local and external references will be collected. PRO_LOC_GEOM_REF, PRO_LOC_REL_REF, PRO_FEAT_PAT_LOC_REF and PRO_LOC_MERGE_REF means only local references will be collected. The rest types causes only external references to be collected.
*/
ProExtRefInfo** r_parent_infos
/* (Out)
Array of parents found. Allocated inside function when any parents are of parent_type are found.
*/
int* n_infos
/* (Out)
Number of elements in r_parent_infos.
*/
)
Returns
The function successfully returned the information.
Invalid feature handler or invalid reference type, or r_parent_infos is NULL, or n_infos is NULL.
Required license not found.
No parents of parent_type are found.
(*r_infos) is not NULL.
There are too many references in model to fit them into an array. Some references will be excluded.
The operation failed.
Sample Code References
User Guide References
도움이 되셨나요?