Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1330 Multiply selection when Create fillet using Shift button
[modules/shaper.git]
/
src
/
PythonAddons
/
addons_Features.py
diff --git
a/src/PythonAddons/addons_Features.py
b/src/PythonAddons/addons_Features.py
index 3ff9f26ddfa2648a0c765a5bf2c051759d88b5d4..9499f21134c5aefef059bad27012e07f1a15ea45 100644
(file)
--- a/
src/PythonAddons/addons_Features.py
+++ b/
src/PythonAddons/addons_Features.py
@@
-2,11
+2,12
@@
"""
import ModelAPI
"""
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 PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
- """
Class for Python
features plugin.
+ """
Implementation of
features plugin.
PythonFeaturesPlugin() -> plugin object
"""
PythonFeaturesPlugin() -> plugin object
"""
@@
-25,11
+26,14
@@
class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
if theFeatureID == BoxFeature.ID():
aFeature = BoxFeature().__disown__()
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
else:
raise StandardError("No such feature %s" % theFeatureID)
return aFeature
-
+# The plugin object
plugin = PythonFeaturesPlugin()
plugin.__disown__()
plugin = PythonFeaturesPlugin()
plugin.__disown__()