pycatia.cat_str_functional_interfaces.sfm_operation_factory

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.cat_str_functional_interfaces.sfm_operation_factory.SFMOperationFactory(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
MecModInterfaces.Factory
SfmOperationFactory

Gets the Operation Factory.

Example:
This Example Retrieves SfmOperationFactory from Part.

Set part1 = partDocument1.Part
Dim Factory As SfmOperationFactory
Set Factory = part1.GetCustomerFactory(“SfmOperationFactory”)
get_available_slots_from_catalog(i_sfm_profile: SFMProfile) tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetAvailableSlotsFromCatalog(SfmProfile iSfmProfile) As
CATSafeArrayVariant

Gets the list of available Slots from catalog for a given
Profile(Stiffener/Member).

Parameters:

iSfmProfile
[in] The given profile.
oListofSlotNames
[out] The List of Slots available.

Returns:
S_OK if everything ran ok

Example:
This Example retrieves the list of avaliable
Slots.

Dim FactoryObj As SfmOperationFactory
Set FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)
Dim ListOfAvailableSlots() As Variant
ListOfAvailableSlots = SlotFactoryObj.GetAvailableSlotsFromCatalog(SfmProfileObj)
Parameters:

i_sfm_profile (SFMProfile) –

Return type:

tuple

get_endcut_manager() SFMEndcutManager

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetEndcutManager() As SfmEndcutManager

Gets the Endcut Manager.

Parameters:

oSfmEndcutManager
[out] The retrieved Manager.

Returns:
S_OK if everything ran ok

Example:
This Example retrieves the Endcut Manager from the
Factory.

Dim FactoryObj As SfmOperationFactory
Set FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)
Dim EndCutManagerObj As SfmEndcutManager
Set EndCutManagerObj = FactoryObj.GetEndcutManager
Return type:

SFMEndcutManager

get_slot_parameters(i_sfm_profile: SFMProfile, i_slot_name: str, o_list_slot_parameters: SFMConnectionParameters, o_list_slot_param_names: tuple) cat_variant

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetSlotParameters(SfmProfile iSfmProfile,
CATBSTR iSlotName,
SfmConnectionParameters oListSlotParameters,
CATSafeArrayVariant oListSlotParamNames)

Gets the Slot Parameters and Names for a slot from
catalog.

Parameters:

iSfmProfile
[in] The given profile.
iSlotName
[in] Name of the Slot.
oListSlotParameters
[out] The Slot UDF Parameters with deafult values.

oListSlotParamNames
[out] Slot Parameter Names.

Returns:
S_OK if everything ran ok

Example:
This Example retrieves Parameters for Slot.

Dim FactoryObj As SfmOperationFactory
Set FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)
Dim oListSlotParams As SfmConnectionParameters
Dim oListSlotPramNames() As Variant
SlotFactoryObj.GetSlotParameters SfmProfileObj,
“Tee_Slot_thru_Plate”, oListSlotParams,
oListSlotPramNames
‘Reading Slot Param Values
Dim UDFParam As Parameter
ParamCount = oListSlotParams.Count
For i = 1 To ParamCount
Set UDFParam = oListSlotParams.Item(i)
ParamName = oListSlotPramNames(i - 1)
ParamValue = UDFParam.ValueAsString
End If
Next
Parameters:
Return type:

cat_variant