CrossSectionCollection Class — NXOpen Python API Reference 12.0.0 documentation

# CrossSectionCollection Class

class `NXOpen.Routing.``CrossSectionCollection`

  Bases: `object`

  Represents a collection of `NXOpen.Routing.CrossSection` objects.

  To obtain an instance of this class, refer to `NXOpen.Routing.RouteManager`

  New in version NX4.0.0.

# Methods

Method | Description
--- | ---
CreateCrossSection | Creates a new `NXOpen.Routing.CrossSection` object.

# Method Detail

## CreateCrossSection

`CrossSectionCollection.``CreateCrossSection`

  Creates a new `NXOpen.Routing.CrossSection` object.

  This object defines a profile for sweeping `NXOpen.Routing.Stock` objects. In order to build stocks using this cross section, the cross section must be contained in a `NXOpen.Routing.StockData` object.

  Signature `CreateCrossSection(crossCurves, offset, secondOffset, style)`

  Parameters:

  - crossCurves (list of `NXOpen.Curve`) –
  - offset (`NXOpen.Expression`) – First Offset value, may be None
  - secondOffset (`NXOpen.Expression`) – Second Offset value, may be None
  - style (`NXOpen.Routing.StockStyle`) –

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

  New in version NX5.0.0.

  License requirements: routing_base (“Routing Basic”)