Return Variables of All Reference Points X,Y, and Z Corrdinates in Part File (C#)

Goal: Obtain variables or arrays of each reference point in an active model. Attempted to use GetRefPoint Method, but the API help seems to be less informative for using this than other topics. I have code that will select the reference points with/or without a loop, but am stuck trying to return x,y, and z coordinates from SW.

Model and initial code is attached. Thanks in advance for your time and efforts regarding this matter.

using SolidWorks.Interop.sldworks;

using SolidWorks.Interop.swconst;

using System.Runtime.InteropServices;

using System;

namespace ReferencePointRecorded.csproj

{

    public partial class SolidWorksMacro

    {

        //public interface IMathPoint { }

        public void Main()

        {

            ModelDoc2 swDoc = null;

            bool boolstatus = false;

           

               

            //Create Array for Reference Point Names

            string[] names;

            names = new string[3] { "Point1", "Point2", "Point3" };

            swDoc = ((ModelDoc2)(swApp.ActiveDoc));

            int i = 0;

            double[] points;

            //Select Reference Points

            if (i < 3)

            {

                boolstatus = swDoc.Extension.SelectByID2(names[2], "DATUMPOINT", 0, 0, 0, false, 0, null, 0);

                //points[i] = MathPoint GetRefPoint;

            }

        }

        ///

        ///  The SldWorks swApp variable is pre-assigned for you.

        ///

        public SldWorks swApp;

    }

}

SolidworksApi macros