EnumTest Class — NXOpen Python API Reference 12.0.0 documentation

# EnumTest Class

class `NXOpen.GeometricUtilities.``EnumTest`

  Bases: `NXOpen.Builder`

  Represents a `GeometricUtilities.EnumTest`

  New in version NX5.0.0.

# Properties

Property | Description
--- | ---
AnimalsIconOnly | Returns or sets the animals icon only
CarsIconTextMenu | Returns or sets the cars icon text menu
ConstraintsPalette | Returns or sets the constraints palette
CurvesPalette | Returns or sets the curves palette
DancesHorizontalRadio | Returns or sets the dances horizontal radio
FruitTextOnly | Returns or sets the fruit text only
Tag | Returns the Tag for this object.
TreesVerticalRadio | Returns or sets the trees vertical radio

# Methods

Method | Description
--- | ---
Commit | Commits any edits that have been applied to the builder.
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.
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.

# Enumerations

EnumTestAnimals Enumeration | Animals are healthy and taste good
EnumTestCars Enumeration | Cars are dangerous to eat and not very tasty
EnumTestConstraints Enumeration | constraints are rather smelly
EnumTestCurves Enumeration | Curves are important
EnumTestDances Enumeration | Daaance, dance the night away
EnumTestFruit Enumeration | Fruit is healthy and tastes good
EnumTestTrees Enumeration | Trees can taste pretty good but have a rather barky texture

# Property Detail

## AnimalsIconOnly

`EnumTest.``AnimalsIconOnly`

  Returns or sets the animals icon only

  `-------------------------------------`

  Getter Method

  Signature `AnimalsIconOnly`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestAnimals`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AnimalsIconOnly`

  Parameters: | animalsIconOnly (`NXOpen.GeometricUtilities.EnumTestAnimals`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## CarsIconTextMenu

`EnumTest.``CarsIconTextMenu`

  Returns or sets the cars icon text menu

  `-------------------------------------`

  Getter Method

  Signature `CarsIconTextMenu`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestCars`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `CarsIconTextMenu`

  Parameters: | carsIconTextMenu (`NXOpen.GeometricUtilities.EnumTestCars`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## ConstraintsPalette

`EnumTest.``ConstraintsPalette`

  Returns or sets the constraints palette

  `-------------------------------------`

  Getter Method

  Signature `ConstraintsPalette`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestConstraints`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `ConstraintsPalette`

  Parameters: | constraintsPalette (`NXOpen.GeometricUtilities.EnumTestConstraints`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## CurvesPalette

`EnumTest.``CurvesPalette`

  Returns or sets the curves palette

  `-------------------------------------`

  Getter Method

  Signature `CurvesPalette`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestCurves`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `CurvesPalette`

  Parameters: | curvesPalette (`NXOpen.GeometricUtilities.EnumTestCurves`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## DancesHorizontalRadio

`EnumTest.``DancesHorizontalRadio`

  Returns or sets the dances horizontal radio

  `-------------------------------------`

  Getter Method

  Signature `DancesHorizontalRadio`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestDances`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `DancesHorizontalRadio`

  Parameters: | dancesHorizontalRadio (`NXOpen.GeometricUtilities.EnumTestDances`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## FruitTextOnly

`EnumTest.``FruitTextOnly`

  Returns or sets the fruit text only

  `-------------------------------------`

  Getter Method

  Signature `FruitTextOnly`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestFruit`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `FruitTextOnly`

  Parameters: | fruitTextOnly (`NXOpen.GeometricUtilities.EnumTestFruit`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

## TreesVerticalRadio

`EnumTest.``TreesVerticalRadio`

  Returns or sets the trees vertical radio

  `-------------------------------------`

  Getter Method

  Signature `TreesVerticalRadio`

  Returns: |
  Return type: | `NXOpen.GeometricUtilities.EnumTestTrees`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TreesVerticalRadio`

  Parameters: | treesVerticalRadio (`NXOpen.GeometricUtilities.EnumTestTrees`) –

  New in version NX5.0.0.

  License requirements: solid_modeling (“SOLIDS MODELING”)

# Method Detail

## Validate

`EnumTest.``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.