CreateBreakOutSection - Please help

hi all,

     im trying to automate a Broken-Out Section of a drawing in a Drawing Document. I am able to do so with this code:

Dim swApp As SldWorks.SldWorks

Dim swDraw As DrawingDoc
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long

Sub main()

Set swApp = Application.SldWorks

Set swDraw = swApp.ActiveDoc
boolstatus = swDraw.ActivateView("Drawing View2")
Dim vSkLines As Variant
vSkLines = swDraw.SketchManager.CreateCornerRectangle(-0.1416384129769, 0, 0, 0.1394542631509, 0.181895316224, 0)
swDraw.CreateBreakOutSection 0.1469525612107
swDraw.ClearSelection2 True
End Sub

But for my whole automation program to work correctly, i need a way to get the depth by chosing an axis that exist in the center of my assembly.

the code

swDraw.CreateBreakOutSection 0.1469525612107

should be

swDraw.CreateBreakOutSection zPoint ,  where zPoint is the returned  Z position of the choosen axis.

Thanks in advance.

SolidworksApi macros