NX Open C++ Reference Guide
|
Represents a builder class that performs variant rule configuration. More...
Public Member Functions | |
void | AddMultipleVariantRules (const std::vector< NXString > &contextIds, const std::vector< NXString > &variantRules) |
Adds given variant rules in case of multiple variant rules to PDM::VariantConfigurationBuilder Created in NX9.0.0. | |
std::vector< NXString > | AskAvailableVariantRules (const NXString &contextId, const NXString &revId) |
Returns the saved variant rules for the give context ID. | |
std::vector< NXString > | AskAvailableVariantRules (const char *contextId, const char *revId) |
Returns the saved variant rules for the give context ID. | |
void | GetVariantRuleTableInformation (std::vector< NXString > &contextIds, std::vector< NXString > &variantRules) |
Returns selected variant rules stored inside PDM::VariantConfigurationBuilder Created in NX9.0.0. | |
void | RemoveVariantRule (const NXString &contextId, const NXString &variantRule) |
Removes the given variant rule from PDM::VariantConfigurationBuilder if applicable Created in NX9.0.0. | |
void | RemoveVariantRule (const char *contextId, const char *variantRule) |
Removes the given variant rule from PDM::VariantConfigurationBuilder if applicable Created in NX9.0.0. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a builder class that performs variant rule configuration.
Created in NX9.0.0.
void NXOpen::PDM::VariantConfigurationBuilder::AddMultipleVariantRules | ( | const std::vector< NXString > & | contextIds, |
const std::vector< NXString > & | variantRules | ||
) |
Adds given variant rules in case of multiple variant rules to PDM::VariantConfigurationBuilder
Created in NX9.0.0.
License requirements : nx_4gd_integration ("4th Generation Design")
contextIds | context id comprising of item_id and itemRev_id in which variant rule resides |
variantRules | variant rules of corresponding context ids to be added |
std::vector<NXString> NXOpen::PDM::VariantConfigurationBuilder::AskAvailableVariantRules | ( | const NXString & | contextId, |
const NXString & | revId | ||
) |
Returns the saved variant rules for the give context ID.
contextId | item_id in case of product assembly or collaboritive design id |
revId | itemRev_id in case of product assembly |
std::vector<NXString> NXOpen::PDM::VariantConfigurationBuilder::AskAvailableVariantRules | ( | const char * | contextId, |
const char * | revId | ||
) |
Returns the saved variant rules for the give context ID.
contextId | item_id in case of product assembly or collaboritive design id |
revId | itemRev_id in case of product assembly |
void NXOpen::PDM::VariantConfigurationBuilder::GetVariantRuleTableInformation | ( | std::vector< NXString > & | contextIds, |
std::vector< NXString > & | variantRules | ||
) |
Returns selected variant rules stored inside PDM::VariantConfigurationBuilder
Created in NX9.0.0.
License requirements : nx_4gd_integration ("4th Generation Design")
contextIds | array of context IDs from which variant rules are selected |
variantRules | array of selected variant rules |
void NXOpen::PDM::VariantConfigurationBuilder::RemoveVariantRule | ( | const NXString & | contextId, |
const NXString & | variantRule | ||
) |
Removes the given variant rule from PDM::VariantConfigurationBuilder if applicable
Created in NX9.0.0.
License requirements : nx_4gd_integration ("4th Generation Design")
contextId | context id in which variant rule resides |
variantRule | variant rule to be removed |
void NXOpen::PDM::VariantConfigurationBuilder::RemoveVariantRule | ( | const char * | contextId, |
const char * | variantRule | ||
) |
Removes the given variant rule from PDM::VariantConfigurationBuilder if applicable
Created in NX9.0.0.
License requirements : nx_4gd_integration ("4th Generation Design")
contextId | context id in which variant rule resides |
variantRule | variant rule to be removed |
|
virtual |
Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.
Implements NXOpen::GeometricUtilities::IComponentBuilder.