pycatia.dnb_fastener_interfaces.dnb_fastener_item_services

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.dnb_fastener_interfaces.dnb_fastener_item_services.DnbFastenerItemServices(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
DNBFastenerItemServices
assign_fastener_to_process(i_fastener: Fastener, i_process: Activity, e_status: int) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub AssignFastenerToProcess(Fastener iFastener,
Activity 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
Parameters:
  • i_fastener (Fastener) –

  • i_process (Activity) –

  • e_status (int) – enum dnb_assign_status

Return type:

None

assign_fastener_to_resource(i_fastener: Fastener, i_resource: Resource, e_status: int) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub AssignFastenerToResource(Fastener iFastener,
Resource 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
Parameters:
  • i_fastener (Fastener) –

  • i_resource (Resource) –

  • e_status (int) – enum dnb_assign_status

Return type:

None

get_fasteners(i_products: tuple, b_joining_fasteners: bool, o_fastener_array: tuple) list

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
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
Parameters:
  • i_products (tuple) –

  • b_joining_fasteners (bool) –

  • o_fastener_array (tuple) –

Return type:

AnyObject

get_fasteners_from_process(i_operation: Activity, i_fasteners: FastenerSet) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetFastenersFromProcess(Activity iOperation,
FastenerSet iFasteners)

Gets all the DELMIAFasteners assigned to the Activity. *

Example:
Set myObject = CATIA.GetItem(“DNBFastenerItemServices”)
Dim FastenerLot As FatenerSet
myObject.GetFastenersFromProcess MyActivity,FastenerLot
Parameters:
Return type:

None

get_fasteners_from_resource(i_resource: Resource, i_fasteners: FastenerSet) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetFastenersFromResource(Resource iResource,
FastenerSet iFasteners)

Gets all the DELMIAFasteners assigned to the Resource. *

Example:
Set myObject = CATIA.GetItem(“DNBFastenerItemServices”)
Dim FastenerLot As FatenerSet
myObject.GetFastenersFromProcess MyResource,FastenerLot
Parameters:
Return type:

None

get_number_of_fasteners(i_products: tuple, b_joining_fasteners: bool) int

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
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)
Parameters:
  • i_products (tuple) –

  • b_joining_fasteners (bool) –

Return type:

int

remove_fastener_from_process(i_fastener: Fastener, i_process: Activity) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub RemoveFastenerFromProcess(Fastener iFastener,
Activity iProcess)

Unassigns a specified DELMIAFastener from a specified Activity. *


Example:
Set myObject = CATIA.GetItem(“DNBFastenerItemServices”)
myObject.RemoveFastenerFromProcess MyFastener,MyActivity
Parameters:
Return type:

None

remove_fastener_from_resource(i_fastener: Fastener, i_resource: Resource) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub RemoveFastenerFromResource(Fastener iFastener,
Resource iResource)

Unassigns a specified DELMIAFastener from a specified Resource. *


Example:
Set myObject = CATIA.GetItem(“DNBFastenerItemServices”)
myObject.RemoveFastenerFromResource MyFastener,MyResource
Parameters:
Return type:

None