All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

DNBFastenerItemServices (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---DNBFastenerItemServices
 



Method Index

AssignFastenerToProcess
Assigns a specified DELMIAFastener to a specified Activity and return the status of the action.
AssignFastenerToResource
Assigns a specified DELMIAFastener to a specified Resource and return the status of the action.
GetFasteners
Gets all the Fasteners on the products.
GetFastenersFromProcess
Gets all the DELMIAFasteners assigned to the Activity.
GetFastenersFromResource
Gets all the DELMIAFasteners assigned to the Resource.
GetNumberOfFasteners
Gets the number of Fasteners on the products.
RemoveFastenerFromProcess
Unassigns a specified DELMIAFastener from a specified Activity.
RemoveFastenerFromResource
Unassigns a specified DELMIAFastener from a specified Resource.

Methods


o Sub AssignFastenerToProcess(DELMIAFastener iFastener,
CATIAActivity iProcess,
DNBAssignStatus 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
o Sub AssignFastenerToResource(DELMIAFastener iFastener,
CATIAResource iResource,
DNBAssignStatus 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
o Sub GetFasteners(CATSafeArrayVariant iProducts,
boolean bJoiningFasteners,
CATSafeArrayVariant 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
o Sub GetFastenersFromProcess(CATIAActivity iOperation,
DELMIAFasteners iFasteners)
Gets all the DELMIAFasteners assigned to the Activity. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim FastenerLot As FatenerSet myObject.GetFastenersFromProcess MyActivity,FastenerLot
o Sub GetFastenersFromResource(CATIAResource iResource,
DELMIAFasteners iFasteners)
Gets all the DELMIAFasteners assigned to the Resource. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") Dim FastenerLot As FatenerSet myObject.GetFastenersFromProcess MyResource,FastenerLot
o Func GetNumberOfFasteners(CATSafeArrayVariant iProducts,
boolean bJoiningFasteners) As long
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)
o Sub RemoveFastenerFromProcess(DELMIAFastener iFastener,
CATIAActivity iProcess)
Unassigns a specified DELMIAFastener from a specified Activity. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") myObject.RemoveFastenerFromProcess MyFastener,MyActivity
o Sub RemoveFastenerFromResource(DELMIAFastener iFastener,
CATIAResource iResource)
Unassigns a specified DELMIAFastener from a specified Resource. *
Example:
Set myObject = CATIA.GetItem("DNBFastenerItemServices") myObject.RemoveFastenerFromResource MyFastener,MyResource

Copyright © 2003, Dassault Systèmes. All rights reserved.