]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network/scl/Simantics/District.scl
Add functions for finding elements by DN id
[simantics/district.git] / org.simantics.district.network / scl / Simantics / District.scl
index 56e8edb45367a08ef6e5e2f481e0d3c8a3c36f4d..0e79ef774402aa6a83a06e093c9023129223c181 100644 (file)
@@ -153,3 +153,6 @@ dnElementsMappedToComponents mappedComponents = mapMaybe possibleDNElementMapped
 importJava "org.simantics.district.network.DistrictNetworkUtil" where
     createNetworkDiagram :: Resource -> Resource -> String -> Resource -> Resource -> Resource -> Resource -> Resource -> <WriteGraph, Proc> Resource
     changeMappingType :: Resource -> [Resource] -> <WriteGraph, Proc> ()
+    findDNElementById :: Resource -> String -> <ReadGraph, Proc> Maybe Resource
+    findDNElementByXYCoordinates :: Resource -> Double -> Double -> Double -> <ReadGraph, Proc> [Resource]
+