NXOpen .NET Reference
12.0.0
|
Represents a builder class that performs variant rule configuration. More...
Public Member Functions | |
unsafe string[] | AskAvailableVariantRules (string contextId, string revId) |
Returns the saved variant rules for the give context ID The input contextId: In case of default domain: it should be Teamcenter item ID. More... | |
unsafe void | GetVariantRuleTableInformation (out string[] contextIds, out string[] variantRules) |
Returns selected variant rules stored inside NXOpen.PDM.VariantConfigurationBuilder The input contextIds comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID. More... | |
unsafe void | RemoveVariantRule (string contextId, string variantRule) |
Removes the given variant rule from NXOpen.PDM.VariantConfigurationBuilder if applicable The input contextId comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID. More... | |
unsafe void | AddMultipleVariantRules (string[] contextIds, string[] variantRules) |
Adds given variant rules in case of multiple variant rules to NXOpen.PDM.VariantConfigurationBuilder The input contextIds comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID. More... | |
unsafe bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Represents a builder class that performs variant rule configuration.
Created in NX9.0.0
unsafe void NXOpen.PDM.VariantConfigurationBuilder.AddMultipleVariantRules | ( | string[] | contextIds, |
string[] | variantRules | ||
) |
Adds given variant rules in case of multiple variant rules to NXOpen.PDM.VariantConfigurationBuilder The input contextIds comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID.
In case of non-default domain: contextId should contain the multifield keys. e.g. %MFK#%,=item_id=001, object_type=SupplierPart, supplier_code=x
Created in NX9.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
contextIds | context id comprising of multifield key and itemRev_id in which variant rule resides |
variantRules | variant rules of corresponding context ids to be added |
unsafe string [] NXOpen.PDM.VariantConfigurationBuilder.AskAvailableVariantRules | ( | string | contextId, |
string | revId | ||
) |
Returns the saved variant rules for the give context ID The input contextId: In case of default domain: it should be Teamcenter item ID.
In case of non-default domain: it should be the multifield key. e.g. %MFK#%,=item_id=001, object_type=SupplierPart, supplier_code=x
Created in NX9.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
contextId | multifield key in case of product assembly or collaborative design id |
revId | itemRev_id in case of product assembly |
unsafe void NXOpen.PDM.VariantConfigurationBuilder.GetVariantRuleTableInformation | ( | out string[] | contextIds, |
out string[] | variantRules | ||
) |
Returns selected variant rules stored inside NXOpen.PDM.VariantConfigurationBuilder The input contextIds comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID.
In case of non-default domain: contextId should contain the multifield keys. e.g. %MFK#%,=item_id=001, object_type=SupplierPart, supplier_code=x
Created in NX9.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
contextIds | array of contextIds comprising of multifield key and itemRev_id from which variant rules are selected |
variantRules | array of selected variant rules |
unsafe void NXOpen.PDM.VariantConfigurationBuilder.RemoveVariantRule | ( | string | contextId, |
string | variantRule | ||
) |
Removes the given variant rule from NXOpen.PDM.VariantConfigurationBuilder if applicable The input contextId comprising of multifield key and itemRev_id: In case of default domain: contextId should contain Teamcenter item ID.
In case of non-default domain: contextId should contain the multifield keys. e.g. %MFK#%,=item_id=001, object_type=SupplierPart, supplier_code=x
Created in NX9.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
contextId | context id comprising of multifield key and itemRev_id in which variant rule resides |
variantRule | variant rule to be removed |
unsafe bool NXOpen.PDM.VariantConfigurationBuilder.Validate | ( | ) |
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.
Created in NX3.0.1
License requirements: None.
Implements NXOpen.GeometricUtilities.IComponentBuilder.