NX Open C++ Reference Guide
Public Member Functions
NXOpen::Routing::SBendCorner Class Reference

The Routing SBendCorner defines a S-Bend. More...

Inheritance diagram for NXOpen::Routing::SBendCorner:
NXOpen::NXObject NXOpen::TaggedObject NXOpen::INXObject

List of all members.

Public Member Functions

bool GetSBendData (int *sbendType, NXOpen::Routing::ControlPoint **startRcp, NXOpen::Routing::ControlPoint **endRcp, NXOpen::Routing::SplineSegment **segment, double *radiusOrRatio)
 Returns the data for the S-Bend object.
double GetSBendRadius ()
 Gets the S-Bend radius of a S-Bend corner.
std::vector
< NXOpen::Routing::Stock * > 
GetSBendStocks ()
 Returns an array of stocks for the S-Bend object.
NXOpen::Routing::SplineSegmentGetSegment ()
 Gets the segment being used to represent the S-Bend.
void SetSBendData (int sbendType, NXOpen::Routing::ControlPoint *startRcp, NXOpen::Routing::ControlPoint *endRcp, NXOpen::Routing::SplineSegment *segment, double radiusOrRatio, bool useBendRatio)
 Set the data for the S-Bend object
Created in NX4.0.0.

Detailed Description

The Routing SBendCorner defines a S-Bend.

There are 5 possible S-bend types.
The UI input is two work part line segment-ending RCPs, each of which implicitly provides a 3D point and vector. An S-bend heals the separation between the two segments with a C1 continuous spline segment.

To disambiguate among 5 S-bend types (see below), the user may need to further indicate whether the S-bend starts bending immediately at the end of one or both of the 2 input segments. Some arrangements of 2 segments do not require further user input to disambiguate among the possible S-bend types.

The direction vectors of the 2 input segments must either be perpendicular (types 1,2,3) or parallel (types 4,5).

The closest distance between the (infinite) lines containing the input segments must be less that twice the bend radius. If this condition does not hold, then 2 right angle bends could connect the 2 input segments, i.e., an S-bend is unnecessary.

Every S-bend has two bends, whose radii are always equal. Except for type 2 and 3, the bend angles are equal and in the range [ Pi/4, Pi/2 ].

S-bends never cause a cutback of an input segment, although type 1,2,4 S-bends may add a straight line extension to one of the segment ends before the bending starts. Type 1 S-bends may add a straight line extension to both segment ends.

INPUT


For computation solving purposes, the above input becomes a bend radius, height, width, and possibly a depth.


OUTPUT bend angle(s):

Bend angles are computed at the centers of the bend arcs

S-bends fall into two categories:


Support Information:
===============================
o An extension as described above is the distance leading up to the bend arc.

Use the Routing::SBendCornerCollection to obtain an instance.

Created in NX4.0.0.


Member Function Documentation

bool NXOpen::Routing::SBendCorner::GetSBendData ( int *  sbendType,
NXOpen::Routing::ControlPoint **  startRcp,
NXOpen::Routing::ControlPoint **  endRcp,
NXOpen::Routing::SplineSegment **  segment,
double *  radiusOrRatio 
)

Returns the data for the S-Bend object.

Returns:
TRUE: if bend ratio is used; FALSE: otherwise.
Created in NX4.0.0.

License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Parameters:
sbendTypeS-Bend type
startRcpS-Bend start Control point
endRcpS-Bend end Control point
segmentS-Bend segment
radiusOrRatioBend radius or bend_ratio.

Gets the S-Bend radius of a S-Bend corner.

Returns:

Created in NX4.0.0.

License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")

Returns an array of stocks for the S-Bend object.

Returns:
Stock objects of the S-Bend corner.
Created in NX4.0.0.

License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")

Gets the segment being used to represent the S-Bend.

Returns:

Created in NX4.0.0.

License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
void NXOpen::Routing::SBendCorner::SetSBendData ( int  sbendType,
NXOpen::Routing::ControlPoint startRcp,
NXOpen::Routing::ControlPoint endRcp,
NXOpen::Routing::SplineSegment segment,
double  radiusOrRatio,
bool  useBendRatio 
)

Set the data for the S-Bend object
Created in NX4.0.0.



License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")

Parameters:
sbendTypeS-Bend type
startRcpThe start Control point for the S-Bend.
endRcpThe end Control point for the S-Bend.
segmentS-Bend segment
radiusOrRatioS-Bend radius or bend_ratio.
useBendRatioTRUE: if bend ratio is used; FALSE: otherwise.

The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.