1 # Copyright (C) 2014-2022 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 clickButton(waitForObject(":Basic.Line_AppElements_Button"))
22 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 230, 140, 0, Qt.LeftButton)
23 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 128, 399, 0, Qt.LeftButton)
24 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 307, 317, 0, Qt.LeftButton)
25 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 473, 347, 0, Qt.LeftButton)
26 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 230, 140, 0, Qt.LeftButton)
29 source(findFile("scripts", "common.py"))
31 startApplication("linux_run.sh")
34 sketch_create(help_points("XY_plane"), lambda: sketch())
38 extrusion_feature([(266, 251)], 10) # on the sketch
40 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Construction")
41 clickButton(waitForObject(":Basic.Plane_AppElements_Button"))
42 type(waitForObject(":OpenParts*_AppElements_ViewPort"), "<Control>")
43 mouseDrag(waitForObject(":OpenParts*_AppElements_ViewPort"), 353, 364, -37, -171, 67108866, Qt.RightButton)
44 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 274, 316, 0, Qt.LeftButton) # inner left face
45 clickButton(waitForObject(":Plane.property_panel_ok_QToolButton"))
47 test.vp("VP_EXTRUSION")
49 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features")
50 clickButton(waitForObject(":Boolean.Partition_AppElements_Button"))
51 mouseClick(waitForObject(":Partition.Main objects_QListWidget"), 10, 10, 0, Qt.LeftButton)
52 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 227, 263, 0, Qt.LeftButton) # extrusion object
53 mouseClick(waitForObject(":Partition.Tool object_QListWidget"), 10, 10, 0, Qt.LeftButton)
54 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 212, 344, 0, Qt.LeftButton) # construction plane
55 clickButton(waitForObject(":Partition.property_panel_ok_QToolButton"))
57 test.vp("VP_PARTITION")