Between two parallel faces

I am trying to figure out the thickness of a part that is not drive by a dimension. The body thickness is driven by another part. I am running a VB.NET routine that collects information about the part to fill in properties about the part. I am currently getting the overall length an width of the part by drawing a stock size sketch on a user selected face. Since the part is not driven by a dimension for the thickness I can not just prompt the user to select that dimension for linking to the properties. I thought about having the user just select an end face that is parallel to the main face but some parts do not have ends that are parallel to the main face. The user has already selected the main face prior to starting this routine. I would like to be able to automatically get a parallel face, add a line between the two, dimension that line, then link a property to the dimension.

What i need help with is getting that parallel face and adding the line between the two faces without accessing the driving component. Can anyone help with this?

Thank You

here is an image of the feature tree of the part so you can see what I am talking about. These parts are typical not located at the origin and are not parallel to the base planes since they are all driven.

SolidWorks 2012, VBExpress 2010

SolidworksApi macros