API 설명서 > Features > Object ProFeature > Function ProFeatureCreate
Function ProFeatureCreate
DEPRECATED:
Since Wildfire 5.0
Description
Creates a feature from the element tree.
NOTE:
This function is deprecated. Use ProFeatureWithoptionsCreate() with flags equal to PRO_REGEN_NO_FLAGS for equivalent behavior. Refer to the Creo Parametric Toolkit Release Notes for more information on restrictions of using this function with Multi-CAD models.
Synopsis
#include <ProFeature.h>
ProFeatureCreate
(
/* (In)
A selection object representing the part or assembly on which the feature is being created. The selection object must be constructed using a valid assembly component path to the top level assembly if: the feature contains external references to geometry located outside of the solid model where it will be constructed. or, the solid model in which the feature will be constructed is a member of the active Creo Parametric assembly.
*/
ProElement elemtree
/* (In)
The element tree.
*/
/* (In)
An array of user options.
*/
int num_opts
/* (In)
The number of options in the options array.
*/
ProFeature* p_feature
/* (Out)
The feature handle.
*/
ProErrorlist* p_errors
/* (Out)
The list of errors.
*/
)
Returns
The function successfully created the feature.
Model is in read-only state.
One or more of the input arguments are invalid.
The feature was not created. See p_errors for the list of problems.
See Also
Sample Code References
User Guide References
도움이 되셨나요?