public interface StockDataCollection extends TaggedObjectCollection
StockData
objects. RouteManager
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
StockData |
createStockData()
Creates a new stock data in the work part.
|
StockData |
createStockData(CharacteristicList values)
Creates (or finds an existing
StockData ) object in the work
part that has the characteristics specified by the input list of characteristic values. |
void |
removeUnusedStockData()
Logs for deletion any
StockData objects in the
input part not referenced by any Stock ,
Wire and CrossSection
not referenced by any StockData . |
_find_next, iterator
StockData createStockData(CharacteristicList values) throws NXException, RemoteException
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.
Routing.RouteManager#setPartTypeFlag
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 );
values
- NXException
RemoteException
StockData createStockData() throws NXException, RemoteException
CrossSection
and Anchor
objects
in the work part. After calling this routine call Routing.RouteManager#setPartTypeFlag
to RouteManager.PartType.STOCK
,
RouteManager.PartType.OVERSTOCK
, or
RouteManager.PartType.FILLER
to properly qualify this
as a stock definition part.
NXException
RemoteException
void removeUnusedStockData() throws NXException, RemoteException
StockData
objects in the
input part not referenced by any Stock
,
Wire
and CrossSection
not referenced by any StockData
.
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.