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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.FactorySfmOperationFactoryGets the Operation Factory.Example:This Example Retrieves SfmOperationFactory from Part.Set part1 = partDocument1.PartDim Factory As SfmOperationFactorySet 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) AsCATSafeArrayVariantGets the list of available Slots from catalog for a givenProfile(Stiffener/Member).Parameters:iSfmProfile[in] The given profile.oListofSlotNames[out] The List of Slots available.Returns:S_OK if everything ran okExample:This Example retrieves the list of avaliableSlots.Dim FactoryObj As SfmOperationFactorySet FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)Dim ListOfAvailableSlots() As VariantListOfAvailableSlots = 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 SfmEndcutManagerGets the Endcut Manager.Parameters:oSfmEndcutManager[out] The retrieved Manager.Returns:S_OK if everything ran okExample:This Example retrieves the Endcut Manager from theFactory.Dim FactoryObj As SfmOperationFactorySet FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)Dim EndCutManagerObj As SfmEndcutManagerSet EndCutManagerObj = FactoryObj.GetEndcutManager
- Return type:
- 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 fromcatalog.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 okExample:This Example retrieves Parameters for Slot.Dim FactoryObj As SfmOperationFactorySet FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)Dim oListSlotParams As SfmConnectionParametersDim oListSlotPramNames() As VariantSlotFactoryObj.GetSlotParameters SfmProfileObj,“Tee_Slot_thru_Plate”, oListSlotParams,oListSlotPramNames‘Reading Slot Param ValuesDim UDFParam As ParameterParamCount = oListSlotParams.CountFor i = 1 To ParamCountSet UDFParam = oListSlotParams.Item(i)ParamName = oListSlotPramNames(i - 1)ParamValue = UDFParam.ValueAsStringEnd IfNext
- Parameters:
i_sfm_profile (SFMProfile) –
i_slot_name (str) –
o_list_slot_parameters (SFMConnectionParameters) –
o_list_slot_param_names (tuple) –
- Return type:
cat_variant