Access points in point cloud

Is there a way to access points directly in a point cloud using the API?  Specifically, I am working with an *.xyz file.  My goal is to load all of the points into an array and try to establish planes and cylinders. 

SolidworksApi macros