Documentation de l'API > Features > Object ProFeature > Function ProFeatureSketchedWithOptionsCreate
Function ProFeatureSketchedWithOptionsCreate
Description
Creates a feature from the element tree and copies sketch(es) from the feature(s) from sketch_array to the created feature. Supports creation of the following sketched features:
Fill / Flat Surface
Extrude
Revolve
Sketched Datum Curve
Wrap Curve
Synopsis
#include <ProFeature.h>
ProFeatureSketchedWithOptionsCreate
(
/* (In)
The model on which the feature is being created. If the feature is created in an assembly, you must specify the component path.
*/
ProElement elemtree
/* (In)
The element tree.
*/
/* (In)
ProArray of user options.
*/
ProSelection* sketch_array
/* (In)
ProArray of selections of sketch datum curves containing sketches
*/
int flags
/* (In)
The regeneration control flags. Pass as bitmask containing one or more of the bit flags PRO_REGEN* defined in ProSolid.h
*/
ProFeature* p_feature
/* (Out)
The feature handle to the created sketched feature.
*/
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 successfully. The will feature set as incomplete. See p_errors for the list of problems.
sketch_array contains feature other than a sketched datum curve
See Also
Sample Code References
User Guide References
Est-ce que cela a été utile ?