ExpressionBlock Class¶
-
class
NXOpen.BlockStyler.
ExpressionBlock
¶ Bases:
NXOpen.BlockStyler.UIBlock
Represents an Expression block
New in version NX8.5.0.
Properties¶
Property | Description |
---|---|
AdaptiveScaleLimits | Returns or sets the AdaptiveScaleLimits. |
BalloonTooltipImage | Returns or sets the BalloonTooltipImage |
BalloonTooltipLayoutAsString | Returns or sets the BalloonTooltipLayout as string |
BalloonTooltipText | Returns or sets the BalloonTooltipText |
DimensionalityAsString | Returns or sets the Dimensionality as string. |
Enable | Returns or sets the Enable. |
Expanded | Returns or sets the Expanded |
ExpressionObject | Returns or sets the ExpressionObject |
Formula | Returns or sets the Formula for the expression |
Group | Returns or sets the Group |
HasUnitsMenu | Returns or sets the HasUnitsMenu. |
Label | Returns or sets the Label |
LineIncrement | Returns or sets the LineIncrement value. |
MaxInclusive | Returns or sets the MaxInclusive |
MaximumValue | Returns or sets the MaximumValue |
MinInclusive | Returns or sets the MinInclusive |
MinimumValue | Returns or sets the MinimumValue |
Name | Returns the name of the block or BlockID |
PageIncrement | Returns or sets the PageIncrement value. |
RetainValue | Returns or sets the RetainValue. |
Show | Returns or sets the Visibility of block. |
Tag | Returns the Tag for this object. |
Type | Returns the type of block |
Units | Returns or sets the Units for the expression |
Value | Returns or sets the Value. |
WithScale | Returns or sets the WithScale. |
Methods¶
Method | Description |
---|---|
Focus | Focuses on the block. |
GetBalloonTooltipLayoutMembers | Gets the BalloonTooltipLayout members @return Value to get from the property. |
GetDimensionalityMembers | Gets the members of Dimensionality enum. |
GetProperties | Returns the properties of the block @return |
Property Detail¶
AdaptiveScaleLimits¶
-
ExpressionBlock.
AdaptiveScaleLimits
¶ Returns or sets the AdaptiveScaleLimits.
If true, indicates that the scale should be adaptive.
-------------------------------------
Getter Method
Signature
AdaptiveScaleLimits()
Returns: Return type: bool New in version NX9.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AdaptiveScaleLimits(scaleLimits)
Parameters: scaleLimits (bool) – New in version NX9.0.0.
License requirements: None.
BalloonTooltipImage¶
-
ExpressionBlock.
BalloonTooltipImage
¶ Returns or sets the BalloonTooltipImage
-------------------------------------
Getter Method
Signature
BalloonTooltipImage()
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
BalloonTooltipImage(imageString)
Parameters: imageString (str) – New in version NX8.5.0.
License requirements: None.
BalloonTooltipLayoutAsString¶
-
ExpressionBlock.
BalloonTooltipLayoutAsString
¶ Returns or sets the BalloonTooltipLayout as string
-------------------------------------
Getter Method
Signature
BalloonTooltipLayoutAsString()
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
BalloonTooltipLayoutAsString(enumString)
Parameters: enumString (str) – New in version NX8.5.0.
License requirements: None.
BalloonTooltipText¶
-
ExpressionBlock.
BalloonTooltipText
¶ Returns or sets the BalloonTooltipText
-------------------------------------
Getter Method
Signature
BalloonTooltipText()
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
BalloonTooltipText(balloonTooltipText)
Parameters: balloonTooltipText (str) – New in version NX8.5.0.
License requirements: None.
DimensionalityAsString¶
-
ExpressionBlock.
DimensionalityAsString
¶ Returns or sets the Dimensionality as string.
It specifies the type of quantity that the expression represents.
-------------------------------------
Getter Method
Signature
DimensionalityAsString()
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DimensionalityAsString(enumString)
Parameters: enumString (str) – New in version NX8.5.0.
License requirements: None.
ExpressionObject¶
-
ExpressionBlock.
ExpressionObject
¶ Returns or sets the ExpressionObject
-------------------------------------
Getter Method
Signature
ExpressionObject()
Returns: Return type: NXOpen.TaggedObject
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ExpressionObject(expressionObject)
Parameters: expressionObject ( NXOpen.TaggedObject
) –New in version NX8.5.0.
License requirements: None.
Formula¶
-
ExpressionBlock.
Formula
¶ Returns or sets the Formula for the expression
-------------------------------------
Getter Method
Signature
Formula()
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Formula(formulaString)
Parameters: formulaString (str) – New in version NX8.5.0.
License requirements: None.
LineIncrement¶
-
ExpressionBlock.
LineIncrement
¶ Returns or sets the LineIncrement value.
Specifies the increment/decrement when the user presses the arrow keys on the keyboard. Only available when PresentationStyle is set to Scale or ScaleKeyin.
-------------------------------------
Getter Method
Signature
LineIncrement()
Returns: Return type: float New in version NX9.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
LineIncrement(lineIncrement)
Parameters: lineIncrement (float) – New in version NX9.0.0.
License requirements: None.
MaxInclusive¶
-
ExpressionBlock.
MaxInclusive
¶ Returns or sets the MaxInclusive
-------------------------------------
Getter Method
Signature
MaxInclusive()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MaxInclusive(maxInclusive)
Parameters: maxInclusive (bool) – New in version NX8.5.0.
License requirements: None.
MaximumValue¶
-
ExpressionBlock.
MaximumValue
¶ Returns or sets the MaximumValue
-------------------------------------
Getter Method
Signature
MaximumValue()
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MaximumValue(maxValue)
Parameters: maxValue (float) – New in version NX8.5.0.
License requirements: None.
MinInclusive¶
-
ExpressionBlock.
MinInclusive
¶ Returns or sets the MinInclusive
-------------------------------------
Getter Method
Signature
MinInclusive()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MinInclusive(minInclusive)
Parameters: minInclusive (bool) – New in version NX8.5.0.
License requirements: None.
MinimumValue¶
-
ExpressionBlock.
MinimumValue
¶ Returns or sets the MinimumValue
-------------------------------------
Getter Method
Signature
MinimumValue()
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
MinimumValue(minValue)
Parameters: minValue (float) – New in version NX8.5.0.
License requirements: None.
PageIncrement¶
-
ExpressionBlock.
PageIncrement
¶ Returns or sets the PageIncrement value.
Specifies the increment/decrement when the user presses the Page Up or Page Down keys on the keyboard. Only available when PresentationStyle is set to Scale or ScaleKeyin.
-------------------------------------
Getter Method
Signature
PageIncrement()
Returns: Return type: float New in version NX9.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
PageIncrement(pageIncrement)
Parameters: pageIncrement (float) – New in version NX9.0.0.
License requirements: None.
RetainValue¶
-
ExpressionBlock.
RetainValue
¶ Returns or sets the RetainValue.
If true, indicates that the values in the block would be stored in dialog memory upon OK, Apply or Close.
-------------------------------------
Getter Method
Signature
RetainValue()
Returns: Return type: bool New in version NX10.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
RetainValue(retain)
Parameters: retain (bool) – New in version NX10.0.0.
License requirements: None.
Units¶
-
ExpressionBlock.
Units
¶ Returns or sets the Units for the expression
-------------------------------------
Getter Method
Signature
Units()
Returns: Return type: NXOpen.TaggedObject
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Units(units)
Parameters: units ( NXOpen.TaggedObject
) –New in version NX8.5.0.
License requirements: None.
Value¶
-
ExpressionBlock.
Value
¶ Returns or sets the Value.
-------------------------------------
Getter Method
Signature
Value()
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Value(expressionValue)
Parameters: expressionValue (float) – New in version NX8.5.0.
License requirements: None.
WithScale¶
-
ExpressionBlock.
WithScale
¶ Returns or sets the WithScale.
If true, the slider bar is shown.
-------------------------------------
Getter Method
Signature
WithScale()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
WithScale(withScale)
Parameters: withScale (bool) – New in version NX8.5.0.
License requirements: None.