select a free-form curve and generate a central point

Good morning, i want know if there is a routine that createacentral point froma selected free-form closed curve.thanks.SolidworksApi macros