parameter_create("a", "100")
- sketch_create(points["XY_plane"], lambda: line_create((0, 0), ("a", 0)))
+ sketch_create(help_points("XY_plane"), lambda: line_create((0, 0), ("a", 0)))
waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1)")
clickItem(":Object browser_XGUI_DataTree", "Parameters (1)", -10, 10, 0, Qt.LeftButton)
line_create((0, 0), (100, 0))
point_create((50, 50))
- point_1 = (536, 273) # point
- point_2 = (543, 299) # line
- annotaion_point = (392, 291)
- distance_create(point_1,point_2, annotaion_point, 100)
+ point_1 = (412, 293) # point
+ point_2 = (412, 324) # line
+ annotaion_point = (262, 319)
+ distance_create(point_1, point_2, annotaion_point, 100)
mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), annotaion_point[0], annotaion_point[1], 0, Qt.LeftButton)
waitFor("object.exists(':Distance.First object_QLineEdit')", 20000)
startApplication("GeomApp")
set_defaults()
- sketch_create(points["XY_plane"], lambda: sketch())
+ sketch_create(help_points("XY_plane"), lambda: sketch())
def sketch():
- circle_border = (229, 290)
- circle_create_in_view((334, 237), circle_border)
- radius_create(circle_border, (148, 97), 150)
+ circle_center = (300, 400)
+ circle_border = (500, 400)
+ radius_end_point = (100, 100)
+ circle_create_in_view(circle_center, circle_border)
+ radius_create(circle_border, radius_end_point, 150)
# check
- circle_border = (335, 141)
+ circle_border = (200, 400)
mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), circle_border[0], circle_border[1], 0, Qt.LeftButton)
waitFor("object.exists(':Circle.CircleRadius_ModuleBase_ParamSpinBox')", 20000)
test.compare(str(findObject(":Circle.CircleRadius_ModuleBase_ParamSpinBox").text), "150")
startApplication("GeomApp")
set_defaults()
- sketch_create(points("XY_plane"), lambda: sketch())
+ sketch_create(help_points("XY_plane"), lambda: sketch())
sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))
clickButton(waitForObject(":Save current file.Discard_QPushButton"))