Dim drawingDocument1 As DrawingDocument
Set drawingDocument1 = CATIA.ActiveDocument
Dim DrwSht As DrawingSheet
Set DrwSht = drawingDocument1.Sheets.ActiveSheet
Dim DrwView As DrawingView
Set DrwView = DrwSht.Views.ActiveView
Dim fact As Factory2D
Set fact = DrwView.Factory2D
SendKeys "c:Symmetry" + Chr(13), True
Dim selection3 As Selection
Set selection3 = drawingDocument1.Selection
selection3.Search "Drafting.Polyline,all"
Pause (1)
Dim symLine As Line2D
Set symLine = fact.CreateLine(0#, 0#, 0#, 5#)
Dim selection4 As Selection
Set selection4 = drawingDocument1.Selection
selection4.Search "CATDrwSearch.2DLine,symLine"
Pause (1)
CATIA.ActiveDocument.Selection.Clear
Pause (1)
SendKeys "c:Symmetry" + Chr(13), True
Dim selection5 As Selection
Set selection5 = drawingDocument1.Selection
selection5.Search "CATDrwSearch.DrwText,all"
Pause (1)
Set selection4 = drawingDocument1.Selection
selection4.Search "CATDrwSearch.2DLine,symLine"
Pause (1)
selection4.Delete
CATIA.ActiveDocument.Selection.Clear