Flat pattern sheet metal bends

Hi,

I'm trying to create a macro to take bend information from sheet metal parts and publish the information to our Cincinnati Press Brake so that the operators don't need to type in the bend figures.

From the API examples I can get the bend information (angle, k-factor etc), but I'm missing one key part which is the bent dimension.  The distance from the bend to the edge of the metal.  These are normally added manually to drawings with the smart dimension tool, but there must be a way to do this automatically?

If anyone can help or has done this before?

I also need to label the bends, so the order of bending can be attributed to them.  I've searched a lot through the Solid Works API help and object model, but haven't found what I needed.

Thanks

SolidworksApi macros