UIBlock Class

class NXOpen.BlockStyler.UIBlock

Bases: NXOpen.TaggedObject

Represents a UI Block

New in version NX6.0.0.

Properties

Property Description
Enable Returns or sets the Enable.
Expanded Returns or sets the Expanded
Group Returns or sets the Group
Label Returns or sets the Label
Name Returns the name of the block or BlockID
Show Returns or sets the Visibility of block.
Tag Returns the Tag for this object.
Type Returns the type of block

Methods

Method Description
Focus Focuses on the block.
GetProperties Returns the properties of the block @return

Property Detail

Enable

UIBlock.Enable

Returns or sets the Enable.

If true, the block is sensitive.

-------------------------------------

Getter Method

Signature Enable()

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Enable(enable)

Parameters:enable (bool) –

New in version NX8.5.0.

License requirements: None.

Expanded

UIBlock.Expanded

Returns or sets the Expanded

-------------------------------------

Getter Method

Signature Expanded()

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Expanded(expanded)

Parameters:expanded (bool) –

New in version NX8.5.0.

License requirements: None.

Group

UIBlock.Group

Returns or sets the Group

-------------------------------------

Getter Method

Signature Group()

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Group(group)

Parameters:group (bool) –

New in version NX8.5.0.

License requirements: None.

Label

UIBlock.Label

Returns or sets the Label

-------------------------------------

Getter Method

Signature Label()

Returns:
Return type:str

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Label(label)

Parameters:label (str) –

New in version NX8.5.0.

License requirements: None.

Name

UIBlock.Name

Returns the name of the block or BlockID

-------------------------------------

Getter Method

Signature Name()

Returns:Block Name.
Return type:str

New in version NX6.0.0.

License requirements: None.

Show

UIBlock.Show

Returns or sets the Visibility of block.

If true, the block is visible. Otherwise invisible. This is readonly property for dialog and will be always true for dialog.

-------------------------------------

Getter Method

Signature Show()

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Show(show)

Parameters:show (bool) –

New in version NX8.5.0.

License requirements: None.

Type

UIBlock.Type

Returns the type of block

-------------------------------------

Getter Method

Signature Type()

Returns:Block Type. E.g., Integer, Double, etc.
Return type:str

New in version NX6.0.0.

License requirements: None.

Method Detail

Focus

UIBlock.Focus

Focuses on the block.

Use this method for both focus and keyboard focus.

Signature Focus()

New in version NX6.0.2.

License requirements: None.

GetProperties

UIBlock.GetProperties

Returns the properties of the block

Signature GetProperties()

Returns:
Return type:NXOpen.BlockStyler.PropertyList

New in version NX6.0.0.

License requirements: None.