Extract chamfer dim

Hi everyone,

          I try to extract chamfer dim. ex: 10x45°... matter what I do it take as dimension 45° or 135° and i don't understand why...

how must write the code to extract 10 as dimension??

                    Thanks,

SolidworksApi macros