Automatic dimensioning of families

Hello,
I would like to make a script to automatically dimension families between each other and connecting to grid lines. However, every post that I read on this site seems to involve pulling in model lines from family and then dimensioning those model lines. However this concerns me because wont this break the connectivity to the actual revit family and the dimension? Meaning that if the family is moved, then the dimension will not? Or am I missing something. Id like to know if dimensioning bi-bidirectionally parametric dimensions are even feasible before I start writhing this script so that I dont get caught in a dead end. If it is possible, can you please give me a hint as to how? Like use reference planes or something. I should be able to take it from there. Thanks!