You'll have to constrain the two parts together after creating the FEM.
As a guideline, you can create FEM's for both parts with restrain and load set etc. Then after creating the assy FEM combine the previously created sets and join the two parts together with beams, contact, constrains etc.