From eff45859bc4c3dbc96f052a37fd898c414715aff Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 7 Mar 2019 10:40:24 +0300 Subject: [PATCH] Remove of Box macro feature --- src/PythonAddons/CMakeLists.txt | 2 +- src/PythonAddons/PythonAddons_msg_en.ts | 112 -------------- src/PythonAddons/addons_Features.py | 6 +- src/PythonAddons/addons_Features.xml.in | 1 - src/PythonAddons/doc/addons_Features.rst | 1 - src/PythonAddons/doc/boxFeature.rst | 48 ------ src/PythonAddons/doc/examples/box/feature.py | 146 ------------------ src/PythonAddons/doc/examples/box/widget.xml | 20 --- src/PythonAddons/doc/images/Boxes.png | Bin 7786 -> 0 bytes src/PythonAddons/doc/images/box_ico.png | Bin 405 -> 0 bytes .../doc/images/box_property_panel.png | Bin 9192 -> 0 bytes src/PythonAddons/doc/pyFile_boxFeature.rst | 11 -- src/PythonAddons/doc/xmlFile_boxFeature.rst | 11 -- src/PythonAddons/macros/box/__init__.py | 18 --- src/PythonAddons/macros/box/feature.py | 146 ------------------ src/PythonAddons/macros/box/icons/box_ico.png | Bin 405 -> 0 bytes src/PythonAddons/macros/box/widget.xml | 20 --- 17 files changed, 2 insertions(+), 540 deletions(-) delete mode 100644 src/PythonAddons/doc/boxFeature.rst delete mode 100644 src/PythonAddons/doc/examples/box/feature.py delete mode 100644 src/PythonAddons/doc/examples/box/widget.xml delete mode 100644 src/PythonAddons/doc/images/Boxes.png delete mode 100644 src/PythonAddons/doc/images/box_ico.png delete mode 100644 src/PythonAddons/doc/images/box_property_panel.png delete mode 100644 src/PythonAddons/doc/pyFile_boxFeature.rst delete mode 100644 src/PythonAddons/doc/xmlFile_boxFeature.rst delete mode 100644 src/PythonAddons/macros/box/__init__.py delete mode 100644 src/PythonAddons/macros/box/feature.py delete mode 100644 src/PythonAddons/macros/box/icons/box_ico.png delete mode 100644 src/PythonAddons/macros/box/widget.xml diff --git a/src/PythonAddons/CMakeLists.txt b/src/PythonAddons/CMakeLists.txt index 2cbae61b2..4dad90f28 100644 --- a/src/PythonAddons/CMakeLists.txt +++ b/src/PythonAddons/CMakeLists.txt @@ -38,7 +38,7 @@ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/addons_Features.xml DESTINATION ${SHAP INSTALL(FILES __init__.py DESTINATION ${SHAPER_INSTALL_ADDONS}) INSTALL(DIRECTORY macros DESTINATION ${SHAPER_INSTALL_ADDONS}) -INSTALL(DIRECTORY macros/box/icons/ macros/rectangle/icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Addons) +INSTALL(DIRECTORY macros/rectangle/icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Addons) INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) INCLUDE(UnitTest) diff --git a/src/PythonAddons/PythonAddons_msg_en.ts b/src/PythonAddons/PythonAddons_msg_en.ts index 6807ced78..305ed4131 100644 --- a/src/PythonAddons/PythonAddons_msg_en.ts +++ b/src/PythonAddons/PythonAddons_msg_en.ts @@ -1,116 +1,4 @@ - - Box:Model_FeatureValidator - - Attribute "height" is not initialized. - Height of the box is not defined. - - - - Box:height:GeomValidators_Positive - - Double is not initialized. - Height of the box is not defined. - - - - Box:height:GeomValidators_Positive - - Value is too small. - Height of the box is too small. - - - - Box:height:GeomValidators_Positive - - Integer is not initialized. - Height of the box is not defined. - - - - Box:height:GeomValidators_Positive - - Integer is not positive. - Height of the box is too small. - - - - Box:Model_FeatureValidator - - Attribute "width" is not initialized. - Set the box width - - - - Box:Model_FeatureValidator - - Attribute "length" is not initialized. - Set the box length - - - - Box:Model_FeatureValidator - - Attribute "height" is not initialized. - Set the box height - - - - Box:width:GeomValidators_Positive - - Double is not initialized. - Set the box width - - - - Box:width:GeomValidators_Positive - - Value is too small. - The box width is too small - - - - Box:width:GeomValidators_Positive - - Integer is not initialized. - - - - - Box:width:GeomValidators_Positive - - Integer is not positive. - - - - - Box:length:GeomValidators_Positive - - Double is not initialized. - Set the box length - - - - Box:length:GeomValidators_Positive - - Value is too small. - The box width is too small - - - - Box:length:GeomValidators_Positive - - Integer is not initialized. - - - - - Box:length:GeomValidators_Positive - - Integer is not positive. - - - diff --git a/src/PythonAddons/addons_Features.py b/src/PythonAddons/addons_Features.py index 50f820856..d28db61ab 100644 --- a/src/PythonAddons/addons_Features.py +++ b/src/PythonAddons/addons_Features.py @@ -21,7 +21,6 @@ """ import ModelAPI -from macros.box.feature import BoxFeature from macros.rectangle.feature import SketchPlugin_Rectangle @@ -42,10 +41,7 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): """Override ModelAPI_Plugin.createFeature()""" aFeature = None - if theFeatureID == BoxFeature.ID(): - aFeature = BoxFeature().__disown__() - - elif theFeatureID == SketchPlugin_Rectangle.ID(): + if theFeatureID == SketchPlugin_Rectangle.ID(): aFeature = SketchPlugin_Rectangle().__disown__() else: diff --git a/src/PythonAddons/addons_Features.xml.in b/src/PythonAddons/addons_Features.xml.in index 68b168192..f0190ba62 100644 --- a/src/PythonAddons/addons_Features.xml.in +++ b/src/PythonAddons/addons_Features.xml.in @@ -1,4 +1,3 @@ - diff --git a/src/PythonAddons/doc/addons_Features.rst b/src/PythonAddons/doc/addons_Features.rst index da4b661b8..ddeac8f89 100644 --- a/src/PythonAddons/doc/addons_Features.rst +++ b/src/PythonAddons/doc/addons_Features.rst @@ -19,5 +19,4 @@ Two examples of already created custom features are: :titlesonly: :maxdepth: 1 - boxFeature.rst rectangleFeature.rst diff --git a/src/PythonAddons/doc/boxFeature.rst b/src/PythonAddons/doc/boxFeature.rst deleted file mode 100644 index 28d0d5dbe..000000000 --- a/src/PythonAddons/doc/boxFeature.rst +++ /dev/null @@ -1,48 +0,0 @@ - -Box -=== - -Custom files for **Box** feature are: - -- empty __init__.py, -- :ref:`create_custom_box_py`, -- :ref:`create_custom_box_xml`, -- icon.png located at sub-folder */icons*. - -.. image:: images/box_ico.png - :align: center - -.. centered:: - File icon.png - -The custom **Box** feature creates a box solid by extrusion of rectangle. - -To create a Box in the active part: - -#. select in the Main Menu *Macros - > Box* item or -#. click **Box** button in the Macros toolbar corresponding to file icon.png: - -The following property panel appears. - -.. image:: images/box_property_panel.png - :align: center - -.. centered:: - Create a box - -Input fields: - -- **Width**, **Length**, **Height** are sizes of the box along the corresponding coordinate axes. The box will be created starting from the origin. - -Result -"""""" - -The Result of operation will be Extrusion and Sketch. - -The edges of the box will be parallel to the coordinate axes. - -.. image:: images/Boxes.png - :align: center - -.. centered:: - Created box \ No newline at end of file diff --git a/src/PythonAddons/doc/examples/box/feature.py b/src/PythonAddons/doc/examples/box/feature.py deleted file mode 100644 index c669ec09e..000000000 --- a/src/PythonAddons/doc/examples/box/feature.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -""" -Box macro-feature -Authors: Renaud Nedelec - Daniel Brunier-Coulin -""" - -from salome.shaper import model -from salome.shaper import geom - - -class BoxFeature(model.Feature): - """An example of Box feature implementation. - - BoxFeature() -> Box - """ - -# Initializations - - def __init__(self): - """x.__init__(...) initializes x; see x.__class__.__doc__ for signature""" - model.Feature.__init__(self) - - @staticmethod - def ID(): - """Return Id of the feature.""" - return "Box_script" - - @staticmethod - def WIDTH_ID(): - """Returns ID of Width parameter.""" - return "width" - - @staticmethod - def LENGTH_ID(): - """Returns ID of Length parameter.""" - return "length" - - @staticmethod - def HEIGHT_ID(): - """Returns ID of Height parameter.""" - return "height" - - def getKind(self): - """Override Feature.getKind()""" - return BoxFeature.ID() - - -# Creation of the box at default size - - def initAttributes(self): - """Override Feature.initAttributes()""" - # Creating the input arguments of the feature - self.addRealInput(self.WIDTH_ID()) - self.addRealInput(self.LENGTH_ID()) - self.addRealInput(self.HEIGHT_ID()) - - # Creating the base of the box with unit values - mypart = model.activeDocument() - xoy = model.defaultPlane("XOY") - - # A base of the geometry - self.base = model.addSketch(mypart, xoy) - - p1 = geom.Pnt2d(0, 0) - p2 = geom.Pnt2d(0, 1) - p3 = geom.Pnt2d(1, 1) - p4 = geom.Pnt2d(1, 0) - - line = model.addPolygon(self.base, p1, p2, p3, p4) - - self.base.setFixed(line[0].startPoint()) - self.base.setVertical(line[0]) - - # Setting the size of the base with default values - # Width - self.width = self.base.setLength(line[3], 50) # Keeps the constraint for edition - # Length - self.length = self.base.setLength(line[0], 50) # Keeps the constraint for edition - - # Keeping the rectangle - self.base.setParallel(line[0], line[2]) - self.base.setParallel(line[1], line[3]) - self.base.setPerpendicular(line[0], line[3]) - - # execute sketch - mypart.setCurrentFeature(self.base.feature(), False) - model.updateFeatures() - - # Creating the extrusion (the box) at default size - # A box result - self.box = model.addExtrusion(mypart, self.base.selectFace(), 50) - -# Edition of the box at user size - - def execute(self): - """F.execute() -- execute the feature""" - # Retrieving the user inputs - width = self.real(self.WIDTH_ID()) - length = self.real(self.LENGTH_ID()) - height = self.real(self.HEIGHT_ID()) - - # Editing the box - if width.text() == "": - self.base.setValue(self.width, width.value()) - else: - self.base.setValue(self.width, width.text()) - - if length.text() == "": - self.base.setValue(self.length, length.value()) - else: - self.base.setValue(self.length, length.text()) - - if (height.text() == ""): - self.box.setSize(height.value()) - else: - self.box.setSize(height.text()) - - # Publishing the result: not needed for Macro feature - # self.addResult( self.box.result() ) - - def isMacro(self): - """Override Feature.initAttributes(). - F.isMacro() -> True - - Box feature is macro: removes itself on the creation transaction - finish. - """ - return True diff --git a/src/PythonAddons/doc/examples/box/widget.xml b/src/PythonAddons/doc/examples/box/widget.xml deleted file mode 100644 index b9752fa3e..000000000 --- a/src/PythonAddons/doc/examples/box/widget.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/PythonAddons/doc/images/Boxes.png b/src/PythonAddons/doc/images/Boxes.png deleted file mode 100644 index 01ccf5f175e94f57e15c015da61fb76568886b9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7786 zcmZvBc|4Ts8@HuMp;O2fPDv;sGib6+WnYuTltFb2Qk1cTL6eg;CQF8~P1Zs~DY7R; zVHl&an<>*6Gqx;aU*1Q{Ip=+U?;k#od7kU@y}sA--1qgppP2L3CPKTVc5`uY37MH1 zUf|;5rgCxd?AgTw-1)@3@ff&pBQKboc>r8aR-(HJ`YaZT=PY zJ3PDISdyaCOF?5D-;ShrE2-MriatDjWq(%35fPCOp#onHh~sni#O30%C6XhIo9{(G zwcU5}Z3eAmtKcaiY@^0`!^eJOraq@@W$lgq%$Y_)&C-?durjHVuJsW%*S(~h&$f0$ zPv%SFPmu-BXR><`M6L%fy!ez7z`UYGs|#2mu&>@1JX6;9?F3so@H@fK6%jxbdeiQ# z{l3-92ldH-`h76N2LeuL+-jyr=5VJy0Bhrmz2i;h2Bo{|Hg&oNf~y*#W5?4IOB?ACJ_GBv~J@(L@efra1L^z-L<(;8R$-?#%_YnR}J+3k=hZsbg+iT3mL zi75Ro=Qa3cn(XTA^Sy88*kyg%Tv}#0q!Erz?+vXi$lzM(z;VaQ6Jg|3Nj!`^EEvxx zb%egXVB z*D2F$?Q7*HXmhcRq{mIF0mce+n5aW|Gd~6w0^hp{R7bi@>+Mazt=7l4nWg}PO2JF~ zy@d`Mr_I4&4&CdZR4AR$iGd{q7t%bU?dGu3<{V zWtg>jME{B$_st~u{KJ3~KEv{@Q2G3zp2dC_G*HX!q-+N=TsPzmJK4kKyBsl?apg+n zOj|U+>WC%z49YSmw#+Q&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11b4Cr2xo=17M*E_M z-1}stlMs$PXvB50poIwfl6$WLvD~t{!tk4K>^AF!o8BM(GFOOR!zpjQ!7KQ1xQ zrN6=F)^_RwH|&+{L*qHf$RT%~ifd+|1uRtD0{3KQM-7xLSPGN}2`Of7#VGPR zB0DR9j94i_Il4By>SGkZ*{c&+Fz-Y()W?aLoZ$Ej!xym>j<^zPcrIVkk;XT~w8h$` z&~lTzcee-zO#-thN+1m+FV+Py#!lPyF3F>Y)MQh&Z{p-oIDVB{#KCi5w> zfxWZ|0NVwT6ORuG(`5O(qyyx=8)kaE#1bN2+hEL=Kp;=P!lcy<+!}vlwH7TJipj0> z%A-J9Q&-ElLiWFoUv7z2YK?`q9u3xQqeEo7z!|`dVySRJ=h)2MXn9iJ)coDTMsfJTJD@S zU3y4E5q$`^mdSc|kfX=bFK~vnfiNB?V~TZjzTR(-LO0MWJR4?1d>pfuR~OtY&*9L- zfs6Pal)S!XjSIf$5b^CpEsup7w5%;tFA4EyUrl`Wu7wo;FyeRjn6J5AdRvE5Jom5=hdv2mfkyKg2?UcbNA9wD_eR>&!a}Ryg2ZPrsdhb?2VGylRR0%XHi-W z`ZAc>sm1zmc9=M=A-JzEr!lYCdn=va%YIUq3Hk zQa>&bRnHc2S)Sq_VcM#gIu8gCW_G_Lmv*RjST zga^0U9b9TRgqWNO{(GOCF?ydc+~^P0^X`!bkVQ~)PThRb{YFm8^~Hf;I?QKvb#v*> z7%8f*s`ye_!{VETXPZwqCGRll||HM62)_;E^S#HXQf>=yvk|QAW?gS~1+*yRZNH0%Xn63HJc> i$^iiWogm+q+`#H$f0((HAn<*d%go5ykZ{)Z{{I0ks)r5$ diff --git a/src/PythonAddons/doc/images/box_ico.png b/src/PythonAddons/doc/images/box_ico.png deleted file mode 100644 index 104a1edde755dae03a8348b40b4667b0e70d860c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 405 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj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IY zDFV!78NX*jXw~5%-KqWIaR9$`8;%VxQ;o zUh^seUq8bj*o*TnOCdeU_)pQF9Q+x@d_v}L@Imt1FHunsXaUVCp_At0;(A6UT&>|= zDB~7TUtj;);3+eaR=enz${Jl$4QIbPA2|81FB}0GqPgdfBh1dKA(!IA$w(%00Xr;D z0Rd4_+s9_+zlmPydC)y4rU*ChQ#G5T{rrArh*+6ip!-L7FQkQDHV#+nw)T;;i$`z2 zsdTv8`CGuTP*cW-QGr0VjN-PGycgsNFz65ecs1F=!&19vRt{S(gSv&fyHVP5p) z@TR7@)F~7~37eJ!S*FaC*|Sg2zA*3%4J$}c{xjZcNC78@fLElb10 zigWzTa;r)~f!W#JT@7}THgHs_Syl?G#YA!EVuw;hL9I?&OG}GaoWt?@Z;guG8L|H7 zhduuy0B!shudG0t+0D*HCAu248a-inzNY0>U8znIoW#y8j{8|uTG{@7PBjeLK4Pr= zBQN}G6CakAl`-IDPJZcvF6xj+sEAL)$cXvKY)28a@mWvvtJ&Z8tt>;p9NAgtEG|qc z)X*U4&GHuRvazvYEBCcNOTqku{W573jH642$cVc-$*EB$nId8%;_ z(oFhSysvRIFhU8r#<9!v&FH0B`Vo$K*c`2N3>Z?mA{r2`eGu-&iFT3A{Y`U!Xnh;n;p&%yTg_R3wlRA2HQ z;lp!F$SGX3rfR9$%(lutCVc%CGhq!pM#^QHOSUbc!iS;iu!f{t3ilrx_s8!@{~-bo zy3X#0bLc40(lL9>P#mSzgzoXY@b){3Q_c{l$R%0MnQLe=myMDy#YI6&S%kDG1(|e< zwMINKAA bhbIAAWZX3LU<=gWIA{toDxlK0CPDuPK|t~t diff --git a/src/PythonAddons/doc/pyFile_boxFeature.rst b/src/PythonAddons/doc/pyFile_boxFeature.rst deleted file mode 100644 index dd2f5fa21..000000000 --- a/src/PythonAddons/doc/pyFile_boxFeature.rst +++ /dev/null @@ -1,11 +0,0 @@ - - .. _create_custom_box_py: - -File feature.py -=============== - -.. literalinclude:: examples/box/feature.py - :linenos: - :language: python - -:download:`Download this script ` \ No newline at end of file diff --git a/src/PythonAddons/doc/xmlFile_boxFeature.rst b/src/PythonAddons/doc/xmlFile_boxFeature.rst deleted file mode 100644 index cd3e5c872..000000000 --- a/src/PythonAddons/doc/xmlFile_boxFeature.rst +++ /dev/null @@ -1,11 +0,0 @@ - - .. _create_custom_box_xml: - -File widget.xml -=============== - -.. literalinclude:: examples/box/widget.xml - :linenos: - :language: html - -:download:`Download this script ` \ No newline at end of file diff --git a/src/PythonAddons/macros/box/__init__.py b/src/PythonAddons/macros/box/__init__.py deleted file mode 100644 index 0d18652cf..000000000 --- a/src/PythonAddons/macros/box/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2015-2019 CEA/DEN, EDF R&D -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# diff --git a/src/PythonAddons/macros/box/feature.py b/src/PythonAddons/macros/box/feature.py deleted file mode 100644 index c669ec09e..000000000 --- a/src/PythonAddons/macros/box/feature.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -""" -Box macro-feature -Authors: Renaud Nedelec - Daniel Brunier-Coulin -""" - -from salome.shaper import model -from salome.shaper import geom - - -class BoxFeature(model.Feature): - """An example of Box feature implementation. - - BoxFeature() -> Box - """ - -# Initializations - - def __init__(self): - """x.__init__(...) initializes x; see x.__class__.__doc__ for signature""" - model.Feature.__init__(self) - - @staticmethod - def ID(): - """Return Id of the feature.""" - return "Box_script" - - @staticmethod - def WIDTH_ID(): - """Returns ID of Width parameter.""" - return "width" - - @staticmethod - def LENGTH_ID(): - """Returns ID of Length parameter.""" - return "length" - - @staticmethod - def HEIGHT_ID(): - """Returns ID of Height parameter.""" - return "height" - - def getKind(self): - """Override Feature.getKind()""" - return BoxFeature.ID() - - -# Creation of the box at default size - - def initAttributes(self): - """Override Feature.initAttributes()""" - # Creating the input arguments of the feature - self.addRealInput(self.WIDTH_ID()) - self.addRealInput(self.LENGTH_ID()) - self.addRealInput(self.HEIGHT_ID()) - - # Creating the base of the box with unit values - mypart = model.activeDocument() - xoy = model.defaultPlane("XOY") - - # A base of the geometry - self.base = model.addSketch(mypart, xoy) - - p1 = geom.Pnt2d(0, 0) - p2 = geom.Pnt2d(0, 1) - p3 = geom.Pnt2d(1, 1) - p4 = geom.Pnt2d(1, 0) - - line = model.addPolygon(self.base, p1, p2, p3, p4) - - self.base.setFixed(line[0].startPoint()) - self.base.setVertical(line[0]) - - # Setting the size of the base with default values - # Width - self.width = self.base.setLength(line[3], 50) # Keeps the constraint for edition - # Length - self.length = self.base.setLength(line[0], 50) # Keeps the constraint for edition - - # Keeping the rectangle - self.base.setParallel(line[0], line[2]) - self.base.setParallel(line[1], line[3]) - self.base.setPerpendicular(line[0], line[3]) - - # execute sketch - mypart.setCurrentFeature(self.base.feature(), False) - model.updateFeatures() - - # Creating the extrusion (the box) at default size - # A box result - self.box = model.addExtrusion(mypart, self.base.selectFace(), 50) - -# Edition of the box at user size - - def execute(self): - """F.execute() -- execute the feature""" - # Retrieving the user inputs - width = self.real(self.WIDTH_ID()) - length = self.real(self.LENGTH_ID()) - height = self.real(self.HEIGHT_ID()) - - # Editing the box - if width.text() == "": - self.base.setValue(self.width, width.value()) - else: - self.base.setValue(self.width, width.text()) - - if length.text() == "": - self.base.setValue(self.length, length.value()) - else: - self.base.setValue(self.length, length.text()) - - if (height.text() == ""): - self.box.setSize(height.value()) - else: - self.box.setSize(height.text()) - - # Publishing the result: not needed for Macro feature - # self.addResult( self.box.result() ) - - def isMacro(self): - """Override Feature.initAttributes(). - F.isMacro() -> True - - Box feature is macro: removes itself on the creation transaction - finish. - """ - return True diff --git a/src/PythonAddons/macros/box/icons/box_ico.png b/src/PythonAddons/macros/box/icons/box_ico.png deleted file mode 100644 index 104a1edde755dae03a8348b40b4667b0e70d860c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 405 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#Vf2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4kh`q^SLUNVrt6;T)nD-m^ zgx#~wmA}0-iBrvlZ+0>_!?oD=JHuAKnG4I#Lt<9A;joy~jYU0bN z6tK-c@ZFsDSF^2|A~iUDR-b)#rsw*C-!oS`xcpLmA?AB6cgy!myT?zvXKqgTBR*rX zyD|sEYyHEW*LGBW5cXcVJf8cJ%CV<=*Z)53c%l1HF?YkqZ~?)XJ9l3lJpN&sc - - - - - - - - - - - - - - - - - - -- 2.39.2