Shading:Overhang object using incorrect field reference to get base surface

Issue #37 new
Matthew Larson created an issue

In the following line 102, input_object.fields[2] calls on the window surface old_fields[2] to then reference .fields[3] for the base surface, however this is the Construction Name instead, the base surface should be .fields[4]. Once corrected, should check all other references with this object as well.

        when "Shading:Overhang", "Shading:Overhang:Projection"
          puts "converting:  " + input_object.key
          old_fields = input_object.fields.dup
          vertices = SimpleGeometry.calc_vertices(input_object, coord_change, building_rotation)
          input_object.class_definition = Plugin.data_dictionary.get_class_def("Shading:Zone:Detailed")
          input_object.fields[0] = "Shading:Zone:Detailed"
          input_object.fields[1] = old_fields[1]
          input_object.fields[2] = old_fields[2].fields[3]  # Get base surface...no error trapping
          input_object.fields[3] = ""
          input_object.fields[4] = "4"

Comments (0)

  1. Log in to comment