DivisionsBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# DivisionsBuilder Class

class `NXOpen.Routing.``DivisionsBuilder`

  Bases: `NXOpen.Builder`

  Represents a `NXOpen.Routing.DivisionsBuilder`

  Builder for creating/editing splits at an end of a duct.

  Takes an end face of a rectangular stock and splits it into a pair of divisions based on the specified absolute flow percentage for each division.

  To create a new instance of this class, use `NXOpen.Routing.RouteManager.CreateDivisionsBuilder()`

  Default values.

  Property | Value
  --- | ---
  LeftChildFlow.Value | 50
  RightChildFlow.Value | 50
  SplitDirection | SplitVertically

  New in version NX7.5.0.

# Properties

Property | Description
--- | ---
LeftChildFlow | Returns the value of percent absolute or relative flow in left (first) child division
RightChildFlow | Returns the value of percent absolute or relative flow in right (second) child division
SelectedPort | Returns the `NXOpen.Routing.Port` to identify the cross-section that is to be split
SplitDirection | Returns or sets the direction of split, either vertical or horizontal
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
Commit | Commits any edits that have been applied to the builder.
CreateDivisions | Creates two new divisions by splitting the parent division.
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.
GetDivision | Gets the division object, if any, associated with the division builder
GetObject | Returns the object currently being edited by this builder.
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.

# Enumerations

DivisionsBuilderSplitDirectionType Enumeration | The direction in which the cross-section is to be split

# Property Detail

## LeftChildFlow

`DivisionsBuilder.``LeftChildFlow`

  Returns the value of percent absolute or relative flow in left (first) child division

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

  Getter Method

  Signature `LeftChildFlow`

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

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

## RightChildFlow

`DivisionsBuilder.``RightChildFlow`

  Returns the value of percent absolute or relative flow in right (second) child division

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

  Getter Method

  Signature `RightChildFlow`

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

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

## SelectedPort

`DivisionsBuilder.``SelectedPort`

  Returns the `NXOpen.Routing.Port` to identify the cross-section that is to be split

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

  Getter Method

  Signature `SelectedPort`

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

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

## SplitDirection

`DivisionsBuilder.``SplitDirection`

  Returns or sets the direction of split, either vertical or horizontal

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

  Getter Method

  Signature `SplitDirection`

  Returns: |
  Return type: | `NXOpen.Routing.DivisionsBuilderSplitDirectionType`

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

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

  Setter Method

  Signature `SplitDirection`

  Parameters: | splitDirection (`NXOpen.Routing.DivisionsBuilderSplitDirectionType`) –

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

# Method Detail

## CreateDivisions

`DivisionsBuilder.``CreateDivisions`

  Creates two new divisions by splitting the parent division.

  Signature `CreateDivisions()`

  Returns: |
  Return type: | `NXOpen.Routing.Division`

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

## GetDivision

`DivisionsBuilder.``GetDivision`

  Gets the division object, if any, associated with the division builder

  Signature `GetDivision()`

  Returns: |
  Return type: | `NXOpen.Routing.Division`

  New in version NX7.5.0.

  License requirements: routing_hvac (“Routing HVAC”)

## Validate

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