pycatia.cat_str_functional_interfaces.sfm_connection_parameters¶
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_connection_parameters.SFMConnectionParameters(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionSfmConnectionParametersInterface to get the parameters defining the UDF for Slots andEndcuts.Role: To Get/Set the parameters of the UDF.See also:SfmSlots, SfmEndcut, SfmEndcutManager- item(i_index: cat_variant) Parameter ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As ParameterGets a Item from the collection list.Parameters:iIndex[in] Index of the item to be retrieved.oStdConParm[out] The required parameter.Returns:S_OK if everything ran ok.Example:This example retrieves and manipulates existing BuiltIn EndCutparameters.Dim oStartEndCutObj As SfmEndcutSet oStartEndCutObj = StiffObj.GetEndcut(1)Dim oStartEndCutType,oStartEndCutName As StringDim oLimitContextList As SfmReferencesDim oConnectionParamList AsSfmConnectionParametersDim oConnectionParamNames() As VariantoStartEndCutObj.GetEndcutinfo oStartEndCutType, oStartEndCutName,oLimitContextList, oConnectionParamList, oConnectionParamNames‘ Reading ParametersDim SizeOfUDFParams As LongSizeOfUDFParams = oConnectionParamList.CountDim UDFParam As ParameterDim UDFParamName, UDFParamValue As StringFor i = 1 To SizeOfUDFParamsSet UDFParam = oConnectionParamList.Item(i)UDFParamName = oConnectionParamNames(i - 1)UDFParamValue = UDFParam.ValueAsStringNext‘ Setting ParametersFor j = 1 To SizeOfUDFParamsSet UDFParam = oConnectionParamList.Item(j)UDFParamName = oConnectionParamNames(j - 1)If (UDFParamName = “A1”) ThenUDFParam.ValuateFromString (“16deg”)End IfIf (UDFParamName = “A2”) ThenUDFParam.ValuateFromString (“16deg”)End IfIf (UDFParamName = “B”) ThenUDFParam.ValuateFromString (“31deg”)End IfNext
- Parameters:
i_index (cat_variant) –
- Return type: