SfmFunctionFactory (Object)

Gets the Function Factory.
Example:
This Example Retrieves SfmFunctionFactory from Part.
 Set part1 = partDocument1.Part
 Dim Factory As SfmFunctionFactory
 Set Factory =  part1.GetCustomerFactory("SfmFunctionFactory")
 

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
 

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
iMode
[in] Enter 1: To Create Opening Using Sketch Mode Enter 0: To Create Opening Using 3D Object Mode
iIntersectingElement
[in] Sketch or 3D Object
iSfmObject
[in] Object on which Opening is to be created.
oOpening
[out] Created Opening
Returns:
S_OK if 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)
 
Func CreateStandardOpening( iCategory, iContourName, iListContourParams, iPosStrategyName, iPositionStrategyParms, ispTargetSfmObject) As
Creates a StandardOpening on SuperPlate.
Parameters:
iCategory
[in] Category of Opening
iContourName
[in] Name of the Contour. To Get List of Available contour names ,please see CATIASfmOpeningContoursMgr
iListContourParams
[in] List of Conotour Parameters for selected Contour For Setting these parameters,Please see CATIASfmOpeningContoursMgr
iPosStrategyName
[in] Name of the Position Strategy. Legal Values:"CATSfmPosOffsetOffset","CATSfmPosHalfHeightOffset","CATSfmPosMidDistOffset","CATSfmPosMidDistMidDist","CATSfmPosHalfHeightMidDist" Please see CATIASfmPositioningStrategyManager
iPositionStrategyParms
[in ] List of Parameters for Positioning the Contour. See CATIASfmStandardPosStrategyParameters
ispTargetSfmObject
[in ] Object on which Opening will be created
ospOpening
[out] Created Opening
Returns:
S_OK if 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)
 
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.
iMgrName
[in] SfmOpeningContoursMgr: Use to Get Contour Manager. SfmPositioningStrategyManager: Use to Get Position Strategy Manager
oSfmOpeningMgr
[out] Manager Object
Returns:
S_OK if 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")