pycatia.cat_str_functional_interfaces.sfm_function_factory¶
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_function_factory.SFMFunctionFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.FactorySfmFunctionFactoryGets the Function Factory.Example:This Example Retrieves SfmFunctionFactory from Part.Set part1 = partDocument1.PartDim Factory As SfmFunctionFactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)- create_opening(i_category: str, i_mode: int, i_intersecting_element: Reference, i_sfm_object: Reference) SFMOpening ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateOpening(CATBSTR iCategory,long iMode,Reference iIntersectingElement,Reference iSfmObject) As SfmOpeningCreates Opening on SuperPlate or a Profile using a sketch or3DObject.Parameters:iCategory[in] Category of OpeningiMode[in] Enter 1: To Create Opening Using Sketch Mode Enter 0: ToCreate Opening Using 3D Object ModeiIntersectingElement[in] Sketch or 3D ObjectiSfmObject[in] Object on which Opening is to be created.oOpening[out] Created OpeningReturns:S_OK if everything ran okExample:This Example Creates Opening on the Plate using Sketch Mode. TheFactory is retrieved from the Part.‘Retrieve the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)Set sketch = part1.FindObjectByName(“Sketch.1”)Set sketchref = part1.CreateReferenceFromObject(sketch)Set plate = part1.FindObjectByName(“Deck_117”)Set plateref = part1.CreateReferenceFromObject(plate)‘Create OpeningDim OpeningRes as SfmOpeningSet OpeningRes = Factory.CreateOpening(“FunctionalOpening”,1,sketchref, plateref)
- Parameters:
- Return type:
- create_standard_opening(i_category: str, i_contour_name: str, i_list_contour_params: SFMStandardContourParameters, i_pos_strategy_name: str, i_position_strategy_parms: SFMStandardPosStrategyParameters, isp_target_sfm_object: Reference) SFMStandardOpening ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateStandardOpening(CATBSTR iCategory,CATBSTR iContourName,SfmStandardContourParameters iListContourParams,CATBSTR iPosStrategyName,SfmStandardPosStrategyParameters iPositionStrategyParms,Reference ispTargetSfmObject) As SfmStandardOpeningCreates a StandardOpening on SuperPlate.Parameters:iCategory[in] Category of OpeningiContourName[in] Name of the Contour. To Get List of Available contour names,please see CATIASfmOpeningContoursMgriListContourParams[in] List of Conotour Parameters for selected Contour For Settingthese parameters,Please see CATIASfmOpeningContoursMgriPosStrategyName[in] Name of the Position Strategy. LegalValues:”CATSfmPosOffsetOffset”,“CATSfmPosHalfHeightOffset”,“CATSfmPosMidDistOffset”,“CATSfmPosMidDistMidDist”,“CATSfmPosHalfHeightMidDist”Please see CATIASfmPositioningStrategyManageriPositionStrategyParms[in ] List of Parameters for Positioning the Contour. SeeCATIASfmStandardPosStrategyParametersispTargetSfmObject[in ] Object on which Opening will be createdospOpening[out] Created OpeningReturns:S_OK if everything ran ok.Example:This Creates Opening on the Plate using StandardOpening Mode.TheFactory is retrieved from the Part‘Get the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)Dim StdOpening as SfmStandardOpeningSet StdOpening = Factory.CreateStandardOpening(“FunctionalOpening”,“Sfm_Rect”,oListCkeParms,“CATSfmPosMidDistMidDist”,PositionStrategyParms,plateref)
- Parameters:
i_category (str) –
i_contour_name (str) –
i_list_contour_params (SFMStandardContourParameters) –
i_pos_strategy_name (str) –
i_position_strategy_parms (SFMStandardPosStrategyParameters) –
isp_target_sfm_object (Reference) –
- Return type:
- get_opening_mgr(i_prt_part: Part, i_mgr_name: str) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetOpeningMgr(Part iPrtPart,CATBSTR iMgrName) As CATBaseDispatchGets the Opening Manager.Use this manager to get SfmOpeningContoursMgr orSfmPositioningStrategyManager. Use SfmOpeningContoursMgr toGetAvailableStdOpeningContours and GetStdOpeningContourParams Methods.SeeCATIASfmOpeningContoursMgr Use SfmPositioningStrategyManager to manage Positionof contour.See CATIASfmPositioningStrategyManagerParameters:iPrtPart[in] Part which contains the plate on which opening is to becreated.iMgrName[in] SfmOpeningContoursMgr: Use to Get Contour Manager.SfmPositioningStrategyManager: Use to Get Position Strategy ManageroSfmOpeningMgr[out] Manager ObjectReturns:S_OK if everything ran ok.Example:This Example gets the Manager from Factory.‘Get the FactorySet Factory = part1.GetCustomerFactory(“SfmFunctionFactory”)‘Retrieve the Contour ManagerDim ObjSfmContourMgr As SfmOpeningContoursMgrSet ObjSfmContourMgr = Factory.GetOpeningMgr(Part1, “SfmOpeningContoursMgr”)‘Retrieve the Postion Strategy ManagerDim ObjSfmPosStrategyMgr AsSfmPositioningStrategyManagerSet ObjSfmPosStrategyMgr = Factory.GetOpeningMgr(Part1, “SfmPositioningStrategyManager”)
- property sfm_references: SFMReferences¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SfmReferences() As SfmReferences (Read Only)Gets the list of Sfm References. Use it to prepare a list of U & VReferences for Standard Opening.Example:This example populates a list for U References. Use the Add Method toadd a reference to the list.Dim Factory As SfmFunctionFactorySet Factory = Part1.GetCustomerFactory(“SfmFunctionFactory”)Dim Uref1 As ReferenceSet Uref1 = Part1.FindObjectByName(“CROSS.95”)Dim UrefList As SfmReferencesSet UrefList = Factory.SfmReferencesUrefList.Add Uref1
- Return type: