- Example:
- This Example Retrieves SfmFunctionFactory from Part.
Set part1 = partDocument1.Part Dim Factory As SfmFunctionFactory Set Factory = part1.GetCustomerFactory("SfmFunctionFactory") - This Example Retrieves SfmFunctionFactory from Part.
Properties
- Property SfmReferences() As (Read Only)
-
Gets the list of Sfm References. Use it to prepare a list of U & V References for Standard Opening.
- Example:
- This example populates a list for U References. Use the Add Method to add a reference to the list.
Dim Factory As SfmFunctionFactory Set Factory = Part1.GetCustomerFactory("SfmFunctionFactory") Dim Uref1 As Reference Set Uref1 = Part1.FindObjectByName("CROSS.95") Dim UrefList As SfmReferences Set UrefList = Factory.SfmReferences UrefList.Add Uref1 - This example populates a list for U References. Use the Add Method to add a reference to the list.
- Example:
Methods
- Func CreateOpening( iCategory, iMode, iIntersectingElement, iSfmObject) As
-
Creates Opening on SuperPlate or a Profile using a sketch or 3DObject.
- Parameters:
-
- iCategory
- [in] Category of Opening dd>
- iMode
- [in] Enter 1: To Create Opening Using Sketch Mode Enter 0: To Create Opening Using 3D Object Mode dd>
- iIntersectingElement
- [in] Sketch or 3D Object dd>
- iSfmObject
- [in] Object on which Opening is to be created. dd>
- oOpening
- [out] Created Opening dd>
- Returns:
-
S_OKif everything ran ok- Example:
- This Example Creates Opening on the Plate using Sketch Mode. The Factory is retrieved from the Part.
'Retrieve the Factory Set 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 Opening Dim OpeningRes as SfmOpening Set OpeningRes = Factory.CreateOpening("FunctionalOpening",1,sketchref, plateref) - This Example Creates Opening on the Plate using Sketch Mode. The Factory is retrieved from the Part.
- Example:
- Func CreateStandardOpening( iCategory, iContourName, iListContourParams, iPosStrategyName, iPositionStrategyParms, ispTargetSfmObject) As
-
Creates a StandardOpening on SuperPlate.
- Parameters:
-
- iCategory
- [in] Category of Opening dd>
- iContourName
- [in] Name of the Contour. To Get List of Available contour names ,please see CATIASfmOpeningContoursMgr dd>
- iListContourParams
- [in] List of Conotour Parameters for selected Contour For Setting these parameters,Please see CATIASfmOpeningContoursMgr dd>
- iPosStrategyName
- [in] Name of the Position Strategy. Legal Values:"CATSfmPosOffsetOffset","CATSfmPosHalfHeightOffset","CATSfmPosMidDistOffset","CATSfmPosMidDistMidDist","CATSfmPosHalfHeightMidDist" Please see CATIASfmPositioningStrategyManager dd>
- iPositionStrategyParms
- [in ] List of Parameters for Positioning the Contour. See CATIASfmStandardPosStrategyParameters dd>
- ispTargetSfmObject
- [in ] Object on which Opening will be created dd>
- ospOpening
- [out] Created Opening dd>
- Returns:
-
S_OKif everything ran ok.- Example:
- This Creates Opening on the Plate using StandardOpening Mode.The Factory is retrieved from the Part
'Get the Factory Set Factory = part1.GetCustomerFactory("SfmFunctionFactory") Dim StdOpening as SfmStandardOpening Set StdOpening = Factory.CreateStandardOpening("FunctionalOpening", "Sfm_Rect", oListCkeParms, "CATSfmPosMidDistMidDist", PositionStrategyParms, plateref) - This Creates Opening on the Plate using StandardOpening Mode.The Factory is retrieved from the Part
- Example:
- Func GetOpeningMgr( iPrtPart, iMgrName) As
-
Gets the Opening Manager.Use this manager to get SfmOpeningContoursMgr or SfmPositioningStrategyManager.
Use SfmOpeningContoursMgr to GetAvailableStdOpeningContours and GetStdOpeningContourParams Methods.See CATIASfmOpeningContoursMgr
Use SfmPositioningStrategyManager to manage Position of contour.See CATIASfmPositioningStrategyManager
- Parameters:
-
- iPrtPart
- [in] Part which contains the plate on which opening is to be created. dd>
- iMgrName
- [in] SfmOpeningContoursMgr: Use to Get Contour Manager. SfmPositioningStrategyManager: Use to Get Position Strategy Manager dd>
- oSfmOpeningMgr
- [out] Manager Object dd>
- Returns:
-
S_OKif everything ran ok.- Example:
- This Example gets the Manager from Factory.
'Get the Factory Set Factory = part1.GetCustomerFactory("SfmFunctionFactory") 'Retrieve the Contour Manager Dim ObjSfmContourMgr As SfmOpeningContoursMgr Set ObjSfmContourMgr = Factory.GetOpeningMgr(Part1, "SfmOpeningContoursMgr") 'Retrieve the Postion Strategy Manager Dim ObjSfmPosStrategyMgr As SfmPositioningStrategyManager Set ObjSfmPosStrategyMgr = Factory.GetOpeningMgr(Part1, "SfmPositioningStrategyManager") - This Example gets the Manager from Factory.
- Example: