NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Protected Member Functions | Properties | List of all members
NXOpen.Routing.StockDataCollection Class Reference

Represents a collection of NXOpen.Routing.StockData objects. More...

Inheritance diagram for NXOpen.Routing.StockDataCollection:
NXOpen.TaggedObjectCollection NXOpen.Utilities.NXRemotableObject IEnumerable IMessageSink

Public Member Functions

unsafe NXOpen.Routing.StockData CreateStockData (NXOpen.Routing.CharacteristicList values)
 Creates (or finds an existing NXOpen.Routing.StockData ) object in the work part that has the characteristics specified by the input list of characteristic values. More...
 
unsafe NXOpen.Routing.StockData CreateStockData ()
 Creates a new stock data in the work part. More...
 
unsafe void RemoveUnusedStockData ()
 Logs for deletion any NXOpen.Routing.StockData objects in the input part not referenced by any NXOpen.Routing.Stock , NXOpen.Routing.Wire and NXOpen.Routing.CrossSection not referenced by any NXOpen.Routing.StockData . More...
 
NXOpen.Routing.StockData[] ToArray ()
 Returns an array of NXOpen.Routing.StockData objects. More...
 
- Public Member Functions inherited from NXOpen.TaggedObjectCollection
IEnumerator GetEnumerator ()
 Returns an enumerator that iterates through a collection. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Protected Member Functions

override int EnumerateMoveNext (ref Tag currentTag, byte[] state)
 Advances the enumerator to the next element of the collection. More...
 
- Protected Member Functions inherited from NXOpen.TaggedObjectCollection
new void initialize ()
 <exclude> More...
 
- Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject
void initialize ()
 <exclude> More...
 

Properties

Tag Tag [get]
 Returns the tag of this object. More...
 

Detailed Description

Represents a collection of NXOpen.Routing.StockData objects.

To obtain an instance of this class, refer to NXOpen.Routing.RouteManager

Created in NX4.0.0

Member Function Documentation

unsafe NXOpen.Routing.StockData NXOpen.Routing.StockDataCollection.CreateStockData ( NXOpen.Routing.CharacteristicList  values)
inline

Creates (or finds an existing NXOpen.Routing.StockData ) object in the work part that has the characteristics specified by the input list of characteristic values.

Creates the stock by copying the stock defined in the qualified part to the work part. The qualified stock part is specified by the PART_NAME or MEMBER_NAME in the list. If there is no PART_NAME or MEMBER_NAME a stock data, the OD or WIDTH/HEIGHT values are used to generate either a circular or rectangular stock data.

Use this routine to create stock data's in the work part in order to create stocks. Use Routing.RouteManager.PartTypeFlag to create a qualified stock data part.

Example Use:

values = theSession.Preferences.RoutingApplicationView.PartPreferences.PartLibrary.CreateCriteria ( );
values.SetCharacteristic ( "OD", 10.0 );
stock_data = workPart.RouteManager.StockDataCollection.CreateStockData ( values );
stocks = workPart.RouteManager.StockCollection.CreateStock ( stock_data, anchor, cross_section, segments );
workPart.RouteManager.SetPartTypeFlag( Routing.RouteManager.PartType.Stock );

Created in NX4.0.0

License requirements: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")

Parameters
values
Returns
unsafe NXOpen.Routing.StockData NXOpen.Routing.StockDataCollection.CreateStockData ( )
inline

Creates a new stock data in the work part.

The new stock data contains all of the NXOpen.Routing.CrossSection and NXOpen.Routing.Anchor objects in the work part. After calling this routine call Routing.RouteManager.PartTypeFlag to NXOpen.Routing.RouteManager.PartType.Stock , NXOpen.Routing.RouteManager.PartType.Overstock , or NXOpen.Routing.RouteManager.PartType.Filler to properly qualify this as a stock definition part.

Created in NX4.0.0

License requirements: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")

Returns
override int NXOpen.Routing.StockDataCollection.EnumerateMoveNext ( ref Tag  currentTag,
byte[]  state 
)
inlineprotectedvirtual

Advances the enumerator to the next element of the collection.

Implements NXOpen.TaggedObjectCollection.

unsafe void NXOpen.Routing.StockDataCollection.RemoveUnusedStockData ( )
inline

Logs for deletion any NXOpen.Routing.StockData objects in the input part not referenced by any NXOpen.Routing.Stock , NXOpen.Routing.Wire and NXOpen.Routing.CrossSection not referenced by any NXOpen.Routing.StockData .

Created in NX5.0.0

License requirements: routing_advanced ("Routing Advanced"), routing_base ("Routing Basic")

NXOpen.Routing.StockData [] NXOpen.Routing.StockDataCollection.ToArray ( )
inline

Returns an array of NXOpen.Routing.StockData objects.

Property Documentation

Tag NXOpen.Routing.StockDataCollection.Tag
get

Returns the tag of this object.


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