Conditional mates

Is there a way to have mates changedependingupon the configuration of the assembly?

If an object rotates, can you have anopenstate, an at rest state, and a closed state such that youtoggleone or several things to get the different configuration.(i.e.have a variable called state and if state = 1 (open) thanthesemates apply, if state = 2 (at rest) than those apply, and ifstate= 3, (closed) then the others apply.

Thanks,

Dale

SolidworksAssemblies