From 0b4217db3aa480c8fc8fc87a3a0990e4fa00bf27 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Tue, 1 Oct 2019 15:24:48 +0200 Subject: [PATCH] Update for documentation and some fixes --- src/PythonAddons/doc/addons_Features.rst | 4 +- .../doc/compoundVerticesFeature.rst | 39 ++++++ src/PythonAddons/doc/images/compound.png | Bin 0 -> 213 bytes .../doc/images/compoundVertices.png | Bin 0 -> 1803 bytes .../doc/images/compoundVerticesPanel.png | Bin 0 -> 7855 bytes .../doc/images/importParameters.png | Bin 0 -> 191 bytes .../doc/images/importParametersPanel.png | Bin 0 -> 5577 bytes .../doc/importParametersFeature.rst | 27 ++++ src/PythonAddons/macros/box/__init__.py | 1 - src/PythonAddons/macros/box/feature.py | 128 ------------------ src/PythonAddons/macros/box/icons/box_ico.png | Bin 405 -> 0 bytes src/PythonAddons/macros/box/widget.xml | 22 --- .../macros/compoundVertices/feature.py | 4 + .../macros/compoundVertices/widget.xml | 9 +- .../macros/importParameters/widget.xml | 6 +- 15 files changed, 85 insertions(+), 155 deletions(-) create mode 100644 src/PythonAddons/doc/compoundVerticesFeature.rst create mode 100644 src/PythonAddons/doc/images/compound.png create mode 100644 src/PythonAddons/doc/images/compoundVertices.png create mode 100644 src/PythonAddons/doc/images/compoundVerticesPanel.png create mode 100644 src/PythonAddons/doc/images/importParameters.png create mode 100644 src/PythonAddons/doc/images/importParametersPanel.png create mode 100644 src/PythonAddons/doc/importParametersFeature.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/doc/addons_Features.rst b/src/PythonAddons/doc/addons_Features.rst index 85346ff09..1db6329d6 100644 --- a/src/PythonAddons/doc/addons_Features.rst +++ b/src/PythonAddons/doc/addons_Features.rst @@ -13,10 +13,12 @@ A feature description includes 4 files: - feature.py with python commands, - icon.png with image of button in the toolbar (the file is located at sub-folder /icons). -An example of already created custom features is: +Some examples of already created custom features are: .. toctree:: :titlesonly: :maxdepth: 1 rectangleFeature.rst + compoundVerticesFeature.rst + importParametersFeature.rst diff --git a/src/PythonAddons/doc/compoundVerticesFeature.rst b/src/PythonAddons/doc/compoundVerticesFeature.rst new file mode 100644 index 000000000..00cc89a67 --- /dev/null +++ b/src/PythonAddons/doc/compoundVerticesFeature.rst @@ -0,0 +1,39 @@ +.. _create_compound_Vertices: +.. |compoundVertices.icon| image:: images/compound.png + +compound Vertices +================= + +Compound Vertices is a feature and can be edited after execution. +It allows creation of several points basing on XYZ coords file. + +.. warning:: + Please note that it is better to limit yourself to create a maximum of 100 points. + +These set of points will be grouped in a compound and can be used for others features. + +To add a new set of points: + +#. select in the Main Menu *Macros - > Points set* item or +#. click |compoundVertices.icon| **Points set** button in Macros toolbar: + +The following property panel appears: + +.. image:: images/compoundVerticesPanel.png + :align: center + +.. centered:: + set of Points + +Select your points file and define a separator if it's different that " " in your points file + +Result +"""""" + +A resulting compound will contain the points + +.. image:: images/compoundVertices.png + :align: center + +.. centered:: + Points diff --git a/src/PythonAddons/doc/images/compound.png b/src/PythonAddons/doc/images/compound.png new file mode 100644 index 0000000000000000000000000000000000000000..5e119b39a983359f202624c1e9c2a1878ca5df56 GIT binary patch literal 213 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=DinK$vl=HlH+5kiEpy*OmP-ha9hT(^NX`VSDXolC=I}d&xCk(m*RSQ?^`fj@(W2VVEPL#txr9hT29m{oxj=ja@ziiH|~WD35-jwbUU82Ny!D;#^CAd=d#Wzp$P!& C$VWZ^ literal 0 HcmV?d00001 diff --git a/src/PythonAddons/doc/images/compoundVertices.png b/src/PythonAddons/doc/images/compoundVertices.png new file mode 100644 index 0000000000000000000000000000000000000000..9f624f8d22962fa20206dae61a2834bbfb895100 GIT binary patch literal 1803 zcmeAS@N?(olHy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F0LT%t9l8tv_%{%z{J9eJDFhtQ%3%=cYJr>Ukodr6i+r;evZTXuJjkv2z+a%y zGQ_5mVvl;J&tE3cI3+SLI7MT@-_}J0*0uCSCB^=Hfi$e+zV;t0=FrfHZaA7P{jMP*>4W Ju2Qs({5LqKm%9J} literal 0 HcmV?d00001 diff --git a/src/PythonAddons/doc/images/importParameters.png b/src/PythonAddons/doc/images/importParameters.png new file mode 100644 index 0000000000000000000000000000000000000000..3b382b91c46c96f98cb71d0591892129fc2fb908 GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9F5he4R}c>anMpdfpR zr>`sfV-8skW5Kxd!lgi=I8PVH5R21$CwX%*DDpTfSG>P4Io*uQ=*P-1ogD(nHAff@ zdM;+3G%MC*GYdndVwBJmXRp$U|8Jz~hf9R+$qkCnYq_oVN_YE7-lhn)>vf4PCMVCv js>qs8Oj+?P{~7Z`#@N~O{xCcT+Qi`L>gTe~DWM4fY|B0) literal 0 HcmV?d00001 diff --git a/src/PythonAddons/doc/images/importParametersPanel.png b/src/PythonAddons/doc/images/importParametersPanel.png new file mode 100644 index 0000000000000000000000000000000000000000..f395df54656a1cb9336227f41acd99c1a97d9c8f GIT binary patch literal 5577 zcmai2XHXMdmkweO5MCk#K|0cV3rLTIrWENQAYH2T1R;bXO+e{gdJ`c?lOR$fN|6o* zq!T*QOOP&XzMa{f@5i^Z_s1sMKo?ae~B5(&^M@LV%ix*;# z6srsX&|5xMQ!x(6-I+rM(fM8V987Q*iD-s_DLn)?lByHgat z5Y;E(n`Q*kqb&YdyW9L5jr!euHA%06_G|#l-6Sc(kT)EaVWKFbWO@ho5+Sb95RdFK zhLHS3%^wnk!62OY-r0~pFTrFeGu@4xQ;pupv8yYiIs#NoFM&Y-BSBSfBf~*3O_&OK zk%QX?Wx!^th$Ygg19o_LC?L}3wXsP)`dr2%FlYJQJI@cA>T2SyKO>Zd`~}`)__6aP zG;0eZ7G`SxH7EretJhTQ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9?i zd*5BPR;{MJD>-KTf*(-m%1;JNEi<7}PrS-yhdQUJIz{gyB^nI%wJ6*lu+4Xg9 yp|>y@HASFe^QJ3=1^Gce@4q import Parameters* item or +#. click |importParameters.icon| **import Parameters** button in Macros toolbar: + +The following property panel appears: + +.. image:: images/importParametersPanel.png + :align: center + +.. centered:: + Import Parameters + + +Result +"""""" + +Several parameters are automatically created. diff --git a/src/PythonAddons/macros/box/__init__.py b/src/PythonAddons/macros/box/__init__.py deleted file mode 100644 index 1b78cf4b8..000000000 --- a/src/PythonAddons/macros/box/__init__.py +++ /dev/null @@ -1 +0,0 @@ -## Copyright (C) 2014-20xx OPEN CASCADE diff --git a/src/PythonAddons/macros/box/feature.py b/src/PythonAddons/macros/box/feature.py deleted file mode 100644 index 5af78bdec..000000000 --- a/src/PythonAddons/macros/box/feature.py +++ /dev/null @@ -1,128 +0,0 @@ -## Copyright (C) 2014-20xx OPEN CASCADE - -""" -Box macro-feature -""" - -from salome.shaper import model -from salome.shaper import geom - - -class BoxFeature(model.Feature): - """An example of feature implementation. - """ - -# 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) - self.box.setNestedSketch(self.base) -# self.box.setName(self.name()) - -# 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 - - - - - - - - - - - - - - - - - - - diff --git a/src/PythonAddons/macros/compoundVertices/feature.py b/src/PythonAddons/macros/compoundVertices/feature.py index 9b33c7fb5..bf5ce564b 100644 --- a/src/PythonAddons/macros/compoundVertices/feature.py +++ b/src/PythonAddons/macros/compoundVertices/feature.py @@ -2,6 +2,7 @@ Author: Nathalie Gore """ +from qtsalome import QMessageBox from salome.shaper import model from salome.shaper import geom import ModelAPI @@ -77,6 +78,9 @@ class compoundVertices(model.Feature): with open(filepath) as file: for line in file: coord = line.split(self.separator) + if len(coord) != 3: + #QMessageBox.warning( self, 'Error!', '3D coords waited!' ) + return x = float(coord[0]); y = float(coord[1]); z = float(coord[2]); point = model.addPoint(part, x,y,z); point.execute(True); self.lfeatures.append(point) vertex = model.addVertex(part, [point.result()]); vertex.execute(True); self.lfeatures.append(vertex) diff --git a/src/PythonAddons/macros/compoundVertices/widget.xml b/src/PythonAddons/macros/compoundVertices/widget.xml index 738a90cbe..75e5a6c21 100644 --- a/src/PythonAddons/macros/compoundVertices/widget.xml +++ b/src/PythonAddons/macros/compoundVertices/widget.xml @@ -2,8 +2,13 @@ - - + + diff --git a/src/PythonAddons/macros/importParameters/widget.xml b/src/PythonAddons/macros/importParameters/widget.xml index caad1409a..086571993 100644 --- a/src/PythonAddons/macros/importParameters/widget.xml +++ b/src/PythonAddons/macros/importParameters/widget.xml @@ -2,7 +2,11 @@ - + -- 2.39.2