macro for imported model and drawing

I am unable to establish relation for imported models by running SW macro.

SolidworksApi macros