Hello Tb,
Supposing you are using 24a, I tried to select a battery with 2RC as shown below:
And I proceeded to build a pack (as shown below)
I then created the library and set the option "Mask Parameter" To "VariableNameByType". This will generate a script storing all required variables to simulate the pack:
Once the battery has been generated, you will see that in the script there is (among other variables) also a variable storing the R2 resistance
and that same variable is then used in the module objects in the generated library. So in this way as you see you can generate a library and store the information of R2.
Hope this helps!
Best,
Lorenzo