from macros.rectangle.feature import SketchPlugin_Rectangle
from macros.compoundVertices.feature import compoundVertices
from macros.importParameters.feature import importParameters
-from macros.box.feature import BoxFeature
class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin):
aFeature = compoundVertices().__disown__()
elif theFeatureID == importParameters.ID():
aFeature = importParameters().__disown__()
- elif theFeatureID == BoxFeature.ID():
- aFeature = BoxFeature().__disown__()
else:
raise Exception("No such feature %s" % theFeatureID)
<source path="@ADDONS_FOLDER_PATH@/macros/rectangle/widget.xml"/>
<source path="@ADDONS_FOLDER_PATH@/macros/compoundVertices/widget.xml"/>
<source path="@ADDONS_FOLDER_PATH@/macros/importParameters/widget.xml"/>
- <source path="@ADDONS_FOLDER_PATH@/macros/box/widget.xml"/>
</plugin>
compoundVertices feature is macro: removes itself on the creation transaction
finish.
"""
- return True
+ return False
<workbench id="Macros" document="Part">\r
<group id="Samples">\r
\r
- <feature id="compoundVertices" title="Points set" tooltip="Import a set of construction points" icon="icons/import.png">\r
+ <feature id="compoundVertices" title="Points set" icon=":icons/import.png">\r
<file_selector id="file_path" title="Import file" path="">\r
</file_selector>\r
<stringvalue id="separator" label="Separator (optional): ">\r
<workbench id="Macros" document="Part">\r
<group id="Samples">\r
\r
- <feature id="importParameters" title="List of Parameters" tooltip="Import a set of parameters" icon="icons/import.png">\r
+ <feature id="importParameters" title="List of Parameters" icon=":icons/paper_roll.png">\r
<file_selector id="file_path" title="Import file" path="">\r
</file_selector>\r
</feature>\r