Karan Bhuta

I have made a script in spaceclaim that will change the dimensions of my geometry everytime I change a single input according to my requirement. Now I want to do analysis on that geometry using mechanical scripting. Now when I go back to hange my geometry in space claim and update the dimensions there, the selections made in mechanical needs to be made again manually. I want to know if there is a way I can script to make the selection automatically even when I update the geometry.