NX Open C++ Reference Guide
Public Member Functions
NXOpen::Tooling::TraverseLoopBuilder Class Reference

The builder class for Traverse Loop component which assists you to select or traverse a string of adjacent curves or edges. More...

Inheritance diagram for NXOpen::Tooling::TraverseLoopBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

Public Member Functions

void ActAccept ()
 Accept current path.
void ActBack ()
 Traverse back action.
void ActClose ()
 Close current loop.
void ActCycle ()
 Cycle candidate path.
void ActEdgeSelection (const std::vector< NXOpen::NXObject * > &pTolSelObject, const std::vector< NXOpen::NXObject * > &selections, const std::vector< NXOpen::NXObject * > &deselections, const NXOpen::Point3d &cpoint, bool selectEndEdge)
 Start traverse after selecting edges or curve.
void ActExit ()
 Exit current loop.
bool BridgeGap ()
 Returns the option to bridge gap or not.
bool ByColor ()
 Returns a Traverse loop by following face color or not.
double CheckGap (const std::vector< NXOpen::NXObject * > &selections, NXOpen::Point3d *nearPoint)
 Calculate the gap between last selected objects and existing loop string, and find out the nearest end point.
bool EndEdge ()
 Returns a Traverse loop by using start edge/end edge or not.
bool ExitLoop ()
 Returns the option to exit the current loop.
void MoveCurves (const std::vector< NXOpen::NXObject * > &pPartingLines)
 Move extract curves that are not parting lines to the invisible layer.
void ResetTraverseData ()
 Reset traverse data after one loop closed.
NXOpen::ScCollectorSelectEdge ()
 Returns the selected edges and curves which will form the loop.
void SetBridgeGap (bool bridgeGap)
 Sets the option to bridge gap or not.
void SetByColor (bool byColor)
 Sets a Traverse loop by following face color or not.
void SetEndEdge (bool endEdge)
 Sets a Traverse loop by using start edge/end edge or not.
void SetExitLoop (bool isExitLoop)
 Sets the option to exit the current loop.
void SetTolSetting (double tolSetting)
 Sets the chaining tolerance.
void SetTraverseStartEndPoint (NXOpen::NXObject *candidate, const NXOpen::Point3d &pointCloseCursor, const std::vector< NXOpen::NXObject * > &selections)
 Set start and end points for traversal.
void SwitchToPartinglineLayer ()
 Make parting layer as the work layer.
double TolSetting ()
 Returns the chaining tolerance.

Detailed Description

The builder class for Traverse Loop component which assists you to select or traverse a string of adjacent curves or edges.


To create a new instance of this class, use Tooling::TraverseLoopCollection::CreateBuilder
Default values.

Property Value

BridgeGap

0

ByColor

0

EndEdge

0

TolSetting

0.0254


Created in NX7.5.0.


Member Function Documentation

Accept current path.


Created in NX7.5.0.

License requirements : None

Traverse back action.


Created in NX7.5.0.

License requirements : None

Close current loop.


Created in NX7.5.0.

License requirements : None

Cycle candidate path.


Created in NX7.5.0.

License requirements : None

void NXOpen::Tooling::TraverseLoopBuilder::ActEdgeSelection ( const std::vector< NXOpen::NXObject * > &  pTolSelObject,
const std::vector< NXOpen::NXObject * > &  selections,
const std::vector< NXOpen::NXObject * > &  deselections,
const NXOpen::Point3d cpoint,
bool  selectEndEdge 
)

Start traverse after selecting edges or curve.


Created in NX7.5.0.

License requirements : None

Parameters:
pTolSelObjectTotal selected objects.
selectionsLast selected objects.
deselectionsLast deselected objects.
cpointCursor point position when selecting one edge first time.
selectEndEdgeWhether last selected object is the end edge.

Exit current loop.


Created in NX7.5.0.

License requirements : None

Returns the option to bridge gap or not.


Created in NX7.5.0.

License requirements : None

Returns a Traverse loop by following face color or not.


Created in NX7.5.0.

License requirements : None

double NXOpen::Tooling::TraverseLoopBuilder::CheckGap ( const std::vector< NXOpen::NXObject * > &  selections,
NXOpen::Point3d nearPoint 
)

Calculate the gap between last selected objects and existing loop string, and find out the nearest end point.

Returns:
The gap between nearPoint and end point of existing loop string.
Created in NX7.5.0.

License requirements : None
Parameters:
selectionsLast selected objects.
nearPointEnd point of last selected object near to end point of existing loop string.

Returns a Traverse loop by using start edge/end edge or not.


Created in NX7.5.0.

License requirements : None

Returns the option to exit the current loop.


Created in NX7.5.0.

License requirements : None

void NXOpen::Tooling::TraverseLoopBuilder::MoveCurves ( const std::vector< NXOpen::NXObject * > &  pPartingLines)

Move extract curves that are not parting lines to the invisible layer.


Created in NX7.5.0.

License requirements : None

Parameters:
pPartingLinesparting lines obtained by Traverse Loop which can be edges or curves.

Reset traverse data after one loop closed.


Created in NX7.5.0.

License requirements : None

Returns the selected edges and curves which will form the loop.


Created in NX7.5.0.

License requirements : None

Sets the option to bridge gap or not.


Created in NX7.5.0.

License requirements : None

Parameters:
bridgeGapbridgegap

Sets a Traverse loop by following face color or not.


Created in NX7.5.0.

License requirements : None

Parameters:
byColorbycolor

Sets a Traverse loop by using start edge/end edge or not.


Created in NX7.5.0.

License requirements : None

Parameters:
endEdgeendedge

Sets the option to exit the current loop.


Created in NX7.5.0.

License requirements : None

Parameters:
isExitLoopisexitloop

Sets the chaining tolerance.


Created in NX7.5.0.

License requirements : None

Parameters:
tolSettingtolsetting
void NXOpen::Tooling::TraverseLoopBuilder::SetTraverseStartEndPoint ( NXOpen::NXObject candidate,
const NXOpen::Point3d pointCloseCursor,
const std::vector< NXOpen::NXObject * > &  selections 
)

Set start and end points for traversal.


Created in NX7.5.0.

License requirements : None

Parameters:
candidateFirst selected object.
pointCloseCursorEnd point of selected object used to start traverse.
selectionsAll selected objects to traverse.

Make parting layer as the work layer.


Created in NX7.5.0.

License requirements : None

Returns the chaining tolerance.


Created in NX7.5.0.

License requirements : None


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