api error solution

How to solve error

in addition

SolidworksApi macros