PartOperationValidationPropertiesBuilder Class¶
-
class
NXOpen.PDM.
PartOperationValidationPropertiesBuilder
¶ Bases:
NXOpen.AttributePropertiesBuilder
Represents an
NXOpen.PDM.PartOperationValidationPropertiesBuilder
to be used for overriding the default validation parameters for a part in import operation.To create a new instance of this class, use
NXOpen.PDM.PdmSession.CreatePartOperationValidationPropertiesBuilder()
Default values.
Property Value BooleanValue False DataType String IntegerValue 0 NumberValue 0 ObjectPicker (deprecated) Object New in version NX10.0.0.
Properties¶
Property | Description |
---|---|
ArrayIndex | Returns or sets the array index. |
BooleanValue | Returns or sets the boolean value. |
Category | Returns or sets the category. |
DataType | Returns or sets the data type, which determines the type of attribute to be created. |
DateValue | Returns the date value. |
Expression | Returns or sets the expression referenced from this attribute. |
IntegerValue | Returns or sets the integer value. |
IsArray | Returns or sets the ‘is array’ flag is set for attributes that have more than one value. |
IsReferenceType | Returns or sets the ‘is reference type’ flag is set for attributes that are linked to system expressions. |
LockOnSave | Returns or sets the ‘LockOnSave’ flag is set for attributes that will be locked once the part is saved (and reloaded) |
NumberValue | Returns or sets the number value. |
ObjectPicker | Returns or sets the object picker. |
SelectedObjects | Returns the selected object(s) list. |
StringValue | Returns or sets the string value. |
Tag | Returns the Tag for this object. |
Title | Returns or sets the attribute title. |
Units | Returns or sets the units associated with an attribute of type Number. |
ValueAlias | Returns or sets the value alias. |
Methods¶
Method | Description |
---|---|
ApplyUnits | Apply the units currently set on the builder to any objects that have a value set for the current attribute. |
Commit | Commits any edits that have been applied to the builder. |
CreateAttribute | Create the attribute from the data set in the builder. |
Delete | Delete the attribute from the given object. |
DeleteArray | Delete the attribute array from the given object. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetObject | Returns the object currently being edited by this builder. |
GetValidationRuleSetBrowseOption | Gets the validation rule set browse option |
GetValidationRuleSetFile | Gets the validation rule set file |
GetValidationTreatOutdatedAsPass | Gets the validation treat outdated as pass flag |
GetValidationTreatWarningAsPass | Gets the validation treat warning as pass flag |
SetAttributeObjects | Sets the array of objects that have this attribute |
SetValidationRuleSetBrowseOption | Sets the validation rule set browse option |
SetValidationRuleSetFile | Sets the validation rule set file |
SetValidationTreatOutdatedAsPass | Sets the validation treat outdated as pass flag |
SetValidationTreatWarningAsPass | Sets the validation treat warning as pass flag |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Method Detail¶
GetValidationRuleSetBrowseOption¶
-
PartOperationValidationPropertiesBuilder.
GetValidationRuleSetBrowseOption
¶ Gets the validation rule set browse option
Signature
GetValidationRuleSetBrowseOption()
Returns: Return type: NXOpen.PDM.PartOperationImportBuilderValidationRuleSetFileBrowseOption
New in version NX10.0.0.
License requirements: None.
GetValidationRuleSetFile¶
-
PartOperationValidationPropertiesBuilder.
GetValidationRuleSetFile
¶ Gets the validation rule set file
Signature
GetValidationRuleSetFile()
Returns: Return type: str New in version NX10.0.0.
License requirements: None.
GetValidationTreatOutdatedAsPass¶
-
PartOperationValidationPropertiesBuilder.
GetValidationTreatOutdatedAsPass
¶ Gets the validation treat outdated as pass flag
Signature
GetValidationTreatOutdatedAsPass()
Returns: Return type: bool New in version NX10.0.0.
License requirements: None.
GetValidationTreatWarningAsPass¶
-
PartOperationValidationPropertiesBuilder.
GetValidationTreatWarningAsPass
¶ Gets the validation treat warning as pass flag
Signature
GetValidationTreatWarningAsPass()
Returns: Return type: bool New in version NX10.0.0.
License requirements: None.
SetValidationRuleSetBrowseOption¶
-
PartOperationValidationPropertiesBuilder.
SetValidationRuleSetBrowseOption
¶ Sets the validation rule set browse option
Signature
SetValidationRuleSetBrowseOption(validationRuleSetBrowseOption)
Parameters: validationRuleSetBrowseOption ( NXOpen.PDM.PartOperationImportBuilderValidationRuleSetFileBrowseOption
) –New in version NX10.0.0.
License requirements: assemblies (“ASSEMBLIES MODULE”)
SetValidationRuleSetFile¶
-
PartOperationValidationPropertiesBuilder.
SetValidationRuleSetFile
¶ Sets the validation rule set file
Signature
SetValidationRuleSetFile(filename)
Parameters: filename (str) – New in version NX10.0.0.
License requirements: assemblies (“ASSEMBLIES MODULE”)
SetValidationTreatOutdatedAsPass¶
-
PartOperationValidationPropertiesBuilder.
SetValidationTreatOutdatedAsPass
¶ Sets the validation treat outdated as pass flag
Signature
SetValidationTreatOutdatedAsPass(validationTreatOutdatedAsPass)
Parameters: validationTreatOutdatedAsPass (bool) – New in version NX10.0.0.
License requirements: assemblies (“ASSEMBLIES MODULE”)
SetValidationTreatWarningAsPass¶
-
PartOperationValidationPropertiesBuilder.
SetValidationTreatWarningAsPass
¶ Sets the validation treat warning as pass flag
Signature
SetValidationTreatWarningAsPass(validationTreatWarningAsPass)
Parameters: validationTreatWarningAsPass (bool) – New in version NX10.0.0.
License requirements: assemblies (“ASSEMBLIES MODULE”)
Validate¶
-
PartOperationValidationPropertiesBuilder.
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.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.