]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java
Add conductance to edge properties
[simantics/district.git] / org.simantics.district.imports / src / org / simantics / district / imports / DistrictImportUtils.java
index 522fd66e46e8299fe522c340dc2edaf48654b2fd..9cee3120d645aef57d940968e03ec54f0c9f1055 100644 (file)
@@ -394,6 +394,7 @@ public class DistrictImportUtils {
         int pipeSizeDNIndex = model.getPipeSizeDNIndex();
         int roughnessIndex = model.getRoughnessIndex();
         int structureIndex = model.getStructureIndex();
+        int conductanceIndex = model.getConductanceIndex();
         
         int mappingColumn = model.getComponentMappingIndex();
         int idColumn = model.getIdIndex();
@@ -496,6 +497,7 @@ public class DistrictImportUtils {
                                     writeIntegerValue(graph, row, pipeSizeDNIndex, edge, DN.Edge_HasPipeSizeDN);
                                     writeValue(graph, row, roughnessIndex, edge, DN.Edge_HasRoughness);
                                     writeStringValue(graph, row, structureIndex, edge, DN.Edge_HasStructure);
+                                    writeValue(graph, row, conductanceIndex, edge, DN.Edge_HasConductance);
                                 }
                             }
                             return true;