Derived parts

How can I drive one parts dimensions based on another part's features or dimensions?

Caveat: There is motion involved so convert entities and inplace mates are out

SolidworksAssemblies