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

Contains the type of the routing part as well as the Collection objects for creating/iterating over routing objects. More...

Classes

struct  SubdivideOption
 Contains subdivide segment method information. More...
 

Public Types

enum  SubdivideSpacing {
  SubdivideSpacingScreenPoint, SubdivideSpacingEqualArcLength, SubdivideSpacingEqualParameter, SubdivideSpacingIncrementalArcLength,
  SubdivideSpacingGeometricRatio, SubdivideSpacingChordalTolerance, SubdivideSpacingNumberOfOptions
}
 Specifies spacing option for subdivide segment. More...
 

Public Member Functions

NXOpen::Routing::ArcSegmentCollectionArcSegments ()
 Arc Segment collection
Created in NX3.0.0. More...
 
NXOpen::Routing::ISegmentCreateConstrainedSegment (NXOpen::Routing::ControlPoint *startRcp, NXOpen::Routing::ControlPoint *endRcp)
 Creates a constrained line NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends. More...
 
NXOpen::Routing::HealPathCreateHealPath ()
 Creates a new empty NXOpen::Routing::HealPath object that can be used as an input to NXOpen::Routing::SegmentManager::CreateHealSpline . More...
 
NXOpen::Routing::ISegmentCreateHealSpline (NXOpen::DisplayableObject *startObject, NXOpen::DisplayableObject *endObject, NXOpen::Routing::HealPath *healPath)
 Creates a spline NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends. More...
 
NXOpen::Routing::ISegmentCreateSegment (NXOpen::Curve *followCurve, NXOpen::Routing::ControlPoint *startRcp, NXOpen::Routing::ControlPoint *endRcp, NXOpen::Routing::UserDefined userDefined)
 Creates a NXOpen::Routing::ISegment object following a curve. More...
 
NXOpen::Routing::ISegmentCreateSegment (NXOpen::Routing::ControlPoint *startRcp, NXOpen::Routing::ControlPoint *endRcp)
 Creates a line NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends. More...
 
std::vector
< NXOpen::Routing::ISegment * > 
GetShortestPathBetweenControlPoints (NXOpen::Routing::ControlPoint *controlPoint1, NXOpen::Routing::ControlPoint *controlPoint2)
 Returns the shortest connected segments (i.e. More...
 
NXOpen::Routing::LineSegmentCollectionLineSegments ()
 Line Segment collection
Created in NX3.0.0. More...
 
void ModelTerminals (NXOpen::Routing::Port *multiPort, double cutBackLength, const NXString &extensionString, bool overrideCharx, const std::vector< NXOpen::Routing::Port * > &terminalPorts)
 Models spline paths to to specified terminals. More...
 
void ModelTerminals (NXOpen::Routing::Port *multiPort, double cutBackLength, const char *extensionString, bool overrideCharx, const std::vector< NXOpen::Routing::Port * > &terminalPorts)
 Models spline paths to to specified terminals. More...
 
void ProcessBuiltInPaths (NXOpen::Assemblies::Component *partOcc)
 Create segments of NXOpen::Routing::BuiltInPath objects present in this NXOpen::Assemblies::Component object. More...
 
NXOpen::Routing::ISegmentCollectionSegments ()
 All Segment types collection
Created in NX7.5.1. More...
 
NXOpen::Routing::ISegmentSetFollowCurve (NXOpen::Routing::ISegment *segment, NXOpen::Curve *followCurve)
 Set segment follow curve. More...
 
void SimplifySegments (const std::vector< NXOpen::Routing::ISegment * > &segments, bool doUpdate, std::vector< NXOpen::Routing::ISegment * > &newSegments)
 Combine segments that are collinear and whose intermediate RCPs do not branch
Created in NX5.0.0. More...
 
NXOpen::Routing::SplineSegmentCollectionSplineSegments ()
 Spline Segment collection
Created in NX3.0.0. More...
 
void Subdivide (NXOpen::Routing::ISegment *segment, const NXOpen::Routing::SegmentManager::SubdivideOption &subdivideOption, std::vector< NXOpen::Routing::ISegment * > &subdivideSegments)
 Subdivide a routing path segment
Created in NX5.0.0. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 
void UnmodelTerminals (NXOpen::Routing::Port *multiPort, const std::vector< NXOpen::Routing::Port * > &terminalPorts)
 Un-model terminals and update connection list routes for specified terminal ports. More...
 

Detailed Description

Contains the type of the routing part as well as the Collection objects for creating/iterating over routing objects.


To obtain an instance of this class, refer to NXOpen::Part

Created in NX4.0.0.

Member Enumeration Documentation

Specifies spacing option for subdivide segment.

Enumerator
SubdivideSpacingScreenPoint 

Screen Point.

SubdivideSpacingEqualArcLength 

Equal Arc Length.

SubdivideSpacingEqualParameter 

Equal Parameter.

SubdivideSpacingIncrementalArcLength 

Incremental Arc Length.

SubdivideSpacingGeometricRatio 

Geometric Progression Ratio.

SubdivideSpacingChordalTolerance 

Chordal Tolerance.

SubdivideSpacingNumberOfOptions 

Number of Options.

Member Function Documentation

NXOpen::Routing::ArcSegmentCollection* NXOpen::Routing::SegmentManager::ArcSegments ( )

Arc Segment collection
Created in NX3.0.0.


NXOpen::Routing::ISegment* NXOpen::Routing::SegmentManager::CreateConstrainedSegment ( NXOpen::Routing::ControlPoint startRcp,
NXOpen::Routing::ControlPoint endRcp 
)

Creates a constrained line NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends.

Only use this method when building segments in a part that use NXOpen::Positioning::Constraint objects to constraint components and geometry. This is a new method for creating segments in NX5 and should be used instead of NXOpen::Routing::SegmentManager::CreateSegment for all line segments.

Returns
Created segment
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")
Parameters
startRcpStart NXOpen::Routing::ControlPoint of the segment
endRcpEnd NXOpen::Routing::ControlPoint of the segment
NXOpen::Routing::HealPath* NXOpen::Routing::SegmentManager::CreateHealPath ( )

Creates a new empty NXOpen::Routing::HealPath object that can be used as an input to NXOpen::Routing::SegmentManager::CreateHealSpline .

Returns

Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")
NXOpen::Routing::ISegment* NXOpen::Routing::SegmentManager::CreateHealSpline ( NXOpen::DisplayableObject startObject,
NXOpen::DisplayableObject endObject,
NXOpen::Routing::HealPath healPath 
)

Creates a spline NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends.

Returns
Created segment
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")
Parameters
startObjectStart NXOpen::DisplayableObject of the segment, ideally it should be NXOpen::Routing::Port
endObjectEnd NXOpen::DisplayableObject of the segment, ideally it should be NXOpen::Routing::Port
healPathheal path
NXOpen::Routing::ISegment* NXOpen::Routing::SegmentManager::CreateSegment ( NXOpen::Curve followCurve,
NXOpen::Routing::ControlPoint startRcp,
NXOpen::Routing::ControlPoint endRcp,
NXOpen::Routing::UserDefined  userDefined 
)

Creates a NXOpen::Routing::ISegment object following a curve.

Returns
Created segment
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
Parameters
followCurveCurve to follow
startRcpStart NXOpen::Routing::ControlPoint of the segment
endRcpEnd NXOpen::Routing::ControlPoint of the segment
userDefinedIs segment user defined?
NXOpen::Routing::ISegment* NXOpen::Routing::SegmentManager::CreateSegment ( NXOpen::Routing::ControlPoint startRcp,
NXOpen::Routing::ControlPoint endRcp 
)

Creates a line NXOpen::Routing::ISegment object with input NXOpen::Routing::ControlPoint as ends.

Returns
Created segment
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
Parameters
startRcpStart NXOpen::Routing::ControlPoint of the segment
endRcpEnd NXOpen::Routing::ControlPoint of the segment
std::vector<NXOpen::Routing::ISegment *> NXOpen::Routing::SegmentManager::GetShortestPathBetweenControlPoints ( NXOpen::Routing::ControlPoint controlPoint1,
NXOpen::Routing::ControlPoint controlPoint2 
)

Returns the shortest connected segments (i.e.

the path) linking the two NXOpen::Routing::ControlPoint s, if any.

Returns

Created in NX11.0.1.

License requirements : routing_base ("Routing Basic")
Parameters
controlPoint1controlpoint1
controlPoint2controlpoint2
NXOpen::Routing::LineSegmentCollection* NXOpen::Routing::SegmentManager::LineSegments ( )

Line Segment collection
Created in NX3.0.0.


void NXOpen::Routing::SegmentManager::ModelTerminals ( NXOpen::Routing::Port multiPort,
double  cutBackLength,
const NXString extensionString,
bool  overrideCharx,
const std::vector< NXOpen::Routing::Port * > &  terminalPorts 
)

Models spline paths to to specified terminals.

Updates connection list to reflect changes to wire lengths of referencing connections.
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
multiPortMultiPort whose terminals are modeled
cutBackLengthLength of cut back path connected to multiport.
extensionStringLength of terminal segments which extends parallel to terminal ports
overrideCharxif TRUE: extension_string determines all terminal extensions
terminalPortsTerminal ports from which terminals are modeled
void NXOpen::Routing::SegmentManager::ModelTerminals ( NXOpen::Routing::Port multiPort,
double  cutBackLength,
const char *  extensionString,
bool  overrideCharx,
const std::vector< NXOpen::Routing::Port * > &  terminalPorts 
)

Models spline paths to to specified terminals.

Updates connection list to reflect changes to wire lengths of referencing connections.
Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
multiPortMultiPort whose terminals are modeled
cutBackLengthLength of cut back path connected to multiport.
extensionStringLength of terminal segments which extends parallel to terminal ports
overrideCharxif TRUE: extension_string determines all terminal extensions
terminalPortsTerminal ports from which terminals are modeled
void NXOpen::Routing::SegmentManager::ProcessBuiltInPaths ( NXOpen::Assemblies::Component partOcc)

Create segments of NXOpen::Routing::BuiltInPath objects present in this NXOpen::Assemblies::Component object.


Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
partOccpart occ
NXOpen::Routing::ISegmentCollection* NXOpen::Routing::SegmentManager::Segments ( )

All Segment types collection
Created in NX7.5.1.


NXOpen::Routing::ISegment* NXOpen::Routing::SegmentManager::SetFollowCurve ( NXOpen::Routing::ISegment segment,
NXOpen::Curve followCurve 
)

Set segment follow curve.

Segment can change type to mirror the type of the follow curve being set.

Returns
Segment can possibly change types. Use the returned segment object pointer instead of any older pointers after calling this function. For example: A LineSegment can become a SplineSegment after calling this function if new follow curve is a spline.
Created in NX4.0.0.

License requirements : routing_base ("Routing Basic")
Parameters
segmentSegment to set follow curve on
followCurveFollow curve of segment
void NXOpen::Routing::SegmentManager::SimplifySegments ( const std::vector< NXOpen::Routing::ISegment * > &  segments,
bool  doUpdate,
std::vector< NXOpen::Routing::ISegment * > &  newSegments 
)

Combine segments that are collinear and whose intermediate RCPs do not branch
Created in NX5.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
segmentssegments to combine
doUpdateFires update if True
newSegmentsresulting segments
NXOpen::Routing::SplineSegmentCollection* NXOpen::Routing::SegmentManager::SplineSegments ( )

Spline Segment collection
Created in NX3.0.0.


void NXOpen::Routing::SegmentManager::Subdivide ( NXOpen::Routing::ISegment segment,
const NXOpen::Routing::SegmentManager::SubdivideOption subdivideOption,
std::vector< NXOpen::Routing::ISegment * > &  subdivideSegments 
)

Subdivide a routing path segment
Created in NX5.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
segmentSegment to subdivide
subdivideOptionsubdivide option
subdivideSegmentsresulting segments
tag_t NXOpen::Routing::SegmentManager::Tag ( ) const

Returns the tag of this object.

void NXOpen::Routing::SegmentManager::UnmodelTerminals ( NXOpen::Routing::Port multiPort,
const std::vector< NXOpen::Routing::Port * > &  terminalPorts 
)

Un-model terminals and update connection list routes for specified terminal ports.


Created in NX5.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
multiPortMultiPort whose terminals being un-modeled
terminalPortsTerminal ports being modeled

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