Salome HOME
#1330 Multiply selection when Create fillet using Shift button
[modules/shaper.git] / src / PythonAddons / addons_Features.py
index 3ff9f26ddfa2648a0c765a5bf2c051759d88b5d4..9499f21134c5aefef059bad27012e07f1a15ea45 100644 (file)
@@ -2,11 +2,12 @@
 """
 
 import ModelAPI
-from macros.box.feature      import BoxFeature
+from macros.box.feature       import BoxFeature
+from macros.rectangle.feature import SketchPlugin_Rectangle
 
 
 class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
-    """Class for Python features plugin.
+    """Implementation of features plugin.
 
     PythonFeaturesPlugin() -> plugin object
     """
@@ -25,11 +26,14 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
         if theFeatureID == BoxFeature.ID():
             aFeature = BoxFeature().__disown__()
 
+        elif theFeatureID == SketchPlugin_Rectangle.ID():
+            aFeature = SketchPlugin_Rectangle().__disown__()
+
         else:
             raise StandardError("No such feature %s" % theFeatureID)
 
         return aFeature
 
-
+# The plugin object
 plugin = PythonFeaturesPlugin()
 plugin.__disown__()