NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Formboard::FormboardLayoutBuilder Class Reference

Class that performs the "layout" of Formboard geometry. More...

Inheritance diagram for NXOpen::Formboard::FormboardLayoutBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  BranchAngle { BranchAngleAsDesigned, BranchAngleStandardAngles, BranchAngleMaximumAngles, BranchAngleRandomAngles }
 Methods for determining which angles to apply at each branch of the Formboard. More...
 
enum  BranchShape { BranchShapeStraight, BranchShapeAngled }
 Shape option for the branches. More...
 
enum  MainRunType { MainRunTypeLongest, MainRunTypeThickest, MainRunTypeUserSelection }
 Selection method for the set of segments that define the main run of the formboard geometry. More...
 

Public Member Functions

NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle BranchAngleMethod ()
 Returns the branch angle type. More...
 
NXOpen::Formboard::FormboardLayoutBuilder::BranchShape BranchShapeType ()
 Returns the branch shape type. More...
 
void CreateDefaultGeometry ()
 Creates the initial set of formboard geometry using the current default values stored in the builder. More...
 
NXOpen::Formboard::LayoutLengthOptionsLengthOptions ()
 Returns the length options for the layout operation. More...
 
NXOpen::Routing::SelectControlPointMainRunEndSelection ()
 Returns the end of the main run. More...
 
NXOpen::Formboard::FormboardLayoutBuilder::MainRunType MainRunMethod ()
 Returns the main run method. More...
 
NXOpen::PointMainRunOrigin ()
 Returns the main run origin. More...
 
NXOpen::Routing::SelectControlPointMainRunStartSelection ()
 Returns the start of the main run. More...
 
NXOpen::ExpressionMaximumRandomAngle ()
 Returns the maximum random angle. More...
 
NXOpen::ExpressionMinimumRandomAngle ()
 Returns the minimum random angle. More...
 
NXOpen::ExpressionPrimaryStandardAngle ()
 Returns the primary standard angle. More...
 
bool ReverseMainRun ()
 Returns the flag that determines whether the main run is "reversed" or not. More...
 
NXOpen::ExpressionSecondaryStandardAngle ()
 Returns the secondary standard angle. More...
 
void SetBranchAngleMethod (NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle branchAngle)
 Sets the branch angle type. More...
 
void SetBranchShapeType (NXOpen::Formboard::FormboardLayoutBuilder::BranchShape branchShape)
 Sets the branch shape type. More...
 
void SetMainRunMethod (NXOpen::Formboard::FormboardLayoutBuilder::MainRunType mainRunType)
 Sets the main run method. More...
 
void SetMainRunOrigin (NXOpen::Point *mainRunOrigin)
 Sets the main run origin. More...
 
void SetReverseMainRun (bool reverseMainRun)
 Sets the flag that determines whether the main run is "reversed" or not. More...
 
NXOpen::ExpressionTertiaryStandardAngle ()
 Returns the tertiary standard angle. More...
 
void TranslateToNewOrigin ()
 Translates the formboard geometry so that it matches the new main run origin, this is a more lightweight operation than the full UpdateLayout operation. More...
 
void UpdateLayout ()
 Updates the orientation and placement of the formboard geometry to match the current set of layout options stored within the builder. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Class that performs the "layout" of Formboard geometry.

Creates all geometry chosen by the user to flatten into a drawing and orients the geometry to match the criteria specified in this builder class. This builder must only be instantiated and used after the harnesses have been specified and stored using the NXOpen::Formboard::FormboardManager::StoreHarnessesToFlatten method.
To create a new instance of this class, use NXOpen::Formboard::FormboardManager::CreateLayoutBuilder

Created in NX7.5.0.

Member Enumeration Documentation

Methods for determining which angles to apply at each branch of the Formboard.

Enumerator
BranchAngleAsDesigned 

Use the angle equal to the 3D angle of the branch in the 3D harness.

BranchAngleStandardAngles 

Apply a standard angle to the branch, the level of the branch determines which angle to apply.

BranchAngleMaximumAngles 

Apply the largest possible angle values at every branch to force the harness to spread out.

BranchAngleRandomAngles 

Randomly choose an angle for each branch.

Shape option for the branches.

Enumerator
BranchShapeStraight 

Each branch forms a straight line.

BranchShapeAngled 

Branch becomes angled at each location that forms a new branch.

Selection method for the set of segments that define the main run of the formboard geometry.

Enumerator
MainRunTypeLongest 

Path of longest wire.

MainRunTypeThickest 

Path of longest wire contained within the thickest bundle.

MainRunTypeUserSelection 

Manual selection of path.

Member Function Documentation

NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleMethod ( )

Returns the branch angle type.

Specifies how the layout algorithm determines the angle between each child branch and its parent branch.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Formboard::FormboardLayoutBuilder::BranchShape NXOpen::Formboard::FormboardLayoutBuilder::BranchShapeType ( )

Returns the branch shape type.


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

void NXOpen::Formboard::FormboardLayoutBuilder::CreateDefaultGeometry ( )

Creates the initial set of formboard geometry using the current default values stored in the builder.

This geometry is necessary for the UI to allow the user to see and select formboard geometry, for example to define a Main Run. Does nothing if the work part already contains formboard geometry.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Formboard::LayoutLengthOptions* NXOpen::Formboard::FormboardLayoutBuilder::LengthOptions ( )

Returns the length options for the layout operation.

The length options only have any effect if this is the first time that the Formboard geometry is being created in the drawing.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Routing::SelectControlPoint* NXOpen::Formboard::FormboardLayoutBuilder::MainRunEndSelection ( )

Returns the end of the main run.

Contains the ending control point that defines the main run of the Formboard if the NXOpen::Formboard::FormboardLayoutBuilder::MainRunType is NXOpen::Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection .
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Formboard::FormboardLayoutBuilder::MainRunType NXOpen::Formboard::FormboardLayoutBuilder::MainRunMethod ( )

Returns the main run method.


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Point* NXOpen::Formboard::FormboardLayoutBuilder::MainRunOrigin ( )

Returns the main run origin.

The location in modeling space of the start of the main run. The layout operation translates the main run such that it start RCP is located at this location.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Routing::SelectControlPoint* NXOpen::Formboard::FormboardLayoutBuilder::MainRunStartSelection ( )

Returns the start of the main run.

Contains the starting control point that defines the main run of the Formboard if the NXOpen::Formboard::FormboardLayoutBuilder::MainRunType is NXOpen::Formboard::FormboardLayoutBuilder::MainRunTypeUserSelection .
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Expression* NXOpen::Formboard::FormboardLayoutBuilder::MaximumRandomAngle ( )

Returns the maximum random angle.

Used when NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle is NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles .


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Expression* NXOpen::Formboard::FormboardLayoutBuilder::MinimumRandomAngle ( )

Returns the minimum random angle.

Used when NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle is NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleRandomAngles .


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Expression* NXOpen::Formboard::FormboardLayoutBuilder::PrimaryStandardAngle ( )

Returns the primary standard angle.

The layout algorithm snaps the angle of the branch to a multiple of this angle. Only used when the NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleMethod is NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles .
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

bool NXOpen::Formboard::FormboardLayoutBuilder::ReverseMainRun ( )

Returns the flag that determines whether the main run is "reversed" or not.

If true then the direction and order of the main run path is reversed. The end of the main run becomes the start and vice-versa. The list of path segments is not modified or re-ordered, only the order in which the path segments is evaluated when laying out the geometry.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

NXOpen::Expression* NXOpen::Formboard::FormboardLayoutBuilder::SecondaryStandardAngle ( )

Returns the secondary standard angle.

The layout algorithm snaps the angle of the branch to a multiple of this angle when all multiples of the primary angle have been used.

Only used when the NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle is NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles .
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

void NXOpen::Formboard::FormboardLayoutBuilder::SetBranchAngleMethod ( NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle  branchAngle)

Sets the branch angle type.

Specifies how the layout algorithm determines the angle between each child branch and its parent branch.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

Parameters
branchAnglebranchangle
void NXOpen::Formboard::FormboardLayoutBuilder::SetBranchShapeType ( NXOpen::Formboard::FormboardLayoutBuilder::BranchShape  branchShape)

Sets the branch shape type.


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

Parameters
branchShapebranchshape
void NXOpen::Formboard::FormboardLayoutBuilder::SetMainRunMethod ( NXOpen::Formboard::FormboardLayoutBuilder::MainRunType  mainRunType)

Sets the main run method.


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

Parameters
mainRunTypemainruntype
void NXOpen::Formboard::FormboardLayoutBuilder::SetMainRunOrigin ( NXOpen::Point mainRunOrigin)

Sets the main run origin.

The location in modeling space of the start of the main run. The layout operation translates the main run such that it start RCP is located at this location.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

Parameters
mainRunOriginmainrunorigin
void NXOpen::Formboard::FormboardLayoutBuilder::SetReverseMainRun ( bool  reverseMainRun)

Sets the flag that determines whether the main run is "reversed" or not.

If true then the direction and order of the main run path is reversed. The end of the main run becomes the start and vice-versa. The list of path segments is not modified or re-ordered, only the order in which the path segments is evaluated when laying out the geometry.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

Parameters
reverseMainRunreversemainrun
NXOpen::Expression* NXOpen::Formboard::FormboardLayoutBuilder::TertiaryStandardAngle ( )

Returns the tertiary standard angle.

The layout algorithm snaps the angle of the branch to a multiple of this angle when all multiples of the primary and secondary angles have been used.

Only used when the NXOpen::Formboard::FormboardLayoutBuilder::BranchAngle is NXOpen::Formboard::FormboardLayoutBuilder::BranchAngleStandardAngles .
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

void NXOpen::Formboard::FormboardLayoutBuilder::TranslateToNewOrigin ( )

Translates the formboard geometry so that it matches the new main run origin, this is a more lightweight operation than the full UpdateLayout operation.

The assumption here is that the only change to the builder is with the main run origin.
Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")

void NXOpen::Formboard::FormboardLayoutBuilder::UpdateLayout ( )

Updates the orientation and placement of the formboard geometry to match the current set of layout options stored within the builder.


Created in NX7.5.0.

License requirements : routing_harness ("Routing Harness")


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