NX Open C++ Reference Guide
|
Represents a collection of NXOpen::Routing::BendCorner objects. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Types | |
enum | Type { TypeRadiusRatio, TypeTable } |
Option for creating a bend using a bend table or using radius or ratio. More... | |
Public Member Functions | |
NXOpen::Routing::BendCorner * | AssignCornerByBendRadius (NXOpen::Routing::ControlPoint *bendCrn, double bendRadius) |
This routine assigns a new bend corner to the given input bend corner object using bend radius. More... | |
NXOpen::Routing::BendCorner * | AssignCornerByBendRatio (NXOpen::Routing::ControlPoint *bendCrn, double bendRatio) |
This routine assigns a new bend corner to the given input bend corner object using bend ratio. More... | |
NXOpen::Routing::BendCorner * | AssignCornerByBendTable (NXOpen::Routing::ControlPoint *rcp, const NXString &bendTable) |
This routine assigns a bend corner to the given input RCP object using a bend table entry. More... | |
NXOpen::Routing::BendCorner * | AssignCornerByBendTable (NXOpen::Routing::ControlPoint *rcp, const char *bendTable) |
This routine assigns a bend corner to the given input RCP object using a bend table entry. More... | |
iterator | begin () |
Returns an iterator addressing the first element. More... | |
NXOpen::Routing::BendCorner * | Create (NXOpen::Routing::ControlPoint *rcp, bool useBendRatio, double bendRatio, double bendRadius) |
Create a bend corner object at a Control Point. More... | |
NXOpen::Routing::BendCorner * | CreateCorner (NXOpen::Routing::ControlPoint *rcp, NXOpen::Routing::CornerTypeBuilder::BendMethods bendMethod, double bendRatio, double bendRadius) |
Create a bend corner object at a Control Point. More... | |
iterator | end () |
Returns an iterator addressing one past the last element. More... | |
NXOpen::Routing::BendCorner * | GetBendAssociatedToSegment (NXOpen::Routing::ISegment *segment) |
Enquire the Bend Corner that this segment represents. More... | |
std::vector < NXOpen::Routing::BendCorner * > | GetBendCornersFromObjects (const std::vector< NXOpen::NXObject * > &objects) |
Returns all the corners connected to the given objects, if any. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a collection of NXOpen::Routing::BendCorner objects.
To obtain an instance of this class, refer to NXOpen::Routing::RouteManager
Created in NX4.0.0.
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::AssignCornerByBendRadius | ( | NXOpen::Routing::ControlPoint * | bendCrn, |
double | bendRadius | ||
) |
This routine assigns a new bend corner to the given input bend corner object using bend radius.
This "assignment" can involve the removal of an existing corner at this location and the creation of a new corner.
bendCrn | Input bend corner. |
bendRadius | Radius of bend corner arc. |
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::AssignCornerByBendRatio | ( | NXOpen::Routing::ControlPoint * | bendCrn, |
double | bendRatio | ||
) |
This routine assigns a new bend corner to the given input bend corner object using bend ratio.
This "assignment" can involve the removal of an existing corner at this location and the creation of a new corner.
bendCrn | Input bend corner. |
bendRatio | Bend ratio must be greater than 0.5. |
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::AssignCornerByBendTable | ( | NXOpen::Routing::ControlPoint * | rcp, |
const NXString & | bendTable | ||
) |
This routine assigns a bend corner to the given input RCP object using a bend table entry.
This "assignment" can involve the removal of an existing corner at this location and the creation of a new corner. The application view must be loaded before attempting to assign a bend corner of this type.
rcp | Control point to assign corner to. NULL not allowed. |
bendTable | The bend table entry that is used to create bend corner |
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::AssignCornerByBendTable | ( | NXOpen::Routing::ControlPoint * | rcp, |
const char * | bendTable | ||
) |
This routine assigns a bend corner to the given input RCP object using a bend table entry.
This "assignment" can involve the removal of an existing corner at this location and the creation of a new corner. The application view must be loaded before attempting to assign a bend corner of this type.
rcp | Control point to assign corner to. NULL not allowed. |
bendTable | The bend table entry that is used to create bend corner |
iterator NXOpen::Routing::BendCornerCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::Create | ( | NXOpen::Routing::ControlPoint * | rcp, |
bool | useBendRatio, | ||
double | bendRatio, | ||
double | bendRadius | ||
) |
Create a bend corner object at a Control Point.
Created in NX4.0.0.
License requirements : routing_base ("Routing Basic")
rcp | Route control point to bend. |
useBendRatio | TRUE: use bend ratio calculation, FALSE: use given radius |
bendRatio | Bend ratio only used if use_bend_ratio is TRUE. Must be greater than 0.5. |
bendRadius | Radius of bend corner arc, only used if use_bend_ratio is FALSE. Must be greater than 0. |
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::CreateCorner | ( | NXOpen::Routing::ControlPoint * | rcp, |
NXOpen::Routing::CornerTypeBuilder::BendMethods | bendMethod, | ||
double | bendRatio, | ||
double | bendRadius | ||
) |
Create a bend corner object at a Control Point.
rcp | Route control point to bend. |
bendMethod | Enumerated bend method. |
bendRatio | Bend ratio is used only if bend method is set to NXOpen::Routing::CornerTypeBuilder::BendMethodsRatioToDiameter . Must be greater than 0.5. |
bendRadius | Radius of bend corner arc, used only if bend method is set to NXOpen::Routing::CornerTypeBuilder::BendMethodsRadius . Must be greater than 0. |
iterator NXOpen::Routing::BendCornerCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Routing::BendCorner* NXOpen::Routing::BendCornerCollection::GetBendAssociatedToSegment | ( | NXOpen::Routing::ISegment * | segment | ) |
Enquire the Bend Corner that this segment represents.
(NULL can be returned, indicating that this segment does not represent a Bend Corner.)
segment | Segment being queried for the Bend Corner it represents. |
std::vector<NXOpen::Routing::BendCorner *> NXOpen::Routing::BendCornerCollection::GetBendCornersFromObjects | ( | const std::vector< NXOpen::NXObject * > & | objects | ) |
Returns all the corners connected to the given objects, if any.
Can find corners from NXOpen::Routing::ControlPoint s, NXOpen::Routing::ISegment s, or NXOpen::Routing::Stock .
objects | objects |
tag_t NXOpen::Routing::BendCornerCollection::Tag | ( | ) | const |
Returns the tag of this object.