pycatia.cat_str_functional_interfaces.sfm_opening_contours_mgr¶
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_opening_contours_mgr.SFMOpeningContoursMgr(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSfmOpeningContoursMgrGets CATIASfmOpeningContoursMgr.Use this manager to GetAvailableStdOpeningContours &GetStdOpeningContourParams.Example:Retrives the Manager from factory‘Get the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)‘Retrieve the Contour ManagerDim ObjSfmContourMgr As SfmOpeningContoursMgrSet ObjSfmContourMgr = Factory.GetOpeningMgr(Part1, “SfmOpeningContoursMgr”)- get_available_std_opening_contours(o_list_contour_names: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAvailableStdOpeningContours(CATSafeArrayVariantoListContourNames)Get The list of Available Contours.Parameters:oListContourNames[out] Available Contour namesReturns:S_OK if everything ran okExample:The Example demonstrates how to see available contours. Choose therequired contour from the list.‘Get the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)‘Get the Contour ManagerDim ObjSfmContourMgr As SfmOpeningContoursMgrSet ObjSfmContourMgr = Factory.GetOpeningMgr(Part1, “SfmOpeningContoursMgr”)‘Get The List of Available ContoursDim oListContourNames() As VariantObjSfmContourMgr.GetAvailableStdOpeningContoursoListContourNames‘Display The List of Available ContoursDim NbOfContour As LongNbOfContour = UBound(oListContourNames)Display List of contoursFor i = 0 To NbOfContourMsgBox oListContourNames(i)Next
- Parameters:
o_list_contour_names (tuple) –
- Return type:
cat_variant
- get_std_opening_contour_params(i_contour_name: str) SFMStandardContourParameters ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetStdOpeningContourParams(CATBSTR iContourName) AsSfmStandardContourParametersGet The list of Parameters for a selected Contour Name.The list variesdepending on the type of contour.Parameters:iContourName[in] Contour names for which parameters need to be set.oListCkeParms[out] List of Parameters.Returns:S_OK if everything ran okExample:The Example demonstartes what parameters are required to be set fora chosen contour.Here “Sfm_Rect” is the chosencontour.‘Retrieve the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)‘Retrieve the Contour ManagerDim ObjSfmContourMgr As SfmOpeningContoursMgrSet ObjSfmContourMgr = Factory.GetOpeningMgr(Part1, “SfmOpeningContoursMgr”)‘ Enter Contour Name for which Parameter values need to besetDim oListCkeParms AsSfmStandardContourParametersSet oListCkeParms = ObjSfmContourMgr.GetStdOpeningContourParams(“Sfm_Rect”)‘Display List of Parameters for Selected ContourDim NbOfParam As LongNbOfParam = oListCkeParms.CountDim ContourParam As ParameterDim ContourParamName As StringFor i = 1 To NbOfParamSet ContourParam = oListCkeParms.Item(i)ContourParamName = oListCkeParms.Item(i).NameMsgBox ContourParamName‘Set Contour Parameter ValuesIf ContourParamName = “Sfm_Width” ThenContourParam.ValuateFromString (“1000mm”)End IfIf ContourParamName = “Sfm_Height” ThenContourParam.ValuateFromString (“5000mm”)End IfIf ContourParamName = “Sfm_CornerRadius” ThenContourParam.ValuateFromString (“10mm”)End IfNext
- Parameters:
i_contour_name (str) –
- Return type: