LayoutDefinition Class — NXOpen Python API Reference 12.0.0 documentation

# LayoutDefinition Class

class `NXOpen.``LayoutDefinition`

  Bases: `NXOpen.TransientObject`

  Represents the definition of a layout.

  This includes the arrangement and location of the views in the arrangement.

  New in version NX3.0.0.

# Properties

Property | Description
--- | ---
Arrangement | Returns the arrangement type of the layout definition.

# Methods

Method | Description
--- | ---
Dispose | Free resources associated with the instance.
GetView | Returns the `NXOpen.View` at specified position in layout.
SetView | Sets the `NXOpen.ModelingView` at specified position in layout.

# Enumerations

LayoutDefinitionArrangementType Enumeration | Indicates the arrangement type of a layout.

# Property Detail

## Arrangement

`LayoutDefinition.``Arrangement`

  Returns the arrangement type of the layout definition.

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

  Getter Method

  Signature `Arrangement`

  Returns: | Arrangement

  of layout :rtype: `NXOpen.LayoutDefinitionArrangementType`

  New in version NX3.0.0.

  License requirements: None.

# Method Detail

## Dispose

`LayoutDefinition.``Dispose`

  Free resources associated with the instance.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX3.0.0.

  License requirements: None.

## GetView

`LayoutDefinition.``GetView`

  Returns the `NXOpen.View` at specified position in layout.

  The system throws an exception when a user enters an invalid position.

  Signature `GetView(row, column)`

  Parameters:

  - row (int) – Row of view
  - column (int) – Column of view

  Returns: |
  Return type: | `NXOpen.View`

  New in version NX3.0.0.

  License requirements: None.

## SetView

`LayoutDefinition.``SetView`

  Sets the `NXOpen.ModelingView` at specified position in layout.

  The system throws an exception when a user enters an invalid position

  Signature `SetView(row, column, view)`

  Parameters:

  - row (int) – Row of view
  - column (int) – Column of view
  - view (`NXOpen.ModelingView`) –

  New in version NX3.0.0.

  License requirements: None.