Inserting a Sub-assembly into an Assembly...

Hi,

I'm using Solidworks 2013 and would love to automate this task but I don't know what the best approach would be.  I'm hoping I can get some great feedback from the forum to help my decision making! 

Ok I have a sub-assembly that consists of 1 to 3 parts depending on how it's configured.  There is one part a hollow cylinder (pipe) in the sub-assembly that I would like to be able to automate a modification to once the sub-assembly is inserted into an assembly.  The assembly would consist of a hollow cylinder.  I would like the pipe part in the sub-assembly to have a parameter related to the assembly (the diamemter of the hollow cylinder in the assembly)  so that a cut feature I have in the part will automatically update when I insert the sub-assembly into the assembly.  Can this be done?  Would global variables work best?

SolidworksAssemblies