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

Builder for creating/editing stocks. More...

Inheritance diagram for NXOpen::Routing::StockBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  StockStyleType { StockStyleTypeCenterline, StockStyleTypeSimpleSolid, StockStyleTypeDetailedSolid }
 The stock display style. More...
 

Public Member Functions

bool FlipStock ()
 Returns the stock flip flag
Created in NX6.0.0. More...
 
bool GridTopologyEligibilityFlag ()
 Returns the grid topology eligibility flag. More...
 
bool RemoveExistingStock ()
 Returns the remove existing stock flag. More...
 
NXOpen::ExpressionRotationValue ()
 Returns the rotation value. More...
 
NXOpen::Routing::RouteObjectCollectorSegmentCollector ()
 Returns the routing object collector that collects segments to assign stock to. More...
 
void SetFlipStock (bool flipStock)
 Sets the stock flip flag
Created in NX6.0.0. More...
 
void SetGridTopologyEligibilityFlag (bool gridOptionEligible)
 Sets the grid topology eligibility flag. More...
 
void SetRemoveExistingStock (bool removeStock)
 Sets the remove existing stock flag. More...
 
void SetStockAnchor (const NXString &anchorName)
 Sets the NXOpen::Routing::Anchor name associated with the stock. More...
 
void SetStockAnchor (const char *anchorName)
 Sets the NXOpen::Routing::Anchor name associated with the stock. More...
 
void SetStockSettings (NXOpen::Routing::PathStockBuilder *stockBuilder)
 Sets the stock settings for stock assignment. More...
 
void SetStockStyle (NXOpen::Routing::StockBuilder::StockStyleType stockStyle)
 Sets the stock style of the stock to assign
Created in NX6.0.0. More...
 
void SetSwapProfile (bool swapProfile)
 Sets the profile swap flag. More...
 
NXString StockAnchor ()
 Returns the NXOpen::Routing::Anchor name associated with the stock. More...
 
NXOpen::Routing::PathStockBuilderStockSettings ()
 Returns the stock settings for stock assignment. More...
 
NXOpen::Routing::StockBuilder::StockStyleType StockStyle ()
 Returns the stock style of the stock to assign
Created in NX6.0.0. More...
 
bool SwapProfile ()
 Returns the profile swap flag. 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

Builder for creating/editing stocks.

Create Stock: Takes a set of segments and assign the selected the stock to the segments. The stock style and orientation settings are optional. Edit Stock: Takes in the selected stock to edit as input and redefines the stock with the new settings.
To create a new instance of this class, use NXOpen::Routing::RouteManager::CreateStockBuilder
Default values.

Property Value

FlipStock

0

RemoveExistingStock

1

RotationValue.Value

0

StockStyle

SimpleSolid

SwapProfile

0


Created in NX6.0.0.

Member Enumeration Documentation

The stock display style.

Enumerator
StockStyleTypeCenterline 

Centreline.

StockStyleTypeSimpleSolid 

Simple Solid.

StockStyleTypeDetailedSolid 

Detailed Solid.

Member Function Documentation

bool NXOpen::Routing::StockBuilder::FlipStock ( )

Returns the stock flip flag
Created in NX6.0.0.



License requirements : routing_base ("Routing Basic")

bool NXOpen::Routing::StockBuilder::GridTopologyEligibilityFlag ( )

Returns the grid topology eligibility flag.

When this flag is set, a non circular stock will produce bend faces in the bend regions instead of merged faces. This flag has no effect on circular stock.
Created in NX10.0.0.

License requirements : routing_base ("Routing Basic")

bool NXOpen::Routing::StockBuilder::RemoveExistingStock ( )

Returns the remove existing stock flag.

If set to TRUE the existing stock on the path will be removed when assigning new stock.
Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Expression* NXOpen::Routing::StockBuilder::RotationValue ( )

Returns the rotation value.

Determines the rotation angle of the stock.
Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Routing::RouteObjectCollector* NXOpen::Routing::StockBuilder::SegmentCollector ( )

Returns the routing object collector that collects segments to assign stock to.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

void NXOpen::Routing::StockBuilder::SetFlipStock ( bool  flipStock)

Sets the stock flip flag
Created in NX6.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
flipStockflipstock
void NXOpen::Routing::StockBuilder::SetGridTopologyEligibilityFlag ( bool  gridOptionEligible)

Sets the grid topology eligibility flag.

When this flag is set, a non circular stock will produce bend faces in the bend regions instead of merged faces. This flag has no effect on circular stock.
Created in NX10.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
gridOptionEligiblegridoptioneligible
void NXOpen::Routing::StockBuilder::SetRemoveExistingStock ( bool  removeStock)

Sets the remove existing stock flag.

If set to TRUE the existing stock on the path will be removed when assigning new stock.
Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
removeStockremovestock
void NXOpen::Routing::StockBuilder::SetStockAnchor ( const NXString anchorName)

Sets the NXOpen::Routing::Anchor name associated with the stock.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
anchorNameanchorname
void NXOpen::Routing::StockBuilder::SetStockAnchor ( const char *  anchorName)

Sets the NXOpen::Routing::Anchor name associated with the stock.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
anchorNameanchorname
void NXOpen::Routing::StockBuilder::SetStockSettings ( NXOpen::Routing::PathStockBuilder stockBuilder)

Sets the stock settings for stock assignment.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
stockBuilderstockbuilder
void NXOpen::Routing::StockBuilder::SetStockStyle ( NXOpen::Routing::StockBuilder::StockStyleType  stockStyle)

Sets the stock style of the stock to assign
Created in NX6.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
stockStylestockstyle
void NXOpen::Routing::StockBuilder::SetSwapProfile ( bool  swapProfile)

Sets the profile swap flag.

Determines whether the profile should be at the path start or end.
Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
swapProfileswapprofile
NXString NXOpen::Routing::StockBuilder::StockAnchor ( )

Returns the NXOpen::Routing::Anchor name associated with the stock.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Routing::PathStockBuilder* NXOpen::Routing::StockBuilder::StockSettings ( )

Returns the stock settings for stock assignment.


Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Routing::StockBuilder::StockStyleType NXOpen::Routing::StockBuilder::StockStyle ( )

Returns the stock style of the stock to assign
Created in NX6.0.0.



License requirements : routing_base ("Routing Basic")

bool NXOpen::Routing::StockBuilder::SwapProfile ( )

Returns the profile swap flag.

Determines whether the profile should be at the path start or end.
Created in NX6.0.0.

License requirements : routing_base ("Routing Basic")


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