BendReportManager Class

class NXOpen.Routing.BendReportManager

Bases: object

The Routing Bend Report Manager allows you to get a variety of bend reports.

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

Methods

Method Description
GenerateMil98Report Generates the bend report in MIL-D-9898C specification format.
GenerateXyzReport Generates the bend report in XYZ format.
GenerateYbcReport Generates the bend report in YBC format.
GetSegmentInformation Builds up the segment information from the given ports, solid bodies, segments, stock, stock components, or features.
ReverseDirection Reverses the order of the segment information.

Structs

BendReportManagerMil98Report_Struct Struct Used in the MIL-D-9898 C specification reports.
BendReportManagerSegmentInformation_Struct Struct Used by all the reports to hold the information of the segments under port, solid body, segment, stock, stock component, or feature representing the piece of stock.
BendReportManagerXyzReport_Struct Struct Used in the XYZ bend reports.
BendReportManagerYbcReport_Struct Struct Used in the YBC bend reports.

Method Detail

GenerateMil98Report

BendReportManager.GenerateMil98Report

Generates the bend report in MIL-D-9898C specification format.

Signature GenerateMil98Report(segmentInformation)

Parameters:segmentInformation (list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct) – The information about the segments to include in the report. Generated by calling Routing.BendReportManager.GetSegmentInformation().
Returns:a tuple
Return type:A tuple consisting of (bends, totalLength). bends is a list of NXOpen.Routing.BendReportManagerMil98Report_Struct. The XYZ report information. totalLength is a float. Total length of the entire path of segments.

New in version NX11.0.1.

License requirements: routing_base (“Routing Basic”)

GenerateXyzReport

BendReportManager.GenerateXyzReport

Generates the bend report in XYZ format.

Signature GenerateXyzReport(segmentInformation)

Parameters:segmentInformation (list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct) – The information about the segments to include in the report. Generated by calling Routing.BendReportManager.GetSegmentInformation().
Returns:a tuple
Return type:A tuple consisting of (bends, totalLength). bends is a list of NXOpen.Routing.BendReportManagerXyzReport_Struct. The XYZ report information. totalLength is a float. Total length of the entire path of segments.

New in version NX11.0.1.

License requirements: routing_base (“Routing Basic”)

GenerateYbcReport

BendReportManager.GenerateYbcReport

Generates the bend report in YBC format.

Signature GenerateYbcReport(segmentInformation)

Parameters:segmentInformation (list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct) – The information about the segments to include in the report. Generated by calling Routing.BendReportManager.GetSegmentInformation().
Returns:a tuple
Return type:A tuple consisting of (bends, totalLength). bends is a list of NXOpen.Routing.BendReportManagerYbcReport_Struct. The XYZ report information. totalLength is a float. Total length of the entire path of segments.

New in version NX11.0.1.

License requirements: routing_base (“Routing Basic”)

GetSegmentInformation

BendReportManager.GetSegmentInformation

Builds up the segment information from the given ports, solid bodies, segments, stock, stock components, or features.

Call this first to get the segment information to end to the report methods.

Signature GetSegmentInformation(stock)

Parameters:stock (NXOpen.TaggedObject) – The port, solid body, segment, stock, stock component, or feature representing the piece of stock from which to generate the bend report.
Returns:Information on each segment. Send to one of the generate report methods to get a report.
Return type:list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct

New in version NX11.0.1.

License requirements: routing_base (“Routing Basic”)

ReverseDirection

BendReportManager.ReverseDirection

Reverses the order of the segment information.

Since some of the information in the YBC and MIL98 reports are relative angles, reversing the order of the segments can have a significant impact on the report.

Signature ReverseDirection(segmentInformation)

Parameters:segmentInformation (list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct) – The original segment order.
Returns:The reversed segment order.
Return type:list of NXOpen.Routing.BendReportManagerSegmentInformation_Struct

New in version NX11.0.1.

License requirements: routing_base (“Routing Basic”)