Writing/using a macro in a sketch

I need to make a sketch with a series of 4mm lines in varying distances from a 0 point., I have the excel file with all the different measurements. Is ther some way I can quickly copy my 0 line to the various dimensions in my table

SolidworksApi macros