X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAddons%2Faddons_Features.py;h=b75e421ecec143adfcdd9a7a80dc10870cb76f27;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=1bb7354a99c9d5f454ff06fe04c9a9e2af30b8a2;hpb=8d8cd4bfaf5af5db0fe563e3e75b2526e472dbe0;p=modules%2Fshaper.git diff --git a/src/PythonAddons/addons_Features.py b/src/PythonAddons/addons_Features.py old mode 100644 new mode 100755 index 1bb7354a9..b75e421ec --- a/src/PythonAddons/addons_Features.py +++ b/src/PythonAddons/addons_Features.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -17,13 +17,14 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Registration of all user-defined Python features -""" +"""Registration of all user-defined Python features""" import ModelAPI from macros.rectangle.feature import SketchPlugin_Rectangle from macros.compoundVertices.feature import compoundVertices -from macros.box.feature import BoxFeature +from macros.importParameters.feature import importParameters +from macros.midSurface.feature import midSurface +from macros.pipeNetwork.feature import pipeNetwork class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): @@ -47,8 +48,12 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): aFeature = SketchPlugin_Rectangle().__disown__() elif theFeatureID == compoundVertices.ID(): aFeature = compoundVertices().__disown__() - elif theFeatureID == BoxFeature.ID(): - aFeature = BoxFeature().__disown__() + elif theFeatureID == importParameters.ID(): + aFeature = importParameters().__disown__() + elif theFeatureID == midSurface.ID(): + aFeature = midSurface().__disown__() + elif theFeatureID == pipeNetwork.ID(): + aFeature = pipeNetwork().__disown__() else: raise Exception("No such feature %s" % theFeatureID)