pycatia.cat_str_functional_interfaces.sfm_standard_pos_strategy_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_standard_pos_strategy_parameters.SFMStandardPosStrategyParameters(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSfmStandardPosStrategyParametersSets the Required data for Positioning the Contour.- property count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Count() As long (Read Only)Returns the count of reference elements.Example:This example retrieves gets the count of theReferencesCnt = VrefList.Count
- Return type:
int
- item(i_index: cat_variant) CATBaseUnknown ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As CATBaseUnknown
- Parameters:
i_index (cat_variant) –
- Return type:
- set_pos_param_data(i_pos_strategy_name: str, i_rotation_angle: float, i_uref_elem: SFMReferences, i_u_offset: float, i_v_ref_elem: SFMReferences, i_v_offset: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPosParamData(CATBSTR iPosStrategyName,double iRotationAngle,SfmReferences iUrefElem,double iUOffset,SfmReferences iVRefElem,double iVOffset)Sets the Position Parameter Data for different Strategies.DifferentStrategies require different inputs.Parameters:iPosStrategyName[in] Legal Values:CATSfmPosOffsetOffset,CATSfmPosHalfHeightOffset,CATSfmPosMidDistOffset,CATSfmPosMidDistMidDist,CATSfmPosHalfHeightMidDistiRotationAngle[in] Enter Rotaion angle for ContouriUrefElem[in] List of U reference Elements CATSfmPosOffsetOffset: ThisStrategy can take Multiple U References CATSfmPosHalfHeightOffset: ThisStrategy can take Multiple U References CATSfmPosMidDistOffset: This Strategycan take Multiple U References CATSfmPosMidDistMidDist: This strategy can takeMultiple U References CATSfmPosHalfHeightMidDist: This strategy can takeMultiple U ReferencesiUOffset[in] Enter U Offset valueiVrefElem[in] List of V reference Elements CATSfmPosOffsetOffset: ThisStrategy can take only one V Reference CATSfmPosHalfHeightOffset: This Strategydoes not take any V Reference CATSfmPosMidDistOffset: This Strategy can takeonly one V Reference CATSfmPosMidDistMidDist: This strategy can take only two VReferences CATSfmPosHalfHeightMidDist: This Strategy does not take any VReferenceiVOffset[in] Enter V Offset valueReturns:S_OK if everything ran ok.Example:This example sets the data required for Positioning the Contour forCATSfmPosMidDistMidDist in details.‘For MidDistance-MidDistance Strategy‘Populate List for U references with 4 ReferenceelementsDim UrefList As SfmReferencesDim Uref1,Uref2,Uref3,Uref4 As ReferenceSet Uref1 = Part1.FindObjectByName(“CROSS.95”)Set Uref2 = Part1.FindObjectByName(“CROSS.50”)Set Uref3 = Part1.FindObjectByName(“CROSS.25”)Set Uref4 = Part1.FindObjectByName(“CROSS.40”)Set UrefList = Factory.SfmReferencesUrefList.Add Uref1UrefList.Add Uref2UrefList.Add Uref3UrefList.Add Uref4‘Populate List for V references with 2 ReferenceelementsDim VrefList As SfmReferencesDim Vref1,Vref2 As ReferenceSet Vref1 = Part1.FindObjectByName(“LONG.0”)Set Vref2 = Part1.FindObjectByName(“LONG.10”)Set VrefList = Factory.SfmReferencesVrefList.Add Vref1VrefList.Add Vref2‘Set the SfmStandardPosStrategyParametersDim PositionStrategyParms AsSfmStandardPosStrategyParametersSet PositionStrategyParms = ObjSfmPosStrategyMgr.GetPositioningStrategyParams(“CATSfmPosMidDistMidDist”)‘Get the Count of U ReferencesDim NbofURef As LongNbofURef = UrefList.Count‘The Following list will will pass only first two U references.The next two references will be passed after clearing thelistDim URefListinternal As SfmReferencesSet URefListinternal = Factory.SfmReferencesDim StdOpening As SfmStandardOpening‘ For loopFor nUrefCnt = 1 To NbofURef Step 2If (nUrefCnt + 1) <= NbofURef ThenURefListinternal.Add UrefList.Item(nUrefCnt)URefListinternal.Add UrefList.Item(nUrefCnt +1)PositionStrategyParms.SetPosParamData“CATSfmPosMidDistMidDist”, 20, URefListinternal, 0, VrefList,0Set StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosMidDistMidDist”,PositionStrategyParms,plateref)URefListinternal.ClearListEnd IfNextPart1.Update‘ Example for CATSfmPosOffsetOffset Strategy: VRefList Containsonly one Reference elementDim PositionStrategyParms AsSfmStandardPosStrategyParametersSet PositionStrategyParms = ObjSfmPosStrategyMgr.GetPositioningStrategyParams(“CATSfmPosOffsetOffset”)Dim StdOpening As SfmStandardOpeningDim URefListinternal As SfmReferencesSet URefListinternal = Factory.SfmReferencesFor nUrefCnt = 1 To NbofURefURefListinternal.Add UrefList.Item(nUrefCnt)PositionStrategyParms.SetPosParamData “CATSfmPosOffsetOffset”,20, URefListinternal, 1, VrefList, 2Set StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosOffsetOffset”,PositionStrategyParms,plateref)URefListinternal.ClearListPart1.UpdateNext‘ Example for CATSfmPosMidDistOffset Strategy: Uref elements arepassed in group of two.VRefList Contains only one Reference element.For nUrefCnt = 1 To NbofURef Step 2If (nUrefCnt + 1) <= NbofURef ThenURefListinternal.Add UrefList.Item(nUrefCnt)URefListinternal.Add UrefList.Item(nUrefCnt +1)PositionStrategyParms.SetPosParamData“CATSfmPosMidDistOffset”, 20, URefListinternal, 0, VrefList,22Set StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosMidDistOffset”,PositionStrategyParms,plateref)URefListinternal.ClearListEnd IfNext‘ Example for CATSfmPosHalfHeightOffsetStrategy:For nUrefCnt = 1 To NbofURefURefListinternal.Add UrefList.Item(nUrefCnt)PositionStrategyParms.SetPosParamData“CATSfmPosHalfHeightOffset”, 20, URefListinternal, 0, VrefList,0Set StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosHalfHeightOffset”,PositionStrategyParms,plateref)URefListinternal.ClearListPart1.UpdateNext‘ Example for CATSfmPosHalfHeightMidDist Strategy:U Ref Elementsare passed in Group of two.For nUrefCnt = 1 To NbofURef Step 2If (nUrefCnt + 1) <= NbofURef ThenURefListinternal.Add UrefList.Item(nUrefCnt)URefListinternal.Add UrefList.Item(nUrefCnt +1)PositionStrategyParms.SetPosParamData“CATSfmPosHalfHeightMidDist”, 20, URefListinternal, 1, VrefList,2Set StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosHalfHeightMidDist”,PositionStrategyParms,plateref)URefListinternal.ClearListEnd IfNext
- Parameters:
i_pos_strategy_name (str) –
i_rotation_angle (float) –
i_uref_elem (SFMReferences) –
i_u_offset (float) –
i_v_ref_elem (SFMReferences) –
i_v_offset (float) –
- Return type:
None