+## Copyright (C) 2014-2017 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<mailto:webmaster.salome@opencascade.com>
+##
+
def sketch():
clickButton(waitForObject(":Basic.Line_AppElements_Button"))
mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 230, 140, 0, Qt.LeftButton)
def main():
source(findFile("scripts", "common.py"))
-
+
startApplication("linux_run.sh")
set_defaults()
-
+
sketch_create(help_points("XY_plane"), lambda: sketch())
-
+
part_create()
extrusion_feature([(266, 251)], 10) # on the sketch
clickButton(waitForObject(":Plane.property_panel_ok_QToolButton"))
test.vp("VP_EXTRUSION")
-
+
clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features")
clickButton(waitForObject(":Boolean.Partition_AppElements_Button"))
mouseClick(waitForObject(":Partition.Main objects_QListWidget"), 10, 10, 0, Qt.LeftButton)
mouseClick(waitForObject(":Partition.Tool object_QListWidget"), 10, 10, 0, Qt.LeftButton)
mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 212, 344, 0, Qt.LeftButton) # construction plane
clickButton(waitForObject(":Partition.property_panel_ok_QToolButton"))
-
+
test.vp("VP_PARTITION")