NX Open C++ Reference Guide
|
Assigns stocks to segments based of users critiera and the current default stock. More...
Public Types | |
enum | AssignMethod { AssignMethodNone, AssignMethodDefaultStock, AssignMethodFromStartObject, AssignMethodDiameterValue, AssignMethodRectangular, AssignMethodFlatOval, AssignMethodSpecifiedStock, AssignMethodFromParts } |
Determines how to choose which stock to assign. More... | |
enum | AssignStockType { AssignStockTypeStock, AssignStockTypeOverstock, AssignStockTypeFiller, AssignStockTypeSpaceReservation } |
Determines the type of stock being assigned. More... | |
Public Member Functions | |
void | AssignStock (const std::vector< NXOpen::Routing::ISegment * > &segments) |
Assigns stock using the method defined by this stock builder object. | |
NXOpen::Routing::PathStockBuilder::AssignMethod | AssignStockMethod () |
Returns the method to determine which stock to assign. | |
double | DiameterValue () |
Returns the diameter value to use for the Routing::PathStockBuilder::AssignMethodDiameterValue method of stock assignment. | |
NXOpen::Expression * | FlatOvalHeight () |
Returns the height value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment. | |
NXOpen::Expression * | FlatOvalRotation () |
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment Created in NX7.5.0. | |
NXOpen::Expression * | FlatOvalWidth () |
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment Created in NX7.5.0. | |
void | GetFlatOvalDimensions (double *height, double *width) |
Get the FlatOval height and width value to use for the FlatOval space reservation assignment Created in NX8.0.0. | |
std::vector < NXOpen::Assemblies::Component * > | GetParts () |
Get the parts to use for the Routing::PathStockBuilder::AssignMethodFromParts method of stock assignment. | |
void | GetRectangularDimensions (double *height, double *width) |
Get the rectangular height and width value to use for the rectangular space reservation assignment Created in NX8.0.0. | |
NXOpen::Routing::CharacteristicList * | GetSpecifiedStock () |
Returns the specified stock to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment. | |
void | GetSpecifiedStock (NXOpen::Routing::CharacteristicList **stockPart, NXOpen::Routing::CharacteristicList **appliedCharx) |
Returns the specified stock and applied characteristics to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment. | |
NXOpen::Expression * | RectangularHeight () |
Returns the height value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment. | |
NXOpen::Expression * | RectangularRotation () |
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment Created in NX7.5.0. | |
NXOpen::Expression * | RectangularWidth () |
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment Created in NX7.5.0. | |
void | SetAssignStockMethod (NXOpen::Routing::PathStockBuilder::AssignMethod method) |
Sets the method to determine which stock to assign. | |
void | SetDiameterValue (double val) |
Sets the diameter value to use for the Routing::PathStockBuilder::AssignMethodDiameterValue method of stock assignment. | |
void | SetFlatOvalDimensions (double height, double width) |
Set the FlatOval height and width value for the FlatOval space reservation assignment Created in NX8.0.0. | |
void | SetParts (const std::vector< NXOpen::Assemblies::Component * > &parts) |
Set the parts to use for the Routing::PathStockBuilder::AssignMethodFromParts method of stock assignment Created in NX7.5.0. | |
void | SetRectangularDimensions (double height, double width) |
Set the rectangular height and width value for the rectangular space reservation assignment Created in NX8.0.0. | |
void | SetSelectedStock (NXOpen::Routing::Stock *stock) |
Set the selected stock Created in NX8.0.0. | |
void | SetSpecifiedStock (NXOpen::Routing::CharacteristicList *stockPart) |
Sets the specified stock to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment. | |
void | SetSpecifiedStock (NXOpen::Routing::CharacteristicList *stockPart, NXOpen::Routing::CharacteristicList *appliedCharx) |
Sets the specified stock and applied characteristics to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment. | |
void | SetStartObject (NXOpen::NXObject *startObject) |
Sets the start object to use for the Routing::PathStockBuilder::AssignMethodFromStartObject method of stock assignment. | |
void | SetStockType (NXOpen::Routing::PathStockBuilder::AssignStockType stockType) |
Sets the type of stock being assigned. | |
void | SettingsChanged () |
Notify the builder that the Routing preferred stock has been modified. | |
NXOpen::NXObject * | StartObject () |
Returns the start object to use for the Routing::PathStockBuilder::AssignMethodFromStartObject method of stock assignment. | |
NXOpen::Routing::PathStockBuilder::AssignStockType | StockType () |
Returns the type of stock being assigned. | |
void | UpdateExistingStock (NXOpen::Routing::Stock *existingStock) |
Updates an existing routing stock with settings stored in the builder. |
Assigns stocks to segments based of users critiera and the current default stock.
To create a new instance of this class, use Routing::RouteManager::CreatePathStockBuilder
Created in NX5.0.0.
Determines how to choose which stock to assign.
AssignMethodNone |
No Stock. |
AssignMethodDefaultStock |
Default Stock. |
AssignMethodFromStartObject |
Finds a stock based off of the default stock and the object selected by the user. |
AssignMethodDiameterValue |
User specified diameter, creates round space reservation stock. |
AssignMethodRectangular |
User specified values, creates rectangular space reservation stock. |
AssignMethodFlatOval |
User specified values, creates flat_oval space reservation stock. |
AssignMethodSpecifiedStock |
Stock selected from Specify Item dialog. |
AssignMethodFromParts |
Find stocks from the part table of parts selected by the user. |
void NXOpen::Routing::PathStockBuilder::AssignStock | ( | const std::vector< NXOpen::Routing::ISegment * > & | segments | ) |
Assigns stock using the method defined by this stock builder object.
Created in NX5.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
segments | segments |
NXOpen::Routing::PathStockBuilder::AssignMethod NXOpen::Routing::PathStockBuilder::AssignStockMethod | ( | ) |
Returns the method to determine which stock to assign.
Created in NX5.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the diameter value to use for the Routing::PathStockBuilder::AssignMethodDiameterValue method of stock assignment.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the height value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment.
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodFlatOval method of stock assignment
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
void NXOpen::Routing::PathStockBuilder::GetFlatOvalDimensions | ( | double * | height, |
double * | width | ||
) |
Get the FlatOval height and width value to use for the FlatOval space reservation assignment
Created in NX8.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_mechanical ("Routing Mechanical")
height | height |
width | width |
std::vector<NXOpen::Assemblies::Component *> NXOpen::Routing::PathStockBuilder::GetParts | ( | ) |
Get the parts to use for the Routing::PathStockBuilder::AssignMethodFromParts method of stock assignment.
void NXOpen::Routing::PathStockBuilder::GetRectangularDimensions | ( | double * | height, |
double * | width | ||
) |
Get the rectangular height and width value to use for the rectangular space reservation assignment
Created in NX8.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_mechanical ("Routing Mechanical")
height | height |
width | width |
Returns the specified stock to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment.
void NXOpen::Routing::PathStockBuilder::GetSpecifiedStock | ( | NXOpen::Routing::CharacteristicList ** | stockPart, |
NXOpen::Routing::CharacteristicList ** | appliedCharx | ||
) |
Returns the specified stock and applied characteristics to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment.
Created in NX6.0.4.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
stockPart | Characteristic list used to find the appropriate Routing::StockData for building the stock. See Routing::StockDataCollection::CreateStockData . |
appliedCharx | Applied characteristics for the specified stock. |
Returns the height value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment.
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the Width value to use for the Routing::PathStockBuilder::AssignMethodRectangular method of stock assignment
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
void NXOpen::Routing::PathStockBuilder::SetAssignStockMethod | ( | NXOpen::Routing::PathStockBuilder::AssignMethod | method | ) |
Sets the method to determine which stock to assign.
Created in NX5.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
method | method |
void NXOpen::Routing::PathStockBuilder::SetDiameterValue | ( | double | val | ) |
Sets the diameter value to use for the Routing::PathStockBuilder::AssignMethodDiameterValue method of stock assignment.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
val | val |
void NXOpen::Routing::PathStockBuilder::SetFlatOvalDimensions | ( | double | height, |
double | width | ||
) |
Set the FlatOval height and width value for the FlatOval space reservation assignment
Created in NX8.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_mechanical ("Routing Mechanical")
height | height |
width | width |
void NXOpen::Routing::PathStockBuilder::SetParts | ( | const std::vector< NXOpen::Assemblies::Component * > & | parts | ) |
Set the parts to use for the Routing::PathStockBuilder::AssignMethodFromParts method of stock assignment
Created in NX7.5.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
parts | Part table parts to get stock characteristics. |
void NXOpen::Routing::PathStockBuilder::SetRectangularDimensions | ( | double | height, |
double | width | ||
) |
Set the rectangular height and width value for the rectangular space reservation assignment
Created in NX8.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_mechanical ("Routing Mechanical")
height | height |
width | width |
Set the selected stock
Created in NX8.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
stock | Selected Stock |
void NXOpen::Routing::PathStockBuilder::SetSpecifiedStock | ( | NXOpen::Routing::CharacteristicList * | stockPart | ) |
Sets the specified stock to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
stockPart | Characteristic list used to find the appropriate Routing::StockData for building the stock. See Routing::StockDataCollection::CreateStockData . |
void NXOpen::Routing::PathStockBuilder::SetSpecifiedStock | ( | NXOpen::Routing::CharacteristicList * | stockPart, |
NXOpen::Routing::CharacteristicList * | appliedCharx | ||
) |
Sets the specified stock and applied characteristics to use for the Routing::PathStockBuilder::AssignMethodSpecifiedStock method of stock assignment.
Created in NX6.0.4.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
stockPart | Characteristic list used to find the appropriate Routing::StockData for building the stock. See Routing::StockDataCollection::CreateStockData . |
appliedCharx | Applied characteristics for the specified stock. |
void NXOpen::Routing::PathStockBuilder::SetStartObject | ( | NXOpen::NXObject * | startObject | ) |
Sets the start object to use for the Routing::PathStockBuilder::AssignMethodFromStartObject method of stock assignment.
Created in NX5.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
startObject | start object |
void NXOpen::Routing::PathStockBuilder::SetStockType | ( | NXOpen::Routing::PathStockBuilder::AssignStockType | stockType | ) |
Sets the type of stock being assigned.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
stockType | stock type |
Notify the builder that the Routing preferred stock has been modified.
This updates the builder so that it now uses the new preferred stock do determine which stock to assign.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the start object to use for the Routing::PathStockBuilder::AssignMethodFromStartObject method of stock assignment.
Created in NX5.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
Returns the type of stock being assigned.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
void NXOpen::Routing::PathStockBuilder::UpdateExistingStock | ( | NXOpen::Routing::Stock * | existingStock | ) |
Updates an existing routing stock with settings stored in the builder.
Created in NX6.0.0.
License requirements : routing_combined ("Routing Combined") OR routing_electrical ("Routing Electrical") OR routing_mechanical ("Routing Mechanical")
existingStock | Existing Stock |