How i lock two components in solidworks assembly

I want to lock or fix two mates components in Solidworks assembly how to do it?

1 Answer

Now to lock any part in Solidworks assembly all you have to do is:
1- choose the part from the FeatureManager Design tree.
2- right click on the name of the part
3- Select Fix ( To fix the part), Float (To make the part move)
Note: Next to the file part name in the FeatureManager Design tree you can see a dash (-) before the name meaning that the part is not fixed but Floating.
if it shows an (f) that means the part is fixed. And you can change it by following the steps I wrote above.