Dimensioning a Linear Pattern of Functions

Hello,  does anyone have a trick to translate a linear repetition of a function into a parts file in cumulative dimensioning in a drawing,  and moreover if there is a tool to do it automatically.