NX Open C++ Reference Guide
Classes | Public Types | Public Member Functions | List of all members
NXOpen::Routing::OffsetPathCollection Class Reference

The Routing OffsetPath object is a list of segments in a route. More...

Inheritance diagram for NXOpen::Routing::OffsetPathCollection:
NXOpen::TaggedObjectCollection

Classes

class  iterator
 Iterator for accessing the contents of the collection. More...
 

Public Types

enum  BendType { BendTypeMaintainRadius, BendTypeMaintainCenter, BendTypeMaximumBendTypes }
 Bend types for offset path creation. More...
 

Public Member Functions

iterator begin ()
 Returns an iterator addressing the first element. More...
 
void ConvertOffsetPaths (NXOpen::Routing::OffsetPath *masterOffsetPath)
 Converts an offset path into NXOpen::Positioning::Constraint objects applied to the copied routing objects. More...
 
NXOpen::Routing::OffsetPathCreateCircularOffsetPath (const std::vector< NXOpen::Routing::ISegment * > &segments, bool allStock, const std::vector< NXOpen::Routing::Stock * > &specStocks, bool maintainStock, bool copyBendCorners, NXOpen::Routing::OffsetPathCollection::BendType maintain, bool useMinimumBendRatio, double minimumBendRatio, double minimumBendRadius, bool deleteAllDuplicates, bool createAssociativePaths, const NXOpen::Vector3d &patternXVector, const NXOpen::Vector3d &patternYVector, const NXOpen::Point3d &patternAxisEndPoint, double patternStartAngle, double radialOffset, int nPaths, double totalAngle, std::vector< NXOpen::Routing::OffsetPath * > &slavePathsCreated)
 Creates a circular offset path. More...
 
NXOpen::Routing::OffsetPathCreateRectangularOffsetPath (const std::vector< NXOpen::Routing::ISegment * > &segments, bool allStock, const std::vector< NXOpen::Routing::Stock * > &specStocks, bool maintainStock, bool copyBendCorners, NXOpen::Routing::OffsetPathCollection::BendType maintain, bool useMinimumBendRatio, double minimumBendRatio, double minimumBendRadius, bool deleteAllDuplicates, bool createAssociativePaths, const NXOpen::Vector3d &patternXVector, const NXOpen::Vector3d &patternYVector, const NXOpen::Point3d &patternAxisEndPoint, double patternStartAngle, double rowOffset, double columnOffset, int nRows, int nColumns, int masterRow, int masterColumn, std::vector< NXOpen::Routing::OffsetPath * > &slavePathsCreated)
 Creates a rectangular offset path. More...
 
iterator end ()
 Returns an iterator addressing one past the last element. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

The Routing OffsetPath object is a list of segments in a route.

It also contains the beginning and ending control point for the path.
To obtain an instance of this class, refer to NXOpen::Routing::RouteManager

Created in NX4.0.0.

Member Enumeration Documentation

Bend types for offset path creation.

Enumerator
BendTypeMaintainRadius 

Maintain Radius.

BendTypeMaintainCenter 

Maintain Center.

BendTypeMaximumBendTypes 

maximum bend types

Member Function Documentation

iterator NXOpen::Routing::OffsetPathCollection::begin ( )

Returns an iterator addressing the first element.

void NXOpen::Routing::OffsetPathCollection::ConvertOffsetPaths ( NXOpen::Routing::OffsetPath masterOffsetPath)

Converts an offset path into NXOpen::Positioning::Constraint objects applied to the copied routing objects.

Converts the input master offset path as well as all of the children offset paths of the input master offset path.

The NXOpen::Routing::OffsetPath is incompatible with segments created using the NXOpen::Routing::SegmentManager::CreateConstrainedSegment or to any segments that have NXOpen::Positioning::Constraint objects applied to them. This routine makes the path parallel and associative to each other using constraints rather than the NXOpen::Routing::OffsetPath objects. The converted offset path objects are logged for delete, the next call to NXOpen::Update::DoUpdate will delete the offset path objects.


Created in NX5.0.0.

License requirements : routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")

Parameters
masterOffsetPathmaster offset path
NXOpen::Routing::OffsetPath* NXOpen::Routing::OffsetPathCollection::CreateCircularOffsetPath ( const std::vector< NXOpen::Routing::ISegment * > &  segments,
bool  allStock,
const std::vector< NXOpen::Routing::Stock * > &  specStocks,
bool  maintainStock,
bool  copyBendCorners,
NXOpen::Routing::OffsetPathCollection::BendType  maintain,
bool  useMinimumBendRatio,
double  minimumBendRatio,
double  minimumBendRadius,
bool  deleteAllDuplicates,
bool  createAssociativePaths,
const NXOpen::Vector3d patternXVector,
const NXOpen::Vector3d patternYVector,
const NXOpen::Point3d patternAxisEndPoint,
double  patternStartAngle,
double  radialOffset,
int  nPaths,
double  totalAngle,
std::vector< NXOpen::Routing::OffsetPath * > &  slavePathsCreated 
)

Creates a circular offset path.

Returns
The created master offset path
Created in NX4.0.0.

License requirements : routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
Parameters
segmentsThe list of segments to be associated with the offset path
allStockallstock
specStocksspecstocks
maintainStockif TRUE: Maintain stock on paths
copyBendCornersif TRUE: Copy the bend corners
maintainMaintain radius or center
useMinimumBendRatioif TRUE: Use Ratio to Stock Diameter
minimumBendRatioMinimum Bend Ratio
minimumBendRadiusMinimum Bend Radius
deleteAllDuplicatesif TRUE: Delete all duplicate paths
createAssociativePathsif TRUE: Create associative paths
patternXVectorX vector to set the pattern reference axis
patternYVectorY vector to set the pattern reference axis
patternAxisEndPointPoint to set the pattern reference axis direction if NULL: Computes reference axis using heuristics
patternStartAngleStart angle of the point
radialOffsetOffset distance
nPathsNumber of paths
totalAngleTotal angle
slavePathsCreatedThe created slave offset paths
NXOpen::Routing::OffsetPath* NXOpen::Routing::OffsetPathCollection::CreateRectangularOffsetPath ( const std::vector< NXOpen::Routing::ISegment * > &  segments,
bool  allStock,
const std::vector< NXOpen::Routing::Stock * > &  specStocks,
bool  maintainStock,
bool  copyBendCorners,
NXOpen::Routing::OffsetPathCollection::BendType  maintain,
bool  useMinimumBendRatio,
double  minimumBendRatio,
double  minimumBendRadius,
bool  deleteAllDuplicates,
bool  createAssociativePaths,
const NXOpen::Vector3d patternXVector,
const NXOpen::Vector3d patternYVector,
const NXOpen::Point3d patternAxisEndPoint,
double  patternStartAngle,
double  rowOffset,
double  columnOffset,
int  nRows,
int  nColumns,
int  masterRow,
int  masterColumn,
std::vector< NXOpen::Routing::OffsetPath * > &  slavePathsCreated 
)

Creates a rectangular offset path.

Returns
The created master offset path
Created in NX4.0.0.

License requirements : routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")
Parameters
segmentsThe list of segments to be associated with the offset path
allStockallstock
specStocksspecstocks
maintainStockif TRUE: Maintain stock on paths
copyBendCornersif TRUE: Copy the bend corners
maintainMaintain radius or center
useMinimumBendRatioif TRUE: Use Ratio to Stock Diameter
minimumBendRatioMinimum Bend Ratio
minimumBendRadiusMinimum Bend Radius
deleteAllDuplicatesif TRUE: Delete all duplicate paths
createAssociativePathsif TRUE: Create associative paths
patternXVectorX vector to set the pattern reference axis
patternYVectorY vector to set the pattern reference axis
patternAxisEndPointPoint to set the pattern reference axis direction if NULL: Computes reference axis using heuristics
patternStartAngleStart angle of the pattern
rowOffsetOffset distance along the row
columnOffsetOffset distance along the column
nRowsNumber of rows
nColumnsNumber of columns
masterRowRow of the master path
masterColumnColumn of the master path
slavePathsCreatedThe created slave offset paths
iterator NXOpen::Routing::OffsetPathCollection::end ( )

Returns an iterator addressing one past the last element.

tag_t NXOpen::Routing::OffsetPathCollection::Tag ( ) const

Returns the tag of this object.


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