LayerBlock Class

class NXOpen.BlockStyler.LayerBlock

Bases: NXOpen.BlockStyler.UIBlock

Represents a Layer block

New in version NX10.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
LayerOption Returns or sets the Layer Option
LayerValue Returns or sets the Layer Value
Name Returns the name of the block or BlockID
Show Returns or sets the Visibility of block.
ShowMaintainLayerOption Returns or sets the Show Maintain Layer Option If set to true, Maintain option is displayed in layer options
ShowOriginalLayerOption Returns or sets the Show Original Layer Option If set to true, Original option is displayed in layer options
ShowUserDefinedLayerOption Returns or sets the Show User Defined Layer Option If set to true, User Defined option is displayed in layer options
ShowWorkLayerOption Returns or sets the Show Work Layer Option If set to true, Work option is displayed in layer options
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

Property Detail

LayerOption

LayerBlock.LayerOption

Returns or sets the Layer Option

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

Getter Method

Signature LayerOption

Returns:
Return type:int

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature LayerOption

Parameters:integerLayerOption (int) –

New in version NX10.0.0.

License requirements: None.

LayerValue

LayerBlock.LayerValue

Returns or sets the Layer Value

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

Getter Method

Signature LayerValue

Returns:
Return type:int

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature LayerValue

Parameters:inetegerLayerValue (int) –

New in version NX10.0.0.

License requirements: None.

ShowMaintainLayerOption

LayerBlock.ShowMaintainLayerOption

Returns or sets the Show Maintain Layer Option If set to true, Maintain option is displayed in layer options

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

Getter Method

Signature ShowMaintainLayerOption

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature ShowMaintainLayerOption

Parameters:showMaintainLayerOption (bool) –

New in version NX10.0.0.

License requirements: None.

ShowOriginalLayerOption

LayerBlock.ShowOriginalLayerOption

Returns or sets the Show Original Layer Option If set to true, Original option is displayed in layer options

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

Getter Method

Signature ShowOriginalLayerOption

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature ShowOriginalLayerOption

Parameters:showOriginalLayerOption (bool) –

New in version NX10.0.0.

License requirements: None.

ShowUserDefinedLayerOption

LayerBlock.ShowUserDefinedLayerOption

Returns or sets the Show User Defined Layer Option If set to true, User Defined option is displayed in layer options

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

Getter Method

Signature ShowUserDefinedLayerOption

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature ShowUserDefinedLayerOption

Parameters:showUserDefinedLayerOption (bool) –

New in version NX10.0.0.

License requirements: None.

ShowWorkLayerOption

LayerBlock.ShowWorkLayerOption

Returns or sets the Show Work Layer Option If set to true, Work option is displayed in layer options

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

Getter Method

Signature ShowWorkLayerOption

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

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

Setter Method

Signature ShowWorkLayerOption

Parameters:showWorkLayerOption (bool) –

New in version NX10.0.0.

License requirements: None.