pycatia.cat_str_functional_interfaces.sfm_standard_opening¶
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_standard_opening.SFMStandardOpening(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSfmStandardOpeningDefines Edition Techniques for Standard Openings.- get_contour(o_contour_name: str, o_list_contour_params: SFMStandardContourParameters) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetContour(CATBSTR oContourName,SfmStandardContourParameters oListContourParams)Gets Contour Information for Standard Opening.Parameters:oContourName[out] The name of the Standard Opening contour for this opening.oListContourParams[out] A list of volatile objects (accessed through CATIAParameter)specifying Cke parameters controlling the size of this contour. The Ckeparameters are retrieved using the CATIAParameter interface. These Ckeparameters are normally persistent parameter objects in the model (if they havebeen stored), but in some cases, these may be volatile parameters. Theparameters are locked if they cannot be modified.Returns:S_OK if everything ran okExample:This Example retrieves the contour information for standardopening.Dim StrContourName As StringDim StrContourParams AsSfmStandardContourParametersStdOpening.GetContour StrContourName,StrContourParams
- Parameters:
o_contour_name (str) –
o_list_contour_params (SFMStandardContourParameters) –
- Return type:
None
- get_positioning_strategy(o_pos_strategy_name: str, o_list_pos_params: SFMStandardPosStrategyParameters) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetPositioningStrategy(CATBSTR oPosStrategyName,SfmStandardPosStrategyParameters oListPosParams)Gets the list of Position Strategy Parameters.Parameters:oPosStrategyName[out] The name of the Standard Opening Position Strategy for thisopening.oListPosParams[out] A list of the parameter group objects defining thePositioning Specification. The number and types of objects in this list dependon the Positioning Strategy name.See also:Returns:S_OK if everything ran okExample:This Example retrieves the Position Strategy information forexisting standard opening.Dim StrPosStrategyName As StringDim StrPosStrategyParams AsSfmStandardPosStrategyParametersStdOpening1.GetPositioningStrategy StrPosStrategyName,StrPosStrategyParams
- Parameters:
o_pos_strategy_name (str) –
o_list_pos_params (SFMStandardPosStrategyParameters) –
- Return type:
None
- set_contour(i_contour_name: str, i_list_contour_params: SFMStandardContourParameters) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetContour(CATBSTR iContourName,SfmStandardContourParameters iListContourParams)Sets Contour Information for Standard Opening.Parameters:iContourName[in] The name of the Standard Opening contour for this opening.iListContourParams[in] A list of volatile objects (accessed through CATIAParameter)specifying Cke parameters controlling the size of this contour. The Ckeparameters are retrieved using the CATIAParameter interface. These Ckeparameters are normally persistent parameter objects in the model (if they havebeen stored), but in some cases, these may be volatile parameters. Theparameters are locked if they cannot be modified.Returns:S_OK if everything ran okExample:This Example changes the parameter values for existing openingcreated using “Sfm_rect” contour.‘ First Get the Conotur.Dim StrContourName As StringDim StrContourParams AsSfmStandardContourParametersStdOpening.GetContour StrContourName StrContourParams‘ Get The countDim NbofParams As LongNbofParams = StrContourParams .Count‘ Modify the values inside the for loopDim ParamName As StringDim ParamValue As ParameterFor i = 1 To NbofParamsSet ParamValue = StrContourParams .Item(i)ParamName = ParamValue.NameIf ParamName = “Sfm_Width” ThenParamValue .ValuateFromString (“1000mm”)End IfIf ParamName = “Sfm_Height” ThenParamValue .ValuateFromString (“1000mm”)End IfIf ParamName = “Sfm_CornerRadius” ThenParamValue .ValuateFromString (“25mm”)End IfNext‘ Set the contour with new valuesStdOpening.SetContour StrContourName , StrContourParams
- Parameters:
i_contour_name (str) –
i_list_contour_params (SFMStandardContourParameters) –
- Return type:
None
- set_positioning_strategy(i_pos_strategy_name: str, i_list_pos_params: SFMStandardPosStrategyParameters) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPositioningStrategy(CATBSTR iPosStrategyName,SfmStandardPosStrategyParameters iListPosParams)Sets the Position Strategy and Positin StrategyParameters.Parameters:iPosStrategyName[in] The name of the Standard Opening Position Strategy for thisopening.iListPosParams[in] A list of the parameter group objects defining the PositioningSpecification. The number and types of objects in this list depend on thePositioning Strategy name.See also:Returns:S_OK if everything ran okExample:This Example modifies the Position Strategy Parameters for existingstandard opening created usingCATSfmPosOffsetOffset.‘Prepare a New List for U References. The list will now containone element.Dim UrefListNew As SfmReferencesDim UrefNew As ReferenceSet UrefNew = Part1.FindObjectByName(“CROSS.95”)UrefListNew.Add UrefNew‘Prepare a New List for VReferences. The list will now contain oneelement.Dim VrefListNew As SfmReferencesDim VrefNew As ReferenceSet VrefNew = Part1.FindObjectByName(“LONG.0”)VrefListNew.Add VrefNew‘Get Position Strategy Name and ParametersDim StrPosStrategyName As StringDim StrPosStrategyParams AsSfmStandardPosStrategyParametersStdOpening1.GetPositioningStrategy StrPosStrategyName,StrPosStrategyParams‘SetPosParamData on retrieved StrPosStrategyParams. Enter newvalues for offset, rotation angle & referencelistStrPosStrategyParams.SetPosParamData “CATSfmPosOffsetOffset”, 40,UrefListNew, 25, UrefListNew, 30StdOpening1.SetPositioningStrategy StrPosStrategyName,StrPosStrategyParamsPart1.Update
- Parameters:
i_pos_strategy_name (str) –
i_list_pos_params (SFMStandardPosStrategyParameters) –
- Return type:
None