Is it possible to have an equation that would filter weldment profiles based on dimensions?

I have a frame drawn up and need the weldment tube profiles to change based on the size of the frame. Is it possible to do that using equations instead of manually selecting my profile every time?

SolidworksGeneral