First time here? Check out the Help page!
1 | initial version |
I have found a work arround. I have noticed that at the begginig of the run method there is no problem getting the uFactor of the windows. So, I have injected a new uFactor2 attribute to all subSurfaces instances with the uFactor value, and then in the following code I call the uFactor2 attribute instead of the uFactor method:
model.getSurfaces.each do |s|
s.class.module_eval { attr_accessor :uFactor2}
s.uFactor2 = s.uFactor
end
It is not very clean but it works.