NX Open C++ Reference Guide
|
Provides methods for managing Selection Recipes NXOpen::CAE::SelectionRecipe. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. More... | |
NXOpen::CAE::SelectionRecipe * | Copy (NXOpen::CAE::SelectionRecipe *recipeToCopy, const NXString &name) |
Copies a Selection Recipe with all attributes and add it to the collection. More... | |
NXOpen::CAE::SelectionRecipe * | Copy (NXOpen::CAE::SelectionRecipe *recipeToCopy, const char *name) |
Copies a Selection Recipe with all attributes and add it to the collection. More... | |
NXOpen::CAE::AttributeSelectionRecipe * | CreateAttributeRecipe (const NXString &name, NXOpen::CAE::CaeSetGroupFilterType entityType, bool resolveRelatedFeEntity, NXOpen::CAE::CaeSetGroupFilterType relatedFeEntityType) |
Creates an Attribute based Selection Recipe. More... | |
NXOpen::CAE::AttributeSelectionRecipe * | CreateAttributeRecipe (const char *name, NXOpen::CAE::CaeSetGroupFilterType entityType, bool resolveRelatedFeEntity, NXOpen::CAE::CaeSetGroupFilterType relatedFeEntityType) |
Creates an Attribute based Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateBoxBoundingVolumeRecipe (const NXString &name, NXOpen::CoordinateSystem *centerCsys, NXOpen::Expression *length, NXOpen::Expression *width, NXOpen::Expression *height, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateBoxBoundingVolumeRecipe (const char *name, NXOpen::CoordinateSystem *centerCsys, NXOpen::Expression *length, NXOpen::Expression *width, NXOpen::Expression *height, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateBoxBoundingVolumeRecipe (const NXString &name, NXOpen::Point *centerPoint, NXOpen::Point *targetPoint, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateBoxBoundingVolumeRecipe (const char *name, NXOpen::Point *centerPoint, NXOpen::Point *targetPoint, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::CoordinateSelectionRecipe * | CreateCoordinateRecipe (const NXString &name, const NXOpen::Point3d &coordinates, double tolerance) |
Creates a Coordinate based Single Node Selection Recipe. More... | |
NXOpen::CAE::CoordinateSelectionRecipe * | CreateCoordinateRecipe (const char *name, const NXOpen::Point3d &coordinates, double tolerance) |
Creates a Coordinate based Single Node Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateCylinderBoundingVolumeRecipe (const NXString &name, NXOpen::CoordinateSystem *centerCsys, NXOpen::Expression *diameter, NXOpen::Expression *cylinderHeight, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateCylinderBoundingVolumeRecipe (const char *name, NXOpen::CoordinateSystem *centerCsys, NXOpen::Expression *diameter, NXOpen::Expression *cylinderHeight, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateCylinderBoundingVolumeRecipe (const NXString &name, NXOpen::Expression *diameter, NXOpen::Point *baseCenter, NXOpen::Point *topCenter, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateCylinderBoundingVolumeRecipe (const char *name, NXOpen::Expression *diameter, NXOpen::Point *baseCenter, NXOpen::Point *topCenter, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::LabelRangeSelectionRecipe * | CreateLabelRangeRecipe (const NXString &name, const std::vector< int > &singleLabels, const std::vector< int > &startLabels, const std::vector< int > &endLabels, const std::vector< int > &increments, NXOpen::CAE::CaeSetGroupFilterType entityType) |
Creates a Label Range Selection Recipe. More... | |
NXOpen::CAE::LabelRangeSelectionRecipe * | CreateLabelRangeRecipe (const char *name, const std::vector< int > &singleLabels, const std::vector< int > &startLabels, const std::vector< int > &endLabels, const std::vector< int > &increments, NXOpen::CAE::CaeSetGroupFilterType entityType) |
Creates a Label Range Selection Recipe. More... | |
NXOpen::CAE::PointSelectionRecipe * | CreatePointRecipe (const NXString &name, NXOpen::Point *point, double tolerance) |
Creates a Point based Single Node Selection Recipe. More... | |
NXOpen::CAE::PointSelectionRecipe * | CreatePointRecipe (const char *name, NXOpen::Point *point, double tolerance) |
Creates a Point based Single Node Selection Recipe. More... | |
NXOpen::CAE::SingleLabelSelectionRecipe * | CreateSingleLabelRecipe (const NXString &name, int nodeLabel) |
Creates a Single Node Label Selection Recipe. More... | |
NXOpen::CAE::SingleLabelSelectionRecipe * | CreateSingleLabelRecipe (const char *name, int nodeLabel) |
Creates a Single Node Label Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateSphereBoundingVolumeRecipe (const NXString &name, NXOpen::Point *centerPoint, NXOpen::Expression *diameter, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
NXOpen::CAE::BoundingVolumeSelectionRecipe * | CreateSphereBoundingVolumeRecipe (const char *name, NXOpen::Point *centerPoint, NXOpen::Expression *diameter, const std::vector< NXOpen::CAE::CaeSetGroupFilterType > &entityTypes) |
Create a Bounding Volume Selection Recipe. More... | |
void | Delete (const std::vector< NXOpen::CAE::SelectionRecipe * > &recipes) |
Delete a list of selection recipes Created in NX12.0.0. More... | |
iterator | end () |
Returns an iterator addressing one past the last element. More... | |
NXOpen::CAE::SelectionRecipe * | FindObject (const NXString &journalIdentifier) |
Finds the NXOpen::CAE::SelectionRecipe with the given identifier as recorded in a journal. More... | |
NXOpen::CAE::SelectionRecipe * | FindObject (const char *journalIdentifier) |
Finds the NXOpen::CAE::SelectionRecipe with the given identifier as recorded in a journal. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Provides methods for managing Selection Recipes NXOpen::CAE::SelectionRecipe.
To obtain an instance of this class, refer to NXOpen::CAE::CaePart
Created in NX12.0.0.
iterator NXOpen::CAE::SelectionRecipeCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::CAE::SelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::Copy | ( | NXOpen::CAE::SelectionRecipe * | recipeToCopy, |
const NXString & | name | ||
) |
Copies a Selection Recipe with all attributes and add it to the collection.
This method gives proper unique name to the created Selection Recipe.
recipeToCopy | recipetocopy |
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
NXOpen::CAE::SelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::Copy | ( | NXOpen::CAE::SelectionRecipe * | recipeToCopy, |
const char * | name | ||
) |
Copies a Selection Recipe with all attributes and add it to the collection.
This method gives proper unique name to the created Selection Recipe.
recipeToCopy | recipetocopy |
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
NXOpen::CAE::AttributeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateAttributeRecipe | ( | const NXString & | name, |
NXOpen::CAE::CaeSetGroupFilterType | entityType, | ||
bool | resolveRelatedFeEntity, | ||
NXOpen::CAE::CaeSetGroupFilterType | relatedFeEntityType | ||
) |
Creates an Attribute based Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
entityType | The main enitity type to which the recipe resolves to. |
resolveRelatedFeEntity | Resolve to FE entity type related to main entity type. |
relatedFeEntityType | The FE enitity type related to the main entity type. Recipe will only resolve to the FE entity type, not the main entity type. |
NXOpen::CAE::AttributeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateAttributeRecipe | ( | const char * | name, |
NXOpen::CAE::CaeSetGroupFilterType | entityType, | ||
bool | resolveRelatedFeEntity, | ||
NXOpen::CAE::CaeSetGroupFilterType | relatedFeEntityType | ||
) |
Creates an Attribute based Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
entityType | The main enitity type to which the recipe resolves to. |
resolveRelatedFeEntity | Resolve to FE entity type related to main entity type. |
relatedFeEntityType | The FE enitity type related to the main entity type. Recipe will only resolve to the FE entity type, not the main entity type. |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateBoxBoundingVolumeRecipe | ( | const NXString & | name, |
NXOpen::CoordinateSystem * | centerCsys, | ||
NXOpen::Expression * | length, | ||
NXOpen::Expression * | width, | ||
NXOpen::Expression * | height, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerCsys | centercsys |
length | length |
width | width |
height | height |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateBoxBoundingVolumeRecipe | ( | const char * | name, |
NXOpen::CoordinateSystem * | centerCsys, | ||
NXOpen::Expression * | length, | ||
NXOpen::Expression * | width, | ||
NXOpen::Expression * | height, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerCsys | centercsys |
length | length |
width | width |
height | height |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateBoxBoundingVolumeRecipe | ( | const NXString & | name, |
NXOpen::Point * | centerPoint, | ||
NXOpen::Point * | targetPoint, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerPoint | centerpoint |
targetPoint | targetpoint |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateBoxBoundingVolumeRecipe | ( | const char * | name, |
NXOpen::Point * | centerPoint, | ||
NXOpen::Point * | targetPoint, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerPoint | centerpoint |
targetPoint | targetpoint |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::CoordinateSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCoordinateRecipe | ( | const NXString & | name, |
const NXOpen::Point3d & | coordinates, | ||
double | tolerance | ||
) |
Creates a Coordinate based Single Node Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
coordinates | The coordinates to be used in the search. |
tolerance | The search tolerance. |
NXOpen::CAE::CoordinateSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCoordinateRecipe | ( | const char * | name, |
const NXOpen::Point3d & | coordinates, | ||
double | tolerance | ||
) |
Creates a Coordinate based Single Node Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
coordinates | The coordinates to be used in the search. |
tolerance | The search tolerance. |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCylinderBoundingVolumeRecipe | ( | const NXString & | name, |
NXOpen::CoordinateSystem * | centerCsys, | ||
NXOpen::Expression * | diameter, | ||
NXOpen::Expression * | cylinderHeight, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerCsys | centercsys |
diameter | diameter |
cylinderHeight | cylinderheight |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCylinderBoundingVolumeRecipe | ( | const char * | name, |
NXOpen::CoordinateSystem * | centerCsys, | ||
NXOpen::Expression * | diameter, | ||
NXOpen::Expression * | cylinderHeight, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerCsys | centercsys |
diameter | diameter |
cylinderHeight | cylinderheight |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCylinderBoundingVolumeRecipe | ( | const NXString & | name, |
NXOpen::Expression * | diameter, | ||
NXOpen::Point * | baseCenter, | ||
NXOpen::Point * | topCenter, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
diameter | diameter |
baseCenter | basecenter |
topCenter | topcenter |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateCylinderBoundingVolumeRecipe | ( | const char * | name, |
NXOpen::Expression * | diameter, | ||
NXOpen::Point * | baseCenter, | ||
NXOpen::Point * | topCenter, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
diameter | diameter |
baseCenter | basecenter |
topCenter | topcenter |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::LabelRangeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateLabelRangeRecipe | ( | const NXString & | name, |
const std::vector< int > & | singleLabels, | ||
const std::vector< int > & | startLabels, | ||
const std::vector< int > & | endLabels, | ||
const std::vector< int > & | increments, | ||
NXOpen::CAE::CaeSetGroupFilterType | entityType | ||
) |
Creates a Label Range Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
singleLabels | singlelabels |
startLabels | startlabels |
endLabels | endlabels |
increments | increments |
entityType | entitytype |
NXOpen::CAE::LabelRangeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateLabelRangeRecipe | ( | const char * | name, |
const std::vector< int > & | singleLabels, | ||
const std::vector< int > & | startLabels, | ||
const std::vector< int > & | endLabels, | ||
const std::vector< int > & | increments, | ||
NXOpen::CAE::CaeSetGroupFilterType | entityType | ||
) |
Creates a Label Range Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
singleLabels | singlelabels |
startLabels | startlabels |
endLabels | endlabels |
increments | increments |
entityType | entitytype |
NXOpen::CAE::PointSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreatePointRecipe | ( | const NXString & | name, |
NXOpen::Point * | point, | ||
double | tolerance | ||
) |
Creates a Point based Single Node Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
point | The point whom coordinates will be used in the search. |
tolerance | The search tolerance. |
NXOpen::CAE::PointSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreatePointRecipe | ( | const char * | name, |
NXOpen::Point * | point, | ||
double | tolerance | ||
) |
Creates a Point based Single Node Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
point | The point whom coordinates will be used in the search. |
tolerance | The search tolerance. |
NXOpen::CAE::SingleLabelSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateSingleLabelRecipe | ( | const NXString & | name, |
int | nodeLabel | ||
) |
Creates a Single Node Label Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
nodeLabel | The label of the node to which the recipe resolves to. |
NXOpen::CAE::SingleLabelSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateSingleLabelRecipe | ( | const char * | name, |
int | nodeLabel | ||
) |
Creates a Single Node Label Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
nodeLabel | The label of the node to which the recipe resolves to. |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateSphereBoundingVolumeRecipe | ( | const NXString & | name, |
NXOpen::Point * | centerPoint, | ||
NXOpen::Expression * | diameter, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerPoint | centerpoint |
diameter | diameter |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
NXOpen::CAE::BoundingVolumeSelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::CreateSphereBoundingVolumeRecipe | ( | const char * | name, |
NXOpen::Point * | centerPoint, | ||
NXOpen::Expression * | diameter, | ||
const std::vector< NXOpen::CAE::CaeSetGroupFilterType > & | entityTypes | ||
) |
Create a Bounding Volume Selection Recipe.
name | Name of the selection recipe. If NULL, then a valid unique name will be generated. |
centerPoint | centerpoint |
diameter | diameter |
entityTypes | Entity types to which this recipe resolves to. If NULL default will be Nodes |
void NXOpen::CAE::SelectionRecipeCollection::Delete | ( | const std::vector< NXOpen::CAE::SelectionRecipe * > & | recipes | ) |
Delete a list of selection recipes
Created in NX12.0.0.
License requirements : nx_masterfem ("Finite Element Modeling")
recipes | The recipes to be deleted |
iterator NXOpen::CAE::SelectionRecipeCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::CAE::SelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the NXOpen::CAE::SelectionRecipe with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier of the Set you want |
NXOpen::CAE::SelectionRecipe* NXOpen::CAE::SelectionRecipeCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the NXOpen::CAE::SelectionRecipe with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier of the Set you want |
tag_t NXOpen::CAE::SelectionRecipeCollection::Tag | ( | ) | const |
Returns the tag of this object.