PlantProductionUnitCreatorBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# PlantProductionUnitCreatorBuilder Class

class `NXOpen.LineDesigner.``PlantProductionUnitCreatorBuilder`

  Bases: `NXOpen.Builder`

  To create a new instance of this class, use `NXOpen.LineDesigner.LineDesignerManager.PlantCreateProductionUnitCreatorBuilder()`

  New in version NX12.0.0.

# Properties

Property | Description
--- | ---
ProductionUnitId | Returns or sets the production unit id
ProductionUnitName | Returns or sets the production unit name
ProductionUnitTypeString | Returns or sets the type of a production unit
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
AssignId | The assign ID of production unit
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.
GetProductionUnitDescription | The production unit description
SetProductionUnitDescription | The production unit description is set
SetProductionUnitParent | The production unit parent is set
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.

# Property Detail

## ProductionUnitId

`PlantProductionUnitCreatorBuilder.``ProductionUnitId`

  Returns or sets the production unit id

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

  Getter Method

  Signature `ProductionUnitId`

  Returns: |
  Return type: | str

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

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

  Setter Method

  Signature `ProductionUnitId`

  Parameters: | productionUnitId (str) –

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## ProductionUnitName

`PlantProductionUnitCreatorBuilder.``ProductionUnitName`

  Returns or sets the production unit name

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

  Getter Method

  Signature `ProductionUnitName`

  Returns: |
  Return type: | str

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

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

  Setter Method

  Signature `ProductionUnitName`

  Parameters: | productionUnitName (str) –

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## ProductionUnitTypeString

`PlantProductionUnitCreatorBuilder.``ProductionUnitTypeString`

  Returns or sets the type of a production unit

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

  Getter Method

  Signature `ProductionUnitTypeString`

  Returns: |
  Return type: | str

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

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

  Setter Method

  Signature `ProductionUnitTypeString`

  Parameters: | productionUnitType (str) –

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

# Method Detail

## AssignId

`PlantProductionUnitCreatorBuilder.``AssignId`

  The assign ID of production unit

  Signature `AssignId()`

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## GetProductionUnitDescription

`PlantProductionUnitCreatorBuilder.``GetProductionUnitDescription`

  The production unit description

  Signature `GetProductionUnitDescription()`

  Returns: |
  Return type: | list of str

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## SetProductionUnitDescription

`PlantProductionUnitCreatorBuilder.``SetProductionUnitDescription`

  The production unit description is set

  Signature `SetProductionUnitDescription(productionUnitDescription)`

  Parameters: | productionUnitDescription (list of str) –

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## SetProductionUnitParent

`PlantProductionUnitCreatorBuilder.``SetProductionUnitParent`

  The production unit parent is set

  Signature `SetProductionUnitParent(parent)`

  Parameters: | parent (`NXOpen.NXObject`) –

  New in version NX12.0.0.

  License requirements: ld_line_designer (“FULL LINE DESIGNER”)

## Validate

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