DNBFastenerItemServices (Object)


Methods


Sub AssignFastenerToProcess( iFastener, iProcess, eStatus)
Assigns a specified DELMIAFastener to a specified Activity and return the status of the action. Activity can be a TSA (for Resource) as well. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim AssignStatus As EnumParam myObject.AssignFastenerToProcess MyFastener,MyActivity,AssignStatus MsgBox AssignStatus
Sub AssignFastenerToResource( iFastener, iResource, eStatus)
Assigns a specified DELMIAFastener to a specified Resource and return the status of the action. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim AssignStatus As EnumParam myObject.AssignFastenerToResource MyFastener,MyResource,AssignStatus MsgBox AssignStatus
Sub GetFasteners( iProducts, bJoiningFasteners, oFastenerArray)
Gets all the Fasteners on the products.
Parameters:
bJoiningFasteners
Decides whether only the fastener joining the products will be returned(true) or all the fasteners on all the products(false)
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim MyNum MyNum = myObject.GetNumberOfFasteners (MyProductArray, false) Dim MyFastenerList() As AnyObject ReDim MyFastenerList(MyNum) myObject.GetFasteners MyProductList,false,MyFastenerList
Sub GetFastenersFromProcess( iOperation, iFasteners)
Gets all the DELMIAFasteners assigned to the Activity. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim FastenerLot As FatenerSet myObject.GetFastenersFromProcess MyActivity,FastenerLot
Sub GetFastenersFromResource( iResource, iFasteners)
Gets all the DELMIAFasteners assigned to the Resource. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim FastenerLot As FatenerSet myObject.GetFastenersFromProcess MyResource,FastenerLot
Func GetNumberOfFasteners( iProducts, bJoiningFasteners) As
Gets the number of Fasteners on the products.
Parameters:
bJoiningFasteners
Decides whether only the fastener joining the products will be returned(true) or all the fasteners on all the products(false)
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim MyNum MyNum = myObject.GetNumberOfFasteners (MyProductArray, false)
Sub RemoveFastenerFromProcess( iFastener, iProcess)
Unassigns a specified DELMIAFastener from a specified Activity. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") myObject.RemoveFastenerFromProcess MyFastener,MyActivity
Sub RemoveFastenerFromResource( iFastener, iResource)
Unassigns a specified DELMIAFastener from a specified Resource. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") myObject.RemoveFastenerFromResource MyFastener,MyResource