"""
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
"""
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__()