pycatia.cat_str_functional_interfaces.sfm_profile¶
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_profile.SFMProfile(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATStrFunctionalInterfaces.SfmObjectSfmProfileInterface to manage the structure frame modeling member object Role: Allowsaccessing and setting of member’s data.See also:SfmFactory- add_endcut(i_extremity_index: int, i_endcut_type: str, i_endcut_name: str, i_list_context: SFMReferences, i_list_parameters: SFMConnectionParameters) SFMEndcut ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddEndcut(long iExtremityIndex,CATBSTR iEndcutType,CATBSTR iEndcutName,SfmReferences iListContext,SfmConnectionParameters iListParameters) As SfmEndcutCreates Endcut on a SuperProfile.Use the method to create as well as editthe endcut.Parameters:iExtremityIndex[in] The extremity on which endcut is to be applied(1-Start,2-End).iEndcutType[in] The type of Endcut(Snipe,Trim,Weld).iEndcutName[in] Name of the Endcut.iListContext[in] Context inputs for contextual endcuts or cutbacks.Not requiredfor Custom.iListParameters[in] The list of Parameters.oSfmProfileEndCut[out] The created Endcut.Returns:S_OK if everything ran okExample:This Example creates a new contextual endcut on Stiifener Startextremity.‘ First read the specifications required forendcutDim FactoryObj As SfmOperationFactorySet FactoryObj = PartObj.GetCustomerFactory(“SfmOperationFactory”)Dim EndCutManagerObj As SfmEndcutManagerSet EndCutManagerObj = FactoryObj.GetEndcutManagerDim ListOfContextNames, ListOfUDFParamNames AsVariantDim ListOfUDFParameters AsSfmConnectionParametersEndCutManagerObj.GetEndcutSpecifications “Tee”, “Snipe”,“T-CTX-PLATE”, ListOfContextNames, ListOfUDFParameters,ListOfUDFParamNames‘ Read the Name of ContextDim SizeOfContextNames As LongSizeOfContext = UBound(ListOfContextNames)Dim ContextName As StringFor i = 0 To SizeOfContextContextName = ListOfContextNames(i)Next‘ Read and Set the Parameter ValuesDim SizeOfUDFParams As LongSizeOfUDFParams = ListOfUDFParameters.CountDim UDFParam As ParameterFor i = 1 To SizeOfUDFParamsSet UDFParam = ListOfUDFParameters.Item(i)Dim UDFParamName,UDFParamValue As StringUDFParamName = ListOfUDFParamNames(j - 1)UDFParamValue = UDFParam.ValueAsString‘Redefine Param ValueIf (UDFParamName = “Snipe Radius”) ThenUDFParam.ValuateFromString (“52mm”)End IfNext‘ Define the ContextDim FactoryRef As SfmFunctionFactorySet FactoryRef = PartObj.GetCustomerFactory(“SfmFunctionFactory”)Dim ListOfContexts As SfmReferencesSet ListOfContexts = FactoryRef.SfmReferencesDim Limit As ReferenceSet Limit = PartObj.CreateReferenceFromObject(SfmSuperPlateObj)ListOfContexts.Add Limit‘ Create the EndcutDim EndCutObj As SfmEndcutSet EndCutObj = SfmStiffenerObj.AddEndcut(1, “Snipe”, “T-CTX-PLATE”, ListOfContexts, ListOfUDFParameters)‘ For Non Conetxtual Endcuts pass Nothing foriListContextSet EndCutObj = SfmStiffenerObj.AddEndcut(1, “Snipe”, “Web_Snipe_Radius”, Nothing, ListOfUDFParameters)
- Parameters:
i_extremity_index (int) –
i_endcut_type (str) –
i_endcut_name (str) –
i_list_context (SFMReferences) –
i_list_parameters (SFMConnectionParameters) –
- Return type:
- property anchor_point: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AnchorPoint() As CATBSTRReturns or sets the member’s anchor point.Example:This example retrieves in AnchorPointName the anchor point name of theSfmProfile feature.Dim AnchorPointName As StringSet AnchorPointName = SfmProfile.AnchorPoint
- Return type:
str
- get_end_coord(o_coord: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetEndCoord(CATSafeArrayVariant oCoord)Retrieves the coordinates of the member’s end extremity.Example:This example retrieves in EndExtr the end extremity coordinates of theSfmProfile feature.SfmProfile.GetEndCoord EndExtr
- Parameters:
o_coord (tuple) –
- Return type:
None
- get_endcut(i_extremity_index: int) SFMEndcut ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetEndcut(long iExtremityIndex) As SfmEndcutRetrieves Existing Endcut on Profile.Parameters:iExtremityIndex[in] Extremity of Profile(1-Start,2-End).oSfmEndcut[out] Retrieved Endcut.Returns:S_OK if everything ran okExample:This example gets the Existing Endcut.Dim EndCutObj As SfmEndcutSet EndCutObj = ProfileObj.GetEndcut(1)
- Parameters:
i_extremity_index (int) –
- Return type:
- get_profile_limit(i_extremity_index: int) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProfileLimit(long iExtremityIndex) As ReferenceReturns the limit at an Extremity of a Profile.Parameters:iExtremityIndex[in] Extremity of Profile(1-Start,2-End).oLimit[out] Existing Limit.Returns:S_OK if everything ran ok.Example:This example retrieves the Start Limit of aStiffener.Dim ProfileLimit As ReferenceSet ProfileLimit = SuperStiffenerObj.GetProfileLimit(1)
- Parameters:
i_extremity_index (int) –
- Return type:
- get_section_axis(i_abside: float, i_origin: tuple, io_vector1: tuple, io_vector2: tuple, io_vector3: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetSectionAxis(double iAbside,CATSafeArrayVariant iOrigin,CATSafeArrayVariant ioVector1,CATSafeArrayVariant ioVector2,CATSafeArrayVariant ioVector3)Retrieves the axis system of the section at a given location on themember’s support.Example:This example retrieves in Origin, Vector1, Vector2, Vector3 the sectionaxis at the start extremity of the SfmProfile feature.Dim Origin, Vector1, Vector2, Vector3 AsSfmProfile.GetSectionAxis 0., Origin, Vector1, Vector2,Vector3
- Parameters:
i_abside (float) –
i_origin (tuple) –
io_vector1 (tuple) –
io_vector2 (tuple) –
io_vector3 (tuple) –
- Return type:
None
- get_slots_on_profile() SFMSlots ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSlotsOnProfile() As SfmSlotsRetrieves Slots on Profile.Parameters:oSfmSlots[out] Slots.Returns:S_OK if everything ran okExample:This example gets the Slots.Dim SlotsonProfile As SfmSlotsSet SlotsonProfile = ProfileObj.GetSlotsOnProfile
- Return type:
- get_start_coord(o_coord: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetStartCoord(CATSafeArrayVariant oCoord)Retrieves the coordinates of the member’s start extremity.Example:This example retrieves in StartExtr the start extremity coordinates ofthe SfmProfile feature.SfmProfile.GetStartCoord StartExtr
- Parameters:
o_coord (tuple) –
- Return type:
None
- remove_endcut(i_extremity_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveEndcut(long iExtremityIndex)Removes Existing Endcut on Profile.Parameters:iExtremityIndex[in] Extremity of Profile(1-Start,2-End).Returns:S_OK if everything ran okExample:This example removes the Existing Endcut.Dim EndCutObj As SfmEndcutSet EndCutObj = ProfileObj.RemoveEndcut(1)
- Parameters:
i_extremity_index (int) –
- Return type:
None
- run() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Run()Compute the member’s result.Example:This example builds the result of the SfmProfilefeature.SfmProfile.Run
- Return type:
None
- property section_name: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SectionName() As CATBSTRReturns or sets the member’s section name.Example:This example retrieves in Name the name of section user by theSfmProfile feature.Dim Name As StringSet Name = SfmProfile.SectionName
- Return type:
str
- set_profile_limit(i_extremity_index: int, i_limit: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetProfileLimit(long iExtremityIndex,Reference iLimit)Sets the limit at an Extremity of a Profile.Parameters:iExtremityIndex[in] Extremity of Profile(1-Start,2-End).iLimit[in] New Limit to add.Returns:S_OK if everything ran okExample:This example sets the limit at the Extremity.Set StiffenerLimit = ObjPart.FindObjectByName(“CROSS.115”)Dim LimitRef As ReferenceSet LimitRef = ObjPart.CreateReferenceFromObject(StiffenerLimit)SuperStiffener.SetProfileLimit 2, LimitRef
- Parameters:
i_extremity_index (int) –
i_limit (Reference) –
- Return type:
None
- property split_profiles: References¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SplitProfiles() As References (Read Only)Returns the SplitProfiles.Example:This example retrieves SplitProfiles list of theStiffener.Dim SplitStiffeners As ReferencesSet SplitStiffeners = SuperStiffener.SplitProfilesDim SplitStiffener1 As ReferenceSet SplitStiffener1 = SplitStiffeners.Item(1)Set SelctionObj = CATIA.ActiveDocument.SelectionSelctionObj.Add SplitStiffener1Dim SplitStiff1 As SfmStiffenerSet SplitStiff1 = SelctionObj.FindObject(“CATIASfmStiffener”)
- Return type:
- property support: Reference¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Support() As Reference (Read Only)Returns the member’s support.Example:This example retrieves in Support the support of the SfmProfilefeature.Dim Support As ReferenceSet Support = SfmProfile.Support
- Return type: