ValidatorOptions Class¶
-
class
NXOpen.Validate.ValidatorOptions¶ Bases:
NXOpen.TaggedObject,NXOpen.GeometricUtilities.IComponentBuilderContains information about run options of check-mate checking process.
New in version NX7.5.0.
Properties¶
| Property | Description |
|---|---|
| AutoDisplayResults | Returns or sets the configuration of auto display results |
| ExcludeNonOwnerParts | Returns or sets the configuration of excluding parts not owned by the user. |
| ExcludeReadonlyParts | Returns or sets the configuration of excluding read-only parts. |
| GenerateCheckFlag | Returns or sets the configuration of generating check flag if checking results are PASS |
| GenerateLogFile | Returns or sets the configuration of generating log file after checking. |
| LogFileDirectory | Returns or sets the configuration of log file directory where the log file will be saved. |
| LogFileMode | Returns or sets the configuration of log file mode how to generate the log files. |
| ResultsAutoUpdate | Returns or sets the configuration of results auto update when work part change |
| SavePartFile | Returns or sets the configuration of saving part file after checking finished. |
| SaveResultInPart | Returns or sets the configuration of saving check results into part file. |
| SaveResultInTeamcenter | Returns or sets the configuration of saving check results into Teamcenter. |
| SkipChecking | Returns or sets the configuration of skip checking based on result up-to-date status. |
| SkipCheckingDontLoadPart | Returns or sets the configuration of skipping checking without loading parts |
| SkipOverriddenResultOption | Returns or sets the configuration of skip checking based on result overriden state. |
| StopOnError | Returns or sets the configuration of stopping checking process on error status. |
| StopOnWarning | Returns or sets the configuration of stopping checking on warning status. |
| Tag | Returns the Tag for this object. |
| TreatWarningAsFail | Returns or sets the configuration of treating warning status as fail status. |
Methods¶
| Method | Description |
|---|---|
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| ValidatorOptionsLogModeTypes Enumeration | The log mode type. |
| ValidatorOptionsResultsDisplayModeTypes Enumeration | The results display mode type. |
| ValidatorOptionsSaveModeTypes Enumeration | The save mode type. |
Property Detail¶
AutoDisplayResults¶
-
ValidatorOptions.AutoDisplayResults¶ Returns or sets the configuration of auto display results
-------------------------------------Getter Method
Signature
AutoDisplayResultsReturns: Return type: NXOpen.Validate.ValidatorOptionsResultsDisplayModeTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutoDisplayResultsParameters: displayResults ( NXOpen.Validate.ValidatorOptionsResultsDisplayModeTypes) –New in version NX7.5.0.
License requirements: None.
ExcludeNonOwnerParts¶
-
ValidatorOptions.ExcludeNonOwnerParts¶ Returns or sets the configuration of excluding parts not owned by the user.
-------------------------------------Getter Method
Signature
ExcludeNonOwnerPartsReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ExcludeNonOwnerPartsParameters: excludeNonOwnerParts (bool) – New in version NX7.5.0.
License requirements: None.
ExcludeReadonlyParts¶
-
ValidatorOptions.ExcludeReadonlyParts¶ Returns or sets the configuration of excluding read-only parts.
-------------------------------------Getter Method
Signature
ExcludeReadonlyPartsReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ExcludeReadonlyPartsParameters: excludeReadonlyParts (bool) – checksum of parameter New in version NX7.5.0.
License requirements: None.
GenerateCheckFlag¶
-
ValidatorOptions.GenerateCheckFlag¶ Returns or sets the configuration of generating check flag if checking results are PASS
-------------------------------------Getter Method
Signature
GenerateCheckFlagReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GenerateCheckFlagParameters: generateCheckFlag (bool) – New in version NX7.5.0.
License requirements: None.
GenerateLogFile¶
-
ValidatorOptions.GenerateLogFile¶ Returns or sets the configuration of generating log file after checking.
If True, log file will be generated.
-------------------------------------Getter Method
Signature
GenerateLogFileReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GenerateLogFileParameters: generateLogFile (bool) – New in version NX7.5.0.
License requirements: None.
LogFileDirectory¶
-
ValidatorOptions.LogFileDirectory¶ Returns or sets the configuration of log file directory where the log file will be saved.
-------------------------------------Getter Method
Signature
LogFileDirectoryReturns: Return type: str New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LogFileDirectoryParameters: logFileDirectory (str) – New in version NX7.5.0.
License requirements: None.
LogFileMode¶
-
ValidatorOptions.LogFileMode¶ Returns or sets the configuration of log file mode how to generate the log files.
-------------------------------------Getter Method
Signature
LogFileModeReturns: Return type: NXOpen.Validate.ValidatorOptionsLogModeTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LogFileModeParameters: logFileMode ( NXOpen.Validate.ValidatorOptionsLogModeTypes) –New in version NX7.5.0.
License requirements: None.
ResultsAutoUpdate¶
-
ValidatorOptions.ResultsAutoUpdate¶ Returns or sets the configuration of results auto update when work part change
-------------------------------------Getter Method
Signature
ResultsAutoUpdateReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ResultsAutoUpdateParameters: autoUpdate (bool) – New in version NX7.5.0.
License requirements: None.
SavePartFile¶
-
ValidatorOptions.SavePartFile¶ Returns or sets the configuration of saving part file after checking finished.
If True, part file will be saved.
-------------------------------------Getter Method
Signature
SavePartFileReturns: Return type: NXOpen.Validate.ValidatorOptionsSaveModeTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SavePartFileParameters: savePartFile ( NXOpen.Validate.ValidatorOptionsSaveModeTypes) –New in version NX7.5.0.
License requirements: None.
SaveResultInPart¶
-
ValidatorOptions.SaveResultInPart¶ Returns or sets the configuration of saving check results into part file.
If True, results will be saved in part file after checking finished.
-------------------------------------Getter Method
Signature
SaveResultInPartReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SaveResultInPartParameters: saveResultInPart (bool) – checksum of parameter New in version NX7.5.0.
License requirements: None.
SaveResultInTeamcenter¶
-
ValidatorOptions.SaveResultInTeamcenter¶ Returns or sets the configuration of saving check results into Teamcenter.
If true, results will be saved into Teamcenter. This parameter is for NX Manager mode only
-------------------------------------Getter Method
Signature
SaveResultInTeamcenterReturns: Return type: NXOpen.Validate.ValidatorOptionsSaveModeTypesNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SaveResultInTeamcenterParameters: saveResultInTeamcenter ( NXOpen.Validate.ValidatorOptionsSaveModeTypes) –New in version NX7.5.0.
License requirements: None.
SkipChecking¶
-
ValidatorOptions.SkipChecking¶ Returns or sets the configuration of skip checking based on result up-to-date status.
If True, checking will be skipped if the results are PASS and up-to-date.
-------------------------------------Getter Method
Signature
SkipCheckingReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SkipCheckingParameters: skipChecking (bool) – New in version NX7.5.0.
License requirements: None.
SkipCheckingDontLoadPart¶
-
ValidatorOptions.SkipCheckingDontLoadPart¶ Returns or sets the configuration of skipping checking without loading parts
-------------------------------------Getter Method
Signature
SkipCheckingDontLoadPartReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SkipCheckingDontLoadPartParameters: skipCheckingDontLoadPart (bool) – New in version NX7.5.0.
License requirements: None.
SkipOverriddenResultOption¶
-
ValidatorOptions.SkipOverriddenResultOption¶ Returns or sets the configuration of skip checking based on result overriden state.
If True, checking will be skipped if the results are overridden.
-------------------------------------Getter Method
Signature
SkipOverriddenResultOptionReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SkipOverriddenResultOptionParameters: skipOverriddenResult (bool) – New in version NX8.5.0.
License requirements: None.
StopOnError¶
-
ValidatorOptions.StopOnError¶ Returns or sets the configuration of stopping checking process on error status.
If True, stop checking when there is checker returned error status.
-------------------------------------Getter Method
Signature
StopOnErrorReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StopOnErrorParameters: stopOnError (bool) – checksum of parameter New in version NX7.5.0.
License requirements: None.
StopOnWarning¶
-
ValidatorOptions.StopOnWarning¶ Returns or sets the configuration of stopping checking on warning status.
If True, stop checking when there is checker returned warning status.
-------------------------------------Getter Method
Signature
StopOnWarningReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StopOnWarningParameters: stopOnWarning (bool) – New in version NX7.5.0.
License requirements: None.
TreatWarningAsFail¶
-
ValidatorOptions.TreatWarningAsFail¶ Returns or sets the configuration of treating warning status as fail status.
-------------------------------------Getter Method
Signature
TreatWarningAsFailReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TreatWarningAsFailParameters: treatWarningAsFail (bool) – New in version NX7.5.0.
License requirements: None.
Method Detail¶
Validate¶
-
ValidatorOptions.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.