Script to Create Rebar BarType with desired diameter

Good afternoon,

For my thesis’ plugin I need to find a way to automate rebar modelling on RC beams using dimensioning data from an Excel sheet. Basically what I was looking for is how to get the diameter from the sheet and from that create a new or edit a current Rebar BarType in order to have the adequate input for my Rebar creation nodes (obs: the cell format includes a “phi” character left to the double/bar diameter).

Thanks in advance,