#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-__revision__ = "V01.02"
+"""Test de la création du réseau de tuyaux"""
-from salome.shaper import model
-from salome.shaper import geom
-from ModelAPI import *
+__revision__ = "V01.03"
import os
+from ModelAPI import *
+
aSession = ModelAPI_Session.get()
def getFilePath(fileName):
+ """Le fichier décrivant le réseau"""
path = os.path.join(os.getenv("SHAPER_ROOT_DIR"), "bin", "salome", "macros", "pipeNetwork")
return os.path.join(path, fileName)
aFile.setValue(theFile)
aSession.finishOperation()
-assert(model.checkPythonDump())
+assert(aPart.size("Construction") == 21), "Wrong number of construction: {}".format(aPart.size("Construction"))
+
+assert(aPart.size("Folders") == 1), "Wrong number of folders: {}".format(aPart.size("Folders"))
Author: Nathalie Gore
"""
-__revision__ = "V02.03"
+__revision__ = "V02.04"
from salome.shaper import model
import ModelAPI
print("========================= Création des paths =========================")
for key, value in self.connectivities.items():
if self._verbose:
- print("================================================================================= key = ", key, value['chainage'], value['fillet'])
+ print("================================================================================= key = ", key, value['chainage'], value['fillet'])
# recherche des noeuds fillets
value["paths"] = list()
value["isPipe"] = list()
fuse.execute(True)
self.lfeatures.append(fuse)
fuse.result().setName(nameRes)
- print (dir(fuse))
self.folder = model.addFolder(part, self.lfeatures[0], self.lfeatures[-1])
self.folder.setName(nameRes)