Here is a method that will work with any block in the Add-On libraries. The key idea is to use the subsystem2ssc command to expose the names of the parameters and special syntax (like dropdown menu selection). First, build a simple model and put the component you'd like to call into a subsystem. I also recommend that you change ALL parameters of the block, so none of them remains default. Save this model.
Modify and use the following code to get a .ssc file that represent the Simscape components and connections inside the subsystem:
mySubsystem = 'getComponentNameExample/mySubsystem';
delete("mySubsystem.ssc")
subsystem2ssc(mySubsystem)
This will give you "mySubsystem.ssc" file like the following:
component (Propagation = blocks) mySubsystem
C = foundation.thermal_liquid.thermal_liquid;
B = foundation.thermal_liquid.thermal_liquid;
A = foundation.thermal_liquid.thermal_liquid;
components(ExternalAccess = observe)
T_Junction_TL = fluids.thermal_liquid.pipes_fittings.t_junction(Re_0 = 15, Re_c = 120, area_branch = {.001, 'm^2'}, area_main = {.001, 'm^2'}, junction_spec = int32(1), tau = {.001, 's'});
connect(A,T_Junction_TL.A);
connect(B,T_Junction_TL.B);
connect(C,T_Junction_TL.C);
You should be able to see the names of all the parameters you've modified.
Another way to see the name of the parameter is to move your mouse cursor close to the name in the parameter dialog box. Wait a second and some context info will show up, including the name of the parameter inside the ssc code. See the "area_branch" parameter in the picture below. It's the same name you can use to query the value using the get_param and set_param commands.
Hope this helps. Have fun!