Thanks for the answer, the above code works in Kicad but I would like to enter the some parameter values in the schematic (not in the file model) and pass the parameter in the model as I have already done in Altium.
Thank you,
Stefano
Attached you will find a project with simple potentiometers. Their values and ratios are transferred to the subcircuit by editing the ‘Spice model’ field. In addition to the subcircuit name (already there after attaching the model), add the parameter values to be transfered. These may either be given directly as numbers or via another ngspice parameter setting (see example).