UdtSectionBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# UdtSectionBuilder Class

class `NXOpen.CAM.``UdtSectionBuilder`

  Bases: `NXOpen.TaggedObject`

  Represents a UdtSection Builder

  New in version NX5.0.0.

# Properties

Property | Description
--- | ---
NumberOfSections | Returns the number of udt section
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
CreateWithParameter | Create a new udt section item with parameter
Delete | Delete an existing udt section item
Get | Get the values of an existing udt section item
ModifyWithParameter | Modify an existing udt section item with parameter

# Property Detail

## NumberOfSections

`UdtSectionBuilder.``NumberOfSections`

  Returns the number of udt section

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

  Getter Method

  Signature `NumberOfSections`

  Returns: | The number of sections
  Return type: | int

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

# Method Detail

## CreateWithParameter

`UdtSectionBuilder.``CreateWithParameter`

  Create a new udt section item with parameter

  Signature `CreateWithParameter(length, angle, radius, sweep)`

  Parameters:

  - length (float) – the length
  - angle (float) – the angle
  - radius (float) – the radius
  - sweep (float) – the sweep

  Returns: | return new item position
  Return type: | int

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

## Delete

`UdtSectionBuilder.``Delete`

  Delete an existing udt section item

  Signature `Delete(nodeIndex)`

  Parameters: | nodeIndex (int) – the selected entry index in tree list

  New in version NX5.0.0.

  License requirements: cam_base (“CAM BASE”)

## Get

`UdtSectionBuilder.``Get`

  Get the values of an existing udt section item

  Signature `Get(index)`

  Parameters: | index (int) – the index of item
  Returns: | a tuple
  Return type: | A tuple consisting of (length, angle, radius, sweep) length is a float. the length angle is a float. the angle radius is a float. the radius sweep is a float. the sweep

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)

## ModifyWithParameter

`UdtSectionBuilder.``ModifyWithParameter`

  Modify an existing udt section item with parameter

  Signature `ModifyWithParameter(index, length, angle, radius, sweep)`

  Parameters:

  - index (int) – the index of modified udt section
  - length (float) – the length
  - angle (float) – the angle
  - radius (float) – the radius
  - sweep (float) – the sweep

  New in version NX6.0.0.

  License requirements: cam_base (“CAM BASE”)