Hi Ashraf,
I understand that you are facing issue in converting your SPICE netlist into Simscape block. I tried reproducing the issue you are facing on my end and came across this error message.
Index exceeds the number of array elements. Index must not exceed 0.
Error in spiceSubckt/getElements
Error in spiceSubckt/loadSubckt
Error in spiceSubckt
Error in subcircuit2ssc
Error in subcircuit2ssc (line 31)
subcircuit2ssc(netlist, target);
The first line of the error says that
Index exceeds the number of array elements. Index must not exceed 0.
I found a similar MATLAB Answer in where the solution is suggestive of the fact that you are passing a parameter while calling a subcircuit which is not in the definition of the subcircuit. Further, if the above workaround does not work you should check for any missing labels for subcircuits in the main circuit.
Have a look at the below references for better understanding
I hope this helps.