Tagging Beams

Hello

i have a problem with creating tags for beams, what im trying to do is creating the tag but i want it to be outside of the beam and aligned to it, what i came up with so far is this:

what this does is it reads the centre line of the beam and offsets it by the B value of the beam, so it maintains the alignment but the offset distance is not enough! is there any other way?