NX Open C++ Reference Guide
|
Represents a FeatureRecognition Builder
To create a new instance of this class, use CAM::CAMSetup::CreateFeatureRecognitionBuilder
Created in NX6.0.0.
More...
Public Types | |
enum | FindBodyEnum { FindBodyEnumWorkpiece, FindBodyEnumAllBodies, FindBodyEnumSpecified } |
the method of body selection More... | |
enum | GeometrySearch { GeometrySearchWorkpiece, GeometrySearchAllGeometry, GeometrySearchSelected } |
the geometry search type More... | |
enum | RecognitionEnum { RecognitionEnumIdentify, RecognitionEnumParametric, RecognitionEnumLegacy, RecognitionEnumGeneric, RecognitionEnumManual } |
the type of feature search More... | |
Public Member Functions | |
bool | AddCadFeatureAttributes () |
Returns the flag indicating whether features will get attributes added of enclosed modeling features Created in NX7.5.2. | |
bool | AssignColor () |
Returns the flag indicating whether features will get a color assigned if their faces have a unique color that is different from the body color Created in NX6.0.0. | |
NXOpen::CAM::FeatureRecognitionBuilder::FindBodyEnum | CmbFindBodyFrom () |
Returns the method of body selection | |
NXOpen::TaggedObject * | CreateFeature (const NXString &featureName, const std::vector< NXOpen::Face * > &faces, const std::vector< NXOpen::Face * > &wallFaces, bool deleteFeatures) |
Creates a feature based on name, floor and wall faces This method is deprecated. | |
NXOpen::CAM::ManualFeatureBuilder * | CreateManualFeatureBuilder () |
Creates a new manual feature builder. | |
void | DeleteFeature (NXOpen::CAM::CAMFeature *feature) |
Deletes a manufacturing feature that was created through this builder instance Created in NX7.5.0. | |
void | DeleteFeature (NXOpen::TaggedObject *feature) |
Deletes manufacturing feature that was created through this builder instance This method is deprecated. | |
bool | FeatureMapperEnabled () |
Returns the flag indicating if mapping is enabled. | |
std::vector < NXOpen::CAM::CAMFeature * > | FindFeatures () |
Finds manufacturing features. | |
NXOpen::ScCollector * | FloorFaces () |
Returns the floor faces Created in NX6.0.0. | |
NXOpen::CAM::FeatureRecognitionBuilder::GeometrySearch | GeometrySearchType () |
Returns the method of geometry search Created in NX7.5.0. | |
std::vector < NXOpen::CAM::CAMFeature * > | GetFoundFeatures () |
Returns the found features. | |
void | GetModelingFeatureTypes (std::vector< NXString > &featureTypes) |
Gets the modeling feature types from the bodies currently set in this builder Created in NX7.5.0. | |
std::vector < NXOpen::TaggedObject * > | GetRecognizedFeatures () |
Returns the found features This method is deprecated. | |
void | GetRegisteredFeatureTypes (std::vector< NXString > &featureTypes) |
Gets the registered feature types Created in NX6.0.0. | |
std::vector < NXOpen::DisplayableObject * > | GetSearchGeometry () |
Returns the geometry search. | |
bool | IgnoreExistingFeatures () |
Returns the flag indicating whether found features are checked agains existing features. | |
bool | IgnoreWarnings () |
Returns the flag indicating whether to ignore warnings while finding features. | |
NXOpen::ScCollector * | LimitFaces () |
Returns the limited set of faces to search in Created in NX6.0.0. | |
NXOpen::CAM::ManualFeatureBuilderList * | LstManualFeatures () |
Returns the manual feature builder list Created in NX6.0.0. | |
NXOpen::CAM::CAMFeature * | MakeFeature (const NXString &featureName, const std::vector< NXOpen::Face * > &faces, const std::vector< NXOpen::Face * > &wallFaces, bool deleteFeatures) |
Creates a feature based on name, floor and wall faces. | |
bool | MapFeatures () |
Returns the flag indicating whether features will be mapped to other features if possible Created in NX6.0.0. | |
NXOpen::CAM::FeatureRecognitionBuilder::RecognitionEnum | RecognitionType () |
Returns the type of feature search Created in NX6.0.0. | |
std::vector < NXOpen::TaggedObject * > | Recognize () |
Finds manufacturing features This method is deprecated. | |
NXOpen::SelectBodyList * | SelBodiesToSearch () |
Returns the bodies to search | |
void | SetAddCadFeatureAttributes (bool addCadAttributes) |
Sets the flag indicating whether features will get attributes added of enclosed modeling features Created in NX7.5.2. | |
void | SetAssignColor (bool assignColor) |
Sets the flag indicating whether features will get a color assigned if their faces have a unique color that is different from the body color Created in NX6.0.0. | |
void | SetCmbFindBodyFrom (NXOpen::CAM::FeatureRecognitionBuilder::FindBodyEnum cmbFindBodyType) |
Sets the method of body selection | |
void | SetFeatureTypes (std::vector< NXString > &featureTypes) |
Sets the feature types used by the recognizer Created in NX6.0.0. | |
void | SetGeometrySearchType (NXOpen::CAM::FeatureRecognitionBuilder::GeometrySearch geometrySearch) |
Sets the method of geometry search Created in NX7.5.0. | |
void | SetIgnoreExistingFeatures (bool ignoreExistingFeatures) |
Sets the flag indicating whether found features are checked agains existing features. | |
void | SetIgnoreWarnings (bool ignoreWarnings) |
Sets the flag indicating whether to ignore warnings while finding features. | |
void | SetMachiningAccessDirection (const std::vector< NXOpen::Direction * > &vecDirections, double dTolerance) |
Set the machining access direction to exact or approximate vector Created in NX8.0.1. | |
void | SetMachiningAccessDirection (NXOpen::Point *focalPt, bool bIsTowardPt) |
Set the machining access direction to toward or away from point Created in NX8.0.1. | |
void | SetMapFeatures (bool mapFeatures) |
Sets the flag indicating whether features will be mapped to other features if possible Created in NX6.0.0. | |
void | SetRecognitionType (NXOpen::CAM::FeatureRecognitionBuilder::RecognitionEnum recognitionType) |
Sets the type of feature search Created in NX6.0.0. | |
void | SetSearchGeometry (const std::vector< NXOpen::DisplayableObject * > &objects) |
Sets the geometry to search Created in NX7.5.0. | |
void | SetUseFeatureNameAsType (bool useFeatureNameAsType) |
Sets the flag indicating whether the feature name will be used as feature type Created in NX6.0.0. | |
void | SetVecDirection (NXOpen::Direction *vecDirection) |
Sets the machining access direction vector | |
bool | UseFeatureNameAsType () |
Returns the flag indicating whether the feature name will be used as feature type Created in NX6.0.0. | |
NXOpen::Direction * | VecDirection () |
Returns the machining access direction vector |
Represents a FeatureRecognition Builder
To create a new instance of this class, use CAM::CAMSetup::CreateFeatureRecognitionBuilder
Created in NX6.0.0.
the type of feature search
RecognitionEnumIdentify |
Feature Identification from modeling features. |
RecognitionEnumParametric |
Parametric Feature Recognition. |
RecognitionEnumLegacy |
Legacy Hole Feature Recognition. |
RecognitionEnumGeneric |
Legacy Face and Pocket Feature Recognition. |
RecognitionEnumManual |
Manual Feature Recognition. |
Returns the flag indicating whether features will get attributes added of enclosed modeling features
Created in NX7.5.2.
License requirements : None
Returns the flag indicating whether features will get a color assigned if their faces have a unique color that is different from the body color
Created in NX6.0.0.
License requirements : None
NXOpen::CAM::FeatureRecognitionBuilder::FindBodyEnum NXOpen::CAM::FeatureRecognitionBuilder::CmbFindBodyFrom | ( | ) |
Returns the method of body selection
Created in NX6.0.0.
License requirements : None
NXOpen::TaggedObject* NXOpen::CAM::FeatureRecognitionBuilder::CreateFeature | ( | const NXString & | featureName, |
const std::vector< NXOpen::Face * > & | faces, | ||
const std::vector< NXOpen::Face * > & | wallFaces, | ||
bool | deleteFeatures | ||
) |
Creates a feature based on name, floor and wall faces
This method is deprecated.
Use CAM::FeatureRecognitionBuilder::MakeFeature instead.
Created in NX6.0.0.
License requirements : None
featureName | name of new feature NOTE: The full Unicode character set is not supported for this parameter. |
faces | floor faces of new feature |
wallFaces | wall faces of new feature |
deleteFeatures | Deletes previous found features |
NXOpen::CAM::ManualFeatureBuilder* NXOpen::CAM::FeatureRecognitionBuilder::CreateManualFeatureBuilder | ( | ) |
Creates a new manual feature builder.
void NXOpen::CAM::FeatureRecognitionBuilder::DeleteFeature | ( | NXOpen::CAM::CAMFeature * | feature | ) |
Deletes a manufacturing feature that was created through this builder instance
Created in NX7.5.0.
License requirements : None
feature | feature |
void NXOpen::CAM::FeatureRecognitionBuilder::DeleteFeature | ( | NXOpen::TaggedObject * | feature | ) |
Deletes manufacturing feature that was created through this builder instance
This method is deprecated.
Use the overloaded version of this method that takes CAM::CAMFeature instead.
Created in NX6.0.0.
License requirements : None
feature | feature |
Returns the flag indicating if mapping is enabled.
Only when a valid mapping module is loaded the feature mapper is enabled
Created in NX6.0.0.
License requirements : None
std::vector<NXOpen::CAM::CAMFeature *> NXOpen::CAM::FeatureRecognitionBuilder::FindFeatures | ( | ) |
Finds manufacturing features.
Returns the floor faces
Created in NX6.0.0.
License requirements : None
NXOpen::CAM::FeatureRecognitionBuilder::GeometrySearch NXOpen::CAM::FeatureRecognitionBuilder::GeometrySearchType | ( | ) |
Returns the method of geometry search
Created in NX7.5.0.
License requirements : None
std::vector<NXOpen::CAM::CAMFeature *> NXOpen::CAM::FeatureRecognitionBuilder::GetFoundFeatures | ( | ) |
Returns the found features.
void NXOpen::CAM::FeatureRecognitionBuilder::GetModelingFeatureTypes | ( | std::vector< NXString > & | featureTypes | ) |
Gets the modeling feature types from the bodies currently set in this builder
Created in NX7.5.0.
License requirements : None
featureTypes | feature types |
std::vector<NXOpen::TaggedObject *> NXOpen::CAM::FeatureRecognitionBuilder::GetRecognizedFeatures | ( | ) |
Returns the found features
This method is deprecated.
Use CAM::FeatureRecognitionBuilder::GetFoundFeatures instead.
Created in NX6.0.0.
License requirements : None
void NXOpen::CAM::FeatureRecognitionBuilder::GetRegisteredFeatureTypes | ( | std::vector< NXString > & | featureTypes | ) |
Gets the registered feature types
Created in NX6.0.0.
License requirements : None
featureTypes | feature types |
std::vector<NXOpen::DisplayableObject *> NXOpen::CAM::FeatureRecognitionBuilder::GetSearchGeometry | ( | ) |
Returns the geometry search.
Returns the flag indicating whether found features are checked agains existing features.
If this flag is set then features are recognized even if they match existing features.
Created in NX7.5.0.
License requirements : None
Returns the flag indicating whether to ignore warnings while finding features.
Created in NX7.5.0.
License requirements : None
Returns the limited set of faces to search in
Created in NX6.0.0.
License requirements : None
NXOpen::CAM::ManualFeatureBuilderList* NXOpen::CAM::FeatureRecognitionBuilder::LstManualFeatures | ( | ) |
Returns the manual feature builder list
Created in NX6.0.0.
License requirements : None
NXOpen::CAM::CAMFeature* NXOpen::CAM::FeatureRecognitionBuilder::MakeFeature | ( | const NXString & | featureName, |
const std::vector< NXOpen::Face * > & | faces, | ||
const std::vector< NXOpen::Face * > & | wallFaces, | ||
bool | deleteFeatures | ||
) |
Creates a feature based on name, floor and wall faces.
featureName | name of new feature NOTE: The full Unicode character set is not supported for this parameter. |
faces | floor faces of new feature |
wallFaces | wall faces of new feature |
deleteFeatures | Deletes previous found features |
Returns the flag indicating whether features will be mapped to other features if possible
Created in NX6.0.0.
License requirements : None
NXOpen::CAM::FeatureRecognitionBuilder::RecognitionEnum NXOpen::CAM::FeatureRecognitionBuilder::RecognitionType | ( | ) |
Returns the type of feature search
Created in NX6.0.0.
License requirements : None
std::vector<NXOpen::TaggedObject *> NXOpen::CAM::FeatureRecognitionBuilder::Recognize | ( | ) |
Finds manufacturing features
This method is deprecated.
Use CAM::FeatureRecognitionBuilder::FindFeatures instead.
Created in NX6.0.0.
License requirements : None
Returns the bodies to search
Created in NX6.0.0.
License requirements : None
void NXOpen::CAM::FeatureRecognitionBuilder::SetAddCadFeatureAttributes | ( | bool | addCadAttributes | ) |
Sets the flag indicating whether features will get attributes added of enclosed modeling features
Created in NX7.5.2.
License requirements : None
addCadAttributes | add cad attributes |
void NXOpen::CAM::FeatureRecognitionBuilder::SetAssignColor | ( | bool | assignColor | ) |
Sets the flag indicating whether features will get a color assigned if their faces have a unique color that is different from the body color
Created in NX6.0.0.
License requirements : None
assignColor | assign color |
void NXOpen::CAM::FeatureRecognitionBuilder::SetCmbFindBodyFrom | ( | NXOpen::CAM::FeatureRecognitionBuilder::FindBodyEnum | cmbFindBodyType | ) |
Sets the method of body selection
Created in NX6.0.0.
License requirements : None
cmbFindBodyType | cmbfindbodytype |
void NXOpen::CAM::FeatureRecognitionBuilder::SetFeatureTypes | ( | std::vector< NXString > & | featureTypes | ) |
Sets the feature types used by the recognizer
Created in NX6.0.0.
License requirements : None
featureTypes | NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::CAM::FeatureRecognitionBuilder::SetGeometrySearchType | ( | NXOpen::CAM::FeatureRecognitionBuilder::GeometrySearch | geometrySearch | ) |
Sets the method of geometry search
Created in NX7.5.0.
License requirements : None
geometrySearch | geometry search |
void NXOpen::CAM::FeatureRecognitionBuilder::SetIgnoreExistingFeatures | ( | bool | ignoreExistingFeatures | ) |
Sets the flag indicating whether found features are checked agains existing features.
If this flag is set then features are recognized even if they match existing features.
Created in NX7.5.0.
License requirements : None
ignoreExistingFeatures | ignore existing features |
void NXOpen::CAM::FeatureRecognitionBuilder::SetIgnoreWarnings | ( | bool | ignoreWarnings | ) |
Sets the flag indicating whether to ignore warnings while finding features.
Created in NX7.5.0.
License requirements : None
ignoreWarnings | ignore warnings |
void NXOpen::CAM::FeatureRecognitionBuilder::SetMachiningAccessDirection | ( | const std::vector< NXOpen::Direction * > & | vecDirections, |
double | dTolerance | ||
) |
Set the machining access direction to exact or approximate vector
Created in NX8.0.1.
License requirements : None
vecDirections | vecdirections |
dTolerance | dtolerance |
void NXOpen::CAM::FeatureRecognitionBuilder::SetMachiningAccessDirection | ( | NXOpen::Point * | focalPt, |
bool | bIsTowardPt | ||
) |
Set the machining access direction to toward or away from point
Created in NX8.0.1.
License requirements : None
focalPt | focalpt |
bIsTowardPt | bistowardpt |
void NXOpen::CAM::FeatureRecognitionBuilder::SetMapFeatures | ( | bool | mapFeatures | ) |
Sets the flag indicating whether features will be mapped to other features if possible
Created in NX6.0.0.
License requirements : None
mapFeatures | map features |
void NXOpen::CAM::FeatureRecognitionBuilder::SetRecognitionType | ( | NXOpen::CAM::FeatureRecognitionBuilder::RecognitionEnum | recognitionType | ) |
Sets the type of feature search
Created in NX6.0.0.
License requirements : None
recognitionType | recognition type |
void NXOpen::CAM::FeatureRecognitionBuilder::SetSearchGeometry | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Sets the geometry to search
Created in NX7.5.0.
License requirements : None
objects | objects |
void NXOpen::CAM::FeatureRecognitionBuilder::SetUseFeatureNameAsType | ( | bool | useFeatureNameAsType | ) |
Sets the flag indicating whether the feature name will be used as feature type
Created in NX6.0.0.
License requirements : None
useFeatureNameAsType | use feature name as type |
void NXOpen::CAM::FeatureRecognitionBuilder::SetVecDirection | ( | NXOpen::Direction * | vecDirection | ) |
Sets the machining access direction vector
Created in NX6.0.0.
License requirements : None
vecDirection | vecdirection |
Returns the flag indicating whether the feature name will be used as feature type
Created in NX6.0.0.
License requirements : None
Returns the machining access direction vector
Created in NX6.0.0.
License requirements : None