~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim partDocument1 As PartDocument
Set partDocument1 = CATIA.ActiveDocument
Dim part1 As part
Set part1 = partDocument1.part
Dim shapeFactory1 As ShapeFactory
Set shapeFactory1 = part1.ShapeFactory
Dim bodies1 As Bodies
Set bodies1 = part1.Bodies
Dim body1 As Body Set body1 = bodies1.Item("Paul")
Dim shapes1 As Shapes
Set shapes1 = body1.Shapes
Dim solid1 As Solid
Set solid1 = shapes1.Item("Solid.1")
Dim reference1 As Reference
Set reference1 = part1.CreateReferenceFromBRepName("RSurFaceBrpSolid.1;%1);None);Cf11));WithPermanentBody;WithoutBuildError;WithSelectingFeatureSupport;MFBRepVersion_CXR15)", solid1)
Dim selection1 As Selection
selection1.Item2(1).Reference
Dim symmetry1 As Symmetry
Set symmetry1 = shapeFactory1.AddNewSymmetry2(reference1)
Dim hybridShapeSymmetry1 As HybridShapeSymmetry
Set hybridShapeSymmetry1 = symmetry1.HybridShape
part1.InWorkObject = hybridShapeSymmetry1
part1.Update
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Notice that the Reference object "reference1" is Set using CreateReferenceFromBRepName. Unfortunately I cannot do this in my code (I don't think). I need to take a plane/face that is contained in a Selection and set "reference1" to it. Does anyone know how to do this? I've tried to get it done by trial-and-error but I've not gotten anything to work.
