Marcello Sgambelluri Topo/Fence Script help

Hello, Can somebody help with the script Marcello Sgambelluri made that produces a fence to a property line over a topo. The original Revit file units are in imperial but i want to convert it into Metric. When i do this the script does’nt seem to work and i dont know why, i have tried altering the script but i still cannot get it to work.

https://we.tl/8ygMkMDcRg

Thank You

It seems like the units in the Revit file provided is fractional inches?

So how do i change the script so that it works with in metres ?