NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::PartFamily::InstanceSelectionCriteria Class Reference

Represents the selection criteria of a part family instance
Use Assemblies::Component::CreateEmptyPartFamilyInstanceSelectionCriteria to get an instance of this class. More...

Inheritance diagram for NXOpen::PartFamily::InstanceSelectionCriteria:
NXOpen::TaggedObject

Public Member Functions

NXOpen::PartFamily::TemplateFamily ()
 Returns the PartFamily::Template that corresponds to this criteria object
Created in NX9.0.0.
 
void GetCriteriaStrings (std::vector< NXString > &criteriaStringArray)
 Obtains the criteria strings associated with this selection criteria.
 
NXOpen::PartFamily::InstanceInstance ()
 Returns the PartFamily::Instance of criteria.
 
bool IsValidPartFamilyInstanceSelectionCriteria ()
 Returns true if the selection criteria evaluates to a valid part family instance, false otherwise.
 
void SetPartFamilyInstanceSelectionCriteria (const std::vector< NXOpen::PartFamily::FamilyAttribute * > &attributes, std::vector< NXString > &criteriaStringArray)
 Sets criteria on PartFamily::InstanceSelectionCriteria .
 
void SetPartFamilyInstanceSelectionCriteria (const NXString &memberName)
 Sets criteria on PartFamily::InstanceSelectionCriteria .
 
void SetPartFamilyInstanceSelectionCriteria (const char *memberName)
 Sets criteria on PartFamily::InstanceSelectionCriteria .
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t GetTag () const
 
<b>Deprecated</b>:<br>

   Use Tag instead.

 
tag_t Tag () const
 Returns the tag of this object.
 

Detailed Description

Represents the selection criteria of a part family instance
Use Assemblies::Component::CreateEmptyPartFamilyInstanceSelectionCriteria to get an instance of this class.



Created in NX9.0.0.

Member Function Documentation

NXOpen::PartFamily::Template* NXOpen::PartFamily::InstanceSelectionCriteria::Family ( )

Returns the PartFamily::Template that corresponds to this criteria object
Created in NX9.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

void NXOpen::PartFamily::InstanceSelectionCriteria::GetCriteriaStrings ( std::vector< NXString > &  criteriaStringArray)

Obtains the criteria strings associated with this selection criteria.

       Output "criteriaStringArray" would be an array of TEXT_pc_t with each element of the form for e.g. "p7 > 100",
       where "p7" is the attribute, "100" the value and ">" the expression connecting both 


Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
criteriaStringArraycriteriastringarray
NXOpen::PartFamily::Instance* NXOpen::PartFamily::InstanceSelectionCriteria::Instance ( )

Returns the PartFamily::Instance of criteria.


Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

bool NXOpen::PartFamily::InstanceSelectionCriteria::IsValidPartFamilyInstanceSelectionCriteria ( )

Returns true if the selection criteria evaluates to a valid part family instance, false otherwise.

Returns

Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")
void NXOpen::PartFamily::InstanceSelectionCriteria::SetPartFamilyInstanceSelectionCriteria ( const std::vector< NXOpen::PartFamily::FamilyAttribute * > &  attributes,
std::vector< NXString > &  criteriaStringArray 
)

Sets criteria on PartFamily::InstanceSelectionCriteria .

       This criteria can be used while adding a part family member to assembly. 
       Number of elements in "attributes" and "criteriaStringArray" should always match the "attributeCount".
       "criteriaStringArray" has to be an array of TEXT_pc_t with each element of the form for e.g. "p7 >= 100",
       where "p7" is the attribute, "100" the value and ">=" the expression connecting both 


Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
attributesattributes
criteriaStringArraycriteriastringarray
void NXOpen::PartFamily::InstanceSelectionCriteria::SetPartFamilyInstanceSelectionCriteria ( const NXString memberName)

Sets criteria on PartFamily::InstanceSelectionCriteria .

       This routine can be used when user wants to add a part family member to assembly directly using 
       the "memberName" instead of using attribute criteria. This "memberName" will be ignored in case 
       the InstenaceSelectionCriteria already has any valid attribute criteria or if the user adds a valid 
       attribute criteria later on.
       User could obtain valid "memberName" using @link PartFamily::Template::GetMembers PartFamily::Template::GetMembers@endlink .


Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
memberNamemembername
void NXOpen::PartFamily::InstanceSelectionCriteria::SetPartFamilyInstanceSelectionCriteria ( const char *  memberName)

Sets criteria on PartFamily::InstanceSelectionCriteria .

       This routine can be used when user wants to add a part family member to assembly directly using 
       the "memberName" instead of using attribute criteria. This "memberName" will be ignored in case 
       the InstenaceSelectionCriteria already has any valid attribute criteria or if the user adds a valid 
       attribute criteria later on.
       User could obtain valid "memberName" using @link PartFamily::Template::GetMembers PartFamily::Template::GetMembers@endlink .


Created in NX9.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Parameters
memberNamemembername

The documentation for this class was generated from the following file:
Copyright 2013 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.