sometimes addordinate dimension doesn't works

hallo guis, i just need some suggestion

i have to do an ordinate dimension by Api , i preselect my entity and after i call addordinate dimensions

before changing to WINDOWS 10 Everything was great , now i don't understand

i preselect the entity and when i call addordinate dimensions some entity are dimensioned (the first half ) and the others ..not

it seems that the software is not able to stay alligned to hardware,

any suggestions?

SolidworksApi macros