problem in executing the programme

hello  everyone,

how to interrelate the below mentioned programme with the part drawn in order to get the dimensions
of a part
SolidworksApi macros