From: vsv Date: Mon, 11 Mar 2019 14:12:54 +0000 (+0300) Subject: Implement Python API compatibility tests X-Git-Tag: V9_3_0b1~3^2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e210b18f74a5233ab4dfef954cb9cb5df941dfb;p=modules%2Fshaper.git Implement Python API compatibility tests --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 112c31420..5eabd92f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,10 @@ IF(ADD_MODELS_TESTS) ADD_CUSTOM_TARGET(run_unit_tests COMMAND ${CMAKE_CTEST_COMMAND} -C "${CMAKE_BUILD_TYPE}" -LE "models_tests") ENDIF(ADD_MODELS_TESTS) +IF(ADD_COMPATIBILITY_TESTS) + ADD_SUBDIRECTORY (test.compatibility) + ADD_CUSTOM_TARGET(run_unit_tests COMMAND ${CMAKE_CTEST_COMMAND} -C "${CMAKE_BUILD_TYPE}" -LE "tests_compatibility") +ENDIF(ADD_COMPATIBILITY_TESTS) IF(SHAPER_BUILD_DOC) INCLUDE(FindSphinx) diff --git a/make.sh b/make.sh index dcacba097..d175c9223 100755 --- a/make.sh +++ b/make.sh @@ -17,6 +17,10 @@ while [[ $# > 0 ]]; do ADD_MODELS_TESTS=TRUE shift ;; + compatibility|test-compatibility) + ADD_COMPATIBILITY_TESTS=TRUE + shift + ;; *) shift ;; diff --git a/test.compatibility/CMakeLists.txt b/test.compatibility/CMakeLists.txt new file mode 100644 index 000000000..9782b9edf --- /dev/null +++ b/test.compatibility/CMakeLists.txt @@ -0,0 +1,62 @@ +# 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 +# + +ENABLE_TESTING() + +file(GLOB pyFiles "*.py") + +if (WIN32) # different separators and path to libraries variable name + SET(_JUSTPATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_BIN};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES};${SUIT_LIB_DIR};$ENV{PATH}") + STRING(REPLACE "\\" "/" _JUSTPATH "${_JUSTPATH}") + STRING(REPLACE ";" "\\;" _JUSTPATH "${_JUSTPATH}") + SET(_PYTHONPATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES};${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_ADDONS};$ENV{PYTHONPATH}") + STRING(REPLACE "\\" "/" _PYTHONPATH "${_PYTHONPATH}") + STRING(REPLACE ";" "\\;" _PYTHONPATH "${_PYTHONPATH}") +else() + SET(_LD_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_BIN}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES}:${SUIT_LIB_DIR}:$ENV{LD_LIBRARY_PATH}") + SET(_PYTHONPATH "${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_SWIG}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_PLUGIN_FILES}:${CMAKE_INSTALL_PREFIX}/${SHAPER_INSTALL_ADDONS}:$ENV{PYTHONPATH}") +endif() + +foreach(eachFilePath ${pyFiles}) + # Strip the ".py" suffix + GET_FILENAME_COMPONENT(aTestName ${eachFilePath} NAME_WE) + + # Add "SubprojectName_" prefix + GET_FILENAME_COMPONENT(aSubprojectName ${CMAKE_CURRENT_SOURCE_DIR} NAME) + SET(aTestName "${aSubprojectName}_${aTestName}") + + # Full path to the python test file beeing executed + SET(aTestFilePath "${eachFilePath}") + IF(EXISTS ${aTestFilePath}) + ADD_TEST(NAME ${aTestName} COMMAND ${PYTHON_EXECUTABLE} ${aTestFilePath}) + if (WIN32) # different path to libraries variable name + SET_TESTS_PROPERTIES(${aTestName} PROPERTIES ENVIRONMENT "PATH=${_JUSTPATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "tests_compatibility") + else() + SET_TESTS_PROPERTIES(${aTestName} PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${_LD_LIBRARY_PATH};PYTHONPATH=${_PYTHONPATH}" + LABELS "tests_compatibility") + endif() + # Debug output... + # MESSAGE(STATUS "Test added: ${aTestName} file: ${aTestFilePath}") + ELSE(EXISTS ${aTestFilePath}) + MESSAGE(WARNING "Can not find the test file: ${aTestFilePath}") + ENDIF(EXISTS ${aTestFilePath}) +endforeach(eachFilePath ${ARGN}) + +ADD_CUSTOM_TARGET(run_tests_compatibility COMMAND ${CMAKE_CTEST_COMMAND} -C "${CMAKE_BUILD_TYPE}" -L "tests_compatibility") diff --git a/test.compatibility/CSWA.py b/test.compatibility/CSWA.py new file mode 100644 index 000000000..0d343d5bd --- /dev/null +++ b/test.compatibility/CSWA.py @@ -0,0 +1,282 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_A = model.addParameter(Part_1_doc, "a", "63") +model.addParameter(Part_1_doc, "b", "50") +model.addParameter(Part_1_doc, "c", "100") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(-45, 0, 0, 0) +SketchLine_2 = Sketch_1.addLine(0, 0, 23.33965093306752, 8.494938217797719) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchLine_3 = Sketch_1.addLine(33.83092017818969, 6.16907982180411, 40, 0) +SketchLine_4 = Sketch_1.addLine(40, 0, 55, 0) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchConstraintCoincidence_2.setName("SketchConstraintCoincidence_3") +SketchLine_5 = Sketch_1.addLine(55, 0, 55, 48) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint()) +SketchConstraintCoincidence_3.setName("SketchConstraintCoincidence_4") +SketchLine_6 = Sketch_1.addLine(55, 48, 15, 48) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_4.setName("SketchConstraintCoincidence_5") +SketchLine_7 = Sketch_1.addLine(15, 48, 15, 63) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_6") +SketchLine_8 = Sketch_1.addLine(15, 63, -15, 63) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_7") +SketchLine_9 = Sketch_1.addLine(-15, 63, -15, 35.00000000000001) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_8") +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_8.result()) +SketchConstraintCollinear_1 = Sketch_1.setCollinear(SketchLine_1.result(), SketchLine_4.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result()) +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_7.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_4.endPoint(), 15) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_1.endPoint(), 40) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.endPoint(), "c") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_8.startPoint(), SketchLine_6.result(), 15) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_8.startPoint(), SketchLine_5.result(), 40) +SketchLine_10 = Sketch_1.addLine(-45, 4.999999999999999, -45, 0) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_10.endPoint()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_9") +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_10.result()) +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_9.startPoint(), SketchLine_1.result(), "a") +SketchArc_1 = Sketch_1.addArc(-45, 35, -45, 4.999999999999999, -15, 35.00000000000001, False) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_1.center(), SketchLine_10.result()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_10") +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_11") +SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_3.result(), SketchLine_1.result(), 45) +SketchConstraintAngle_2 = Sketch_1.setAngleBackward(SketchLine_2.result(), SketchLine_4.result(), 20) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_9.endPoint()) +SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_12") +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_9.result()) +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchArc_1.center(), SketchLine_1.result(), 35) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 30) +SketchArc_2 = Sketch_1.addArc(26.75985236632421, -0.9019879900613652, 33.83092017818969, 6.16907982180411, 23.33965093306752, 8.494938217797719, False) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_3.startPoint()) +SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_13") +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_2.endPoint()) +SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_14") +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_2.result()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_3.result()) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], 10) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchPoint_1.coordinates()) +SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_15") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_2f-SketchArc_2_2r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_6f-SketchLine_7f-SketchLine_8f-SketchLine_9f-SketchArc_1_2r-SketchLine_10f")], model.selection(), "b/2", "b/2") +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face")) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_9][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2][Extrusion_1_1/To_Face]")) +SketchCircle_1 = Sketch_2.addCircle(-15, 35.00000000000001, 25) +SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchPoint_2.result(), SketchCircle_1.center()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_16") +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_1.results()[1], "50/2") +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f_wire")], model.selection(), 0, 13, [model.selection("SOLID", "Extrusion_1_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&ExtrusionCut_1_1/From_Face")) +SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Generated_Vertex&ExtrusionCut_1_1/From_Face")) +SketchLine_11 = Sketch_3.addLine(model.selection("EDGE", "([ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2([ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2")) +SketchArc_3 = Sketch_3.addArc(-15, 35.00000000000001, -15, 46.0103340429751, -17.02045759563166, 24.17663606626138, True) +SketchConstraintCoincidence_16 = Sketch_3.setCoincident(SketchPoint_3.result(), SketchArc_3.center()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_17") +SketchConstraintCoincidence_17 = Sketch_3.setCoincident(SketchLine_11.result(), SketchArc_3.startPoint()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_18") +SketchArc_4 = Sketch_3.addArc(model.selection("EDGE", "([ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2([ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2")) +SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchArc_3.endPoint(), SketchArc_4.results()[1]) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_19") +SketchLine_12 = Sketch_3.addLine(-15, 46.0103340429751, -15, 35.00000000000001) +SketchConstraintCoincidence_19 = Sketch_3.setCoincident(SketchArc_3.startPoint(), SketchLine_12.startPoint()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_20") +SketchConstraintCoincidence_20 = Sketch_3.setCoincident(SketchPoint_3.coordinates(), SketchLine_12.endPoint()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_21") +SketchArc_5 = Sketch_3.addArc(-45, 35, -15, 35.00000000000001, -17.02045759563121, 24.17663606626137, True) +SketchConstraintCoincidence_21 = Sketch_3.setCoincident(SketchArc_4.result(), SketchArc_5.center()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_22") +SketchConstraintCoincidence_22 = Sketch_3.setCoincident(SketchPoint_3.coordinates(), SketchArc_5.startPoint()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_23") +SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchArc_3.results()[1], SketchArc_5.endPoint()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_24") +model.do() +ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchArc_3_2f-SketchLine_12f-SketchArc_5_2r")], model.selection(), 5, 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionFuse_1_1/To_Face")) +SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "[ExtrusionFuse_1_1/Generated_Face&Sketch_3/SketchArc_5_2][ExtrusionFuse_1_1/Generated_Face&Sketch_3/SketchLine_12][ExtrusionFuse_1_1/To_Face]")) +SketchCircle_2 = Sketch_4.addCircle(-15, 35.00000000000001, 5) +SketchConstraintCoincidence_24 = Sketch_4.setCoincident(SketchPoint_4.result(), SketchCircle_2.center()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_25") +SketchConstraintRadius_4 = Sketch_4.setRadius(SketchCircle_2.results()[1], "10/2") +model.do() +ExtrusionFuse_2 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchCircle_2_2f")], model.selection(), 8, 0, [model.selection("SOLID", "ExtrusionFuse_1_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchArc_6 = Sketch_5.addArc(model.selection("EDGE", "[ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionFuse_1_1/Modified_Face&Sketch_1/SketchArc_1_2]")) +SketchArc_7 = Sketch_5.addArc(-45, 35, -45, 5, -25.41666666666737, 12.27351642784166, False) +SketchConstraintCoincidence_25 = Sketch_5.setCoincident(SketchArc_6.result(), SketchArc_7.center()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_26") +SketchCircle_3 = Sketch_5.addCircle(model.selection("EDGE", "[ExtrusionFuse_2_1/Generated_Face&Sketch_4/SketchCircle_2_2][ExtrusionFuse_2_1/To_Face]")) +SketchArc_8 = Sketch_5.addArc(-15, 35.00000000000001, -25.41666666666737, 12.27351642784166, -30.00000000000075, 14.99999999999944, True) +SketchConstraintCoincidence_26 = Sketch_5.setCoincident(SketchCircle_3.result(), SketchArc_8.center()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_27") +SketchConstraintCoincidence_27 = Sketch_5.setCoincident(SketchArc_6.endPoint(), SketchArc_8.startPoint()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_28") +SketchConstraintCoincidence_28 = Sketch_5.setCoincident(SketchArc_7.endPoint(), SketchArc_8.results()[1]) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_29") +SketchConstraintCoincidence_29 = Sketch_5.setCoincident(SketchArc_7.startPoint(), SketchArc_6.startPoint()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_30") +SketchLine_13 = Sketch_5.addLine(-45, 5, -45, 10) +SketchConstraintCoincidence_30 = Sketch_5.setCoincident(SketchArc_6.startPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_31") +SketchConstraintVertical_5 = Sketch_5.setVertical(SketchLine_13.result()) +SketchConstraintLength_1 = Sketch_5.setLength(SketchLine_13.result(), 5) +SketchArc_9 = Sketch_5.addArc(-45, 35, -45, 10, -30.00000000000075, 14.99999999999944, False) +SketchConstraintCoincidence_31 = Sketch_5.setCoincident(SketchArc_6.center(), SketchArc_9.center()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_32") +SketchConstraintCoincidence_32 = Sketch_5.setCoincident(SketchArc_8.endPoint(), SketchArc_9.endPoint()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_33 = Sketch_5.setCoincident(SketchArc_9.startPoint(), SketchLine_13.endPoint()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_34") +model.do() +ExtrusionFuse_3 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_7_2f-SketchArc_8_2r-SketchArc_9_2r-SketchLine_13r")], model.selection(), 0, 8, [model.selection("SOLID", "ExtrusionFuse_2_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionFuse_3_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchLine_14 = Sketch_6.addLine(model.selection("EDGE", "[ExtrusionFuse_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5]")) +SketchArc_10 = Sketch_6.addArc(55, 35, 55, 15, 35, 35, True) +SketchConstraintCoincidence_34 = Sketch_6.setCoincident(SketchLine_14.result(), SketchArc_10.center()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_35") +SketchConstraintCoincidence_35 = Sketch_6.setCoincident(SketchLine_14.result(), SketchArc_10.startPoint()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_36") +SketchLine_15 = Sketch_6.addLine(model.selection("EDGE", "[ExtrusionFuse_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_4]")) +SketchConstraintDistance_8 = Sketch_6.setDistance(SketchArc_10.center(), SketchLine_15.result(), 35, False) +SketchLine_16 = Sketch_6.addLine(35, 35, 35, 47.99999999999999) +SketchConstraintCoincidence_36 = Sketch_6.setCoincident(SketchArc_10.endPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_37") +SketchLine_17 = Sketch_6.addLine(model.selection("EDGE", "[ExtrusionFuse_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]")) +SketchConstraintCoincidence_37 = Sketch_6.setCoincident(SketchLine_16.endPoint(), SketchLine_17.result()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_38") +SketchConstraintVertical_6 = Sketch_6.setVertical(SketchLine_16.result()) +SketchConstraintTangent_4 = Sketch_6.setTangent(SketchLine_16.result(), SketchArc_10.results()[1]) +SketchConstraintRadius_5 = Sketch_6.setRadius(SketchArc_10.results()[1], 20) +SketchLine_18 = Sketch_6.addLine(55, 15, 55, 47.99999999999999) +SketchConstraintCoincidence_38 = Sketch_6.setCoincident(SketchArc_10.startPoint(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_39") +SketchConstraintCoincidence_39 = Sketch_6.setCoincident(SketchLine_14.endPoint(), SketchLine_18.endPoint()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_40") +SketchLine_19 = Sketch_6.addLine(35, 47.99999999999999, 55, 47.99999999999999) +SketchConstraintCoincidence_40 = Sketch_6.setCoincident(SketchLine_16.endPoint(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_41") +SketchConstraintCoincidence_41 = Sketch_6.setCoincident(SketchLine_14.endPoint(), SketchLine_19.endPoint()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_42") +model.do() +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_6/Face-SketchArc_10_2f-SketchLine_18f-SketchLine_19r-SketchLine_16r_wire")], model.selection(), 0, 9, [model.selection("SOLID", "ExtrusionFuse_3_1")]) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_2_1/From_Face")) +SketchCircle_4 = Sketch_7.addCircle(45, -35, 5) +SketchLine_20 = Sketch_7.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_5][ExtrusionCut_2_1/From_Face]")) +SketchConstraintDistance_9 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_20.result(), 10, False) +SketchConstraintRadius_6 = Sketch_7.setRadius(SketchCircle_4.results()[1], "10/2") +SketchLine_21 = Sketch_7.addLine(35, -35, 45, -35) +SketchLine_21.setAuxiliary(True) +SketchPoint_5 = Sketch_7.addPoint(model.selection("VERTEX", "[ExtrusionCut_2_1/Generated_Face&Sketch_6/SketchLine_16][ExtrusionCut_2_1/Generated_Face&Sketch_6/SketchArc_10_2][ExtrusionCut_2_1/From_Face]")) +SketchConstraintCoincidence_42 = Sketch_7.setCoincident(SketchLine_21.startPoint(), SketchPoint_5.result()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43") +SketchConstraintCoincidence_43 = Sketch_7.setCoincident(SketchCircle_4.center(), SketchLine_21.endPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_44") +SketchConstraintHorizontal_4 = Sketch_7.setHorizontal(SketchLine_21.result()) +model.do() +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_7/Face-SketchCircle_4_2r")], model.selection(), model.selection(), 0, model.selection("FACE", "Extrusion_1_1/From_Face"), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8")) +SketchLine_22 = Sketch_8.addLine(55, 25, 5.000000000000002, 25) +SketchLine_23 = Sketch_8.addLine(5.000000000000002, 25, 5.000000000000002, 13) +SketchLine_24 = Sketch_8.addLine(5.000000000000002, 13, 55, 13) +SketchLine_25 = Sketch_8.addLine(55, 13, 55, 25) +SketchConstraintCoincidence_44 = Sketch_8.setCoincident(SketchLine_25.endPoint(), SketchLine_22.startPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_45") +SketchConstraintCoincidence_45 = Sketch_8.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_46 = Sketch_8.setCoincident(SketchLine_23.endPoint(), SketchLine_24.startPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_47") +SketchConstraintCoincidence_47 = Sketch_8.setCoincident(SketchLine_24.endPoint(), SketchLine_25.startPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_48") +SketchConstraintHorizontal_5 = Sketch_8.setHorizontal(SketchLine_22.result()) +SketchConstraintVertical_7 = Sketch_8.setVertical(SketchLine_23.result()) +SketchConstraintHorizontal_6 = Sketch_8.setHorizontal(SketchLine_24.result()) +SketchConstraintVertical_8 = Sketch_8.setVertical(SketchLine_25.result()) +SketchConstraintLength_2 = Sketch_8.setLength(SketchLine_22.result(), 50) +SketchConstraintLength_3 = Sketch_8.setLength(SketchLine_25.result(), 12) +SketchProjection_1 = Sketch_8.addProjection(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_5][ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_6]"), False) +SketchLine_26 = SketchProjection_1.createdFeature() +SketchConstraintCoincidence_48 = Sketch_8.setCoincident(SketchLine_22.startPoint(), SketchLine_26.result()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_49") +SketchLine_27 = Sketch_8.addLine(model.selection("EDGE", "[ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8]")) +SketchConstraintCoincidence_49 = Sketch_8.setCoincident(SketchLine_22.startPoint(), SketchLine_27.result()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_50") +model.do() +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchLine_22r-SketchLine_23f-SketchLine_24f-SketchLine_25f")], model.selection(), model.selection(), 0, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_4"), 0, [model.selection("SOLID", "ExtrusionCut_3_1")]) +Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionFuse_1_1/Modified_Face&Sketch_1/SketchLine_9")) +SketchLine_28 = Sketch_9.addLine(25, -45, 18.44853578320833, -63) +SketchLine_29 = Sketch_9.addLine(model.selection("EDGE", "[ExtrusionFuse_1_1/Modified_Face&Sketch_1/SketchLine_9][ExtrusionCut_4_1/Modified_Face&Sketch_1/SketchLine_8]")) +SketchConstraintCoincidence_50 = Sketch_9.setCoincident(SketchLine_28.endPoint(), SketchLine_29.result()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_51") +SketchLine_30 = Sketch_9.addLine(model.selection("EDGE", "[ExtrusionCut_4_1/Modified_Face&Extrusion_1_1/From_Face][ExtrusionFuse_1_1/Modified_Face&Sketch_1/SketchLine_9]")) +SketchConstraintCoincidence_51 = Sketch_9.setCoincident(SketchLine_28.startPoint(), SketchLine_30.result()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_52") +SketchConstraintAngle_3 = Sketch_9.setAngle(SketchLine_28.result(), SketchLine_30.result(), 20.00000000000009) +SketchConstraintDistance_10 = Sketch_9.setDistance(SketchLine_28.startPoint(), SketchLine_29.result(), 18, False) +SketchLine_31 = Sketch_9.addLine(18.44853578320833, -63, 25, -63) +SketchConstraintCoincidence_52 = Sketch_9.setCoincident(SketchLine_28.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_53") +SketchConstraintCoincidence_53 = Sketch_9.setCoincident(SketchLine_29.startPoint(), SketchLine_31.endPoint()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_54") +SketchLine_32 = Sketch_9.addLine(25, -63, 25, -45) +SketchConstraintCoincidence_54 = Sketch_9.setCoincident(SketchLine_29.startPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_55") +SketchConstraintCoincidence_55 = Sketch_9.setCoincident(SketchLine_28.startPoint(), SketchLine_32.endPoint()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_56") +model.do() +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_9/Face-SketchLine_28r-SketchLine_31f-SketchLine_32f")], model.selection(), model.selection(), 0, model.selection("FACE", "ExtrusionCut_4_1/Modified_Face&Sketch_1/SketchLine_5"), 0, [model.selection("SOLID", "ExtrusionCut_4_1")]) +Sketch_10 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_8")) +SketchCircle_5 = Sketch_10.addCircle(-6.000000000000002, 4.999999999999997, 5) +SketchLine_33 = Sketch_10.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_8]")) +SketchConstraintDistance_11 = Sketch_10.setDistance(SketchCircle_5.center(), SketchLine_33.result(), 30, False) +SketchLine_34 = Sketch_10.addLine(model.selection("EDGE", "[ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_9][ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_8]")) +SketchConstraintDistance_12 = Sketch_10.setDistance(SketchCircle_5.result(), SketchLine_34.result(), 9, False) +SketchConstraintRadius_7 = Sketch_10.setRadius(SketchCircle_5.results()[1], "10/2") +model.do() +ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_10/Face-SketchCircle_5_2r")], model.selection(), model.selection(), 0, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1"), 0, [model.selection("SOLID", "ExtrusionCut_5_1")]) +model.do() + +# Test reexecution after parameter change +Parameter_A.setValue(62) +model.do() +model.testResultsVolumes(ExtrusionCut_6, [141392.1882461419]) +Parameter_A.setValue(63) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_6, 1) +model.testNbSubShapes(ExtrusionCut_6, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/angle30.py b/test.compatibility/angle30.py new file mode 100644 index 000000000..e7a2fd644 --- /dev/null +++ b/test.compatibility/angle30.py @@ -0,0 +1,696 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_H = model.addParameter(Part_1_doc, "H", "6") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchLine_1 = Sketch_1.addLine(50, 70, 50, 9.237604307034024) +SketchLine_1.setName("SketchLine_10") +SketchLine_1.result().setName("SketchLine_10") +SketchLine_2 = Sketch_1.addLine(42, -4.618802153516998, -53.92304845413265, -60) +SketchLine_2.setName("SketchLine_11") +SketchLine_2.result().setName("SketchLine_11") +SketchLine_3 = Sketch_1.addLine(50, 70, 50, 0) +SketchLine_3.setName("SketchLine_1") +SketchLine_3.result().setName("SketchLine_1") +SketchLine_3.setAuxiliary(True) +SketchLine_4 = Sketch_1.addLine(50, 0, -53.92304845413265, -60) +SketchLine_4.setName("SketchLine_2") +SketchLine_4.result().setName("SketchLine_2") +SketchLine_4.setAuxiliary(True) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(44, 9.237604307034037, 44, 70) +SketchLine_5.setName("SketchLine_8") +SketchLine_5.result().setName("SketchLine_8") +SketchLine_6 = Sketch_1.addLine(-53.92304845413265, -60, -56.92304845413265, -54.80384757729332) +SketchLine_6.setName("SketchLine_3") +SketchLine_6.result().setName("SketchLine_3") +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 39, 0.5773502691896394) +SketchLine_7.setName("SketchLine_9") +SketchLine_7.result().setName("SketchLine_9") +SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137764) +SketchLine_8.setName("SketchLine_4") +SketchLine_8.result().setName("SketchLine_4") +SketchLine_8.setAuxiliary(True) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_8.startPoint()) +SketchLine_9 = Sketch_1.addLine(44, 3.464101615137764, 44, 70) +SketchLine_9.setName("SketchLine_5") +SketchLine_9.result().setName("SketchLine_5") +SketchLine_9.setAuxiliary(True) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint()) +SketchLine_10 = Sketch_1.addLine(44, 70, 50, 70) +SketchLine_10.setName("SketchLine_6") +SketchLine_10.result().setName("SketchLine_6") +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_10.endPoint()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_10.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_9.result(), "H", False) +SketchLine_11 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_11.setName("SketchLine_7") +SketchLine_11.result().setName("SketchLine_7") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_11.result(), 50, False) +SketchArc_1 = Sketch_1.addArc(34, 9.237604307034037, 39, 0.5773502691896394, 44, 9.237604307034037, False) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_7.endPoint()) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_7.result()) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_5.endPoint()) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_8.startPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.result()) +SketchArc_2 = Sketch_1.addArc(34, 9.237604307034022, 42, -4.618802153516998, 50, 9.237604307034024, False) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_2.startPoint()) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.endPoint()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_1.result()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_2.result()) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_2.endPoint()) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.result()) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_4.result()) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.startPoint(), 70, False) +SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_2.result(), SketchLine_6.result()) +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_2.result(), 6, False) +SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_2.result(), SketchLine_7.result()) +SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_1.result(), SketchLine_2.result(), 119.9999999999999) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_4.startPoint(), SketchLine_6.startPoint(), 120, False) +SketchLine_12 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_12.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 16) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_1.results()[1], 10) +model.do() +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchCircle_1 = Sketch_2.addCircle(0, 0, 17.5) +SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchPoint_1.result()) +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_1.results()[1], 17.5) +SketchCircle_2 = Sketch_2.addCircle(0, 0, 14.5) +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchCircle_2.center()) +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchCircle_2.center()) +SketchConstraintRadius_4 = Sketch_2.setRadius(SketchCircle_2.results()[1], 14.5) +model.do() +Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchLine_13 = Sketch_3.addLine(-22, 70, -22, -35.79571668975675) +SketchLine_14 = Sketch_3.addLine(-22, -35.79571668975675, 55, 8.660254037844405) +SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint()) +SketchLine_15 = Sketch_3.addLine(55, 8.660254037844405, 55, 70) +SketchConstraintCoincidence_24 = Sketch_3.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint()) +SketchLine_16 = Sketch_3.addLine(55, 70, -22, 70) +SketchConstraintCoincidence_25 = Sketch_3.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_13.startPoint(), SketchLine_16.endPoint()) +SketchConstraintHorizontal_2 = Sketch_3.setHorizontal(SketchLine_16.result()) +SketchConstraintVertical_3 = Sketch_3.setVertical(SketchLine_15.result()) +SketchConstraintVertical_4 = Sketch_3.setVertical(SketchLine_13.result()) +SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4")) +SketchConstraintParallel_2 = Sketch_3.setParallel(SketchLine_14.result(), SketchLine_17.result()) +SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_14.endPoint(), SketchLine_17.result(), 1, False) +SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_16.startPoint(), SketchLine_18.result(), 55, False) +SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_13.startPoint(), SketchLine_18.result(), 22, False) +SketchLine_19 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_15.endPoint(), SketchLine_19.result(), 70, False) +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2r-SketchCircle_2_2r_wire")], model.selection(), 75, 45) +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) +Common_1 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Extrusion_2_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchLine_20 = Sketch_4.addLine(-4, 38, -4, 21.26617031813674) +SketchLine_20.setName("SketchLine_36") +SketchLine_20.result().setName("SketchLine_36") +SketchArc_3 = Sketch_4.addArc(0, 0, -8.5, 15.2970585407786, -7.446808510638298, 15.83650981137842, True) +SketchArc_3.setName("SketchArc_6") +SketchArc_3.result().setName("SketchArc_6") +SketchArc_3.results()[1].setName("SketchArc_6_2") +SketchArc_4 = Sketch_4.addArc(0, 0, 7.446808510638299, 15.83650981137842, 8.5, 15.29705854077835, True) +SketchArc_4.setName("SketchArc_8") +SketchArc_4.result().setName("SketchArc_8") +SketchArc_4.results()[1].setName("SketchArc_8_2") +SketchLine_21 = Sketch_4.addLine(4, 21.26617031813674, 4, 38) +SketchLine_21.setName("SketchLine_38") +SketchLine_21.result().setName("SketchLine_38") +SketchLine_22 = Sketch_4.addLine(-8.5, 15.2970585407786, -8.5, 12) +SketchLine_22.setName("SketchLine_22") +SketchLine_22.result().setName("SketchLine_22") +SketchLine_23 = Sketch_4.addLine(-10.1, 44, -10, 44) +SketchLine_23.setName("SketchLine_37") +SketchLine_23.result().setName("SketchLine_37") +SketchLine_24 = Sketch_4.addLine(10, 44, 10.1, 44) +SketchLine_24.setName("SketchLine_39") +SketchLine_24.result().setName("SketchLine_39") +SketchLine_25 = Sketch_4.addLine(8.5, 12, 8.5, 15.29705854077835) +SketchLine_25.setName("SketchLine_24") +SketchLine_25.result().setName("SketchLine_24") +SketchLine_26 = Sketch_4.addLine(4, 44, 10.1, 44) +SketchLine_26.setName("SketchLine_26") +SketchLine_26.result().setName("SketchLine_26") +SketchLine_26.setAuxiliary(True) +SketchLine_27 = Sketch_4.addLine(4, 17.03672503740084, 4, 44) +SketchLine_27.setName("SketchLine_27") +SketchLine_27.result().setName("SketchLine_27") +SketchLine_27.setAuxiliary(True) +SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_26.startPoint()) +SketchLine_28 = Sketch_4.addLine(10.1, 44, 10.1, 45) +SketchLine_28.setName("SketchLine_28") +SketchLine_28.result().setName("SketchLine_28") +SketchConstraintCoincidence_28 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_28.startPoint()) +SketchLine_29 = Sketch_4.addLine(10.1, 45, -10.1, 45) +SketchLine_29.setName("SketchLine_29") +SketchLine_29.result().setName("SketchLine_29") +SketchConstraintCoincidence_29 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint()) +SketchLine_30 = Sketch_4.addLine(-10.1, 45, -10.1, 44) +SketchLine_30.setName("SketchLine_30") +SketchLine_30.result().setName("SketchLine_30") +SketchConstraintCoincidence_30 = Sketch_4.setCoincident(SketchLine_29.endPoint(), SketchLine_30.startPoint()) +SketchLine_31 = Sketch_4.addLine(-10.1, 44, -4, 44) +SketchLine_31.setName("SketchLine_31") +SketchLine_31.result().setName("SketchLine_31") +SketchLine_31.setAuxiliary(True) +SketchConstraintCoincidence_31 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchLine_32 = Sketch_4.addLine(-4, 44, -4, 17.03672503740078) +SketchLine_32.setName("SketchLine_20") +SketchLine_32.result().setName("SketchLine_20") +SketchLine_32.setAuxiliary(True) +SketchConstraintCoincidence_32 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_31.endPoint()) +SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_32.result()) +SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_27.result()) +SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_29.result()) +SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_31.result()) +SketchConstraintHorizontal_5 = Sketch_4.setHorizontal(SketchLine_26.result()) +SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_30.result()) +SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_28.result()) +SketchConstraintVertical_9 = Sketch_4.setVertical(SketchLine_25.result()) +SketchConstraintVertical_10 = Sketch_4.setVertical(SketchLine_22.result()) +SketchLine_33 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_33.setName("SketchLine_32") +SketchLine_33.result().setName("SketchLine_32") +SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_22.startPoint(), SketchLine_32.result(), 4.5, False) +SketchLine_34 = Sketch_4.addLine(-8.5, 12, 8.5, 12) +SketchLine_34.setName("SketchLine_33") +SketchLine_34.result().setName("SketchLine_33") +SketchConstraintCoincidence_33 = Sketch_4.setCoincident(SketchLine_22.endPoint(), SketchLine_34.startPoint()) +SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_34.result()) +SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchArc_5 = Sketch_4.addArc(0, 0, -8.5, 15.29705854, -4, 17.0367250374, True) +SketchArc_5.setName("SketchArc_4") +SketchArc_5.result().setName("SketchArc_4") +SketchArc_5.results()[1].setName("SketchArc_4_2") +SketchArc_5.setAuxiliary(True) +SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchArc_5.startPoint()) +SketchArc_6 = Sketch_4.addArc(0, 0, 4, 17.0367250374, 8.5, 15.29705854, True) +SketchArc_6.setName("SketchArc_5") +SketchArc_6.result().setName("SketchArc_5") +SketchArc_6.results()[1].setName("SketchArc_5_2") +SketchArc_6.setAuxiliary(True) +SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.endPoint()) +SketchPoint_3 = Sketch_4.addPoint(-4, 17.03672503740078) +SketchPoint_4 = Sketch_4.addPoint(4, 17.03672503740084) +SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchPoint_3.coordinates()) +SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchArc_6.startPoint(), SketchPoint_4.coordinates()) +SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_32.endPoint()) +SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchPoint_4.coordinates(), SketchLine_27.startPoint()) +SketchArc_7 = Sketch_4.addArc(-10, 21.26617031813674, -7.446808510638298, 15.83650981137842, -4, 21.26617031813674, False) +SketchArc_7.setName("SketchArc_7") +SketchArc_7.result().setName("SketchArc_7") +SketchArc_7.results()[1].setName("SketchArc_7_2") +SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchArc_7.startPoint(), SketchArc_3.endPoint()) +SketchLine_35 = Sketch_4.addLine(-4, 44, -4, 21.26617031813674) +SketchLine_35.setName("SketchLine_34") +SketchLine_35.result().setName("SketchLine_34") +SketchLine_35.setAuxiliary(True) +SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchArc_7.endPoint(), SketchLine_35.endPoint()) +SketchConstraintTangent_5 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_35.result()) +SketchConstraintTangent_6 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchArc_3.results()[1]) +SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_35.startPoint()) +SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchArc_5.startPoint(), SketchArc_3.startPoint()) +SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchArc_3.results()[1]) +SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_32.result()) +SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchArc_3.endPoint(), SketchArc_5.results()[1]) +SketchArc_8 = Sketch_4.addArc(10, 21.26617031813674, 4, 21.26617031813674, 7.446808510638299, 15.83650981137842, False) +SketchArc_8.setName("SketchArc_9") +SketchArc_8.result().setName("SketchArc_9") +SketchArc_8.results()[1].setName("SketchArc_9_2") +SketchLine_36 = Sketch_4.addLine(4, 21.26617031813674, 4, 44) +SketchLine_36.setName("SketchLine_35") +SketchLine_36.result().setName("SketchLine_35") +SketchLine_36.setAuxiliary(True) +SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_8.startPoint(), SketchLine_36.startPoint()) +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchArc_8.endPoint(), SketchArc_4.startPoint()) +SketchConstraintTangent_8 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchArc_4.results()[1]) +SketchConstraintTangent_9 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_36.result()) +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchArc_6.endPoint(), SketchArc_4.endPoint()) +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_36.endPoint()) +SketchConstraintTangent_10 = Sketch_4.setTangent(SketchArc_6.results()[1], SketchArc_4.results()[1]) +SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchArc_4.startPoint(), SketchArc_6.results()[1]) +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_27.result()) +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_34.endPoint()) +SketchCircle_3 = Sketch_4.addCircle(model.selection("EDGE", "Sketch_2/SketchCircle_1_2")) +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchCircle_3.results()[1]) +SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchArc_4.endPoint(), SketchCircle_3.results()[1]) +SketchConstraintRadius_5 = Sketch_4.setRadius(SketchArc_7.results()[1], 6) +SketchConstraintRadius_6 = Sketch_4.setRadius(SketchArc_8.results()[1], 6) +SketchConstraintDistance_11 = Sketch_4.setDistance(SketchLine_25.endPoint(), SketchLine_36.result(), 4.5, False) +SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_8.startPoint(), SketchLine_33.result(), 4, False) +SketchConstraintDistance_13 = Sketch_4.setDistance(SketchArc_7.endPoint(), SketchLine_33.result(), 4, False) +SketchArc_9 = Sketch_4.addArc(-10, 38, -4, 38, -10, 44, False) +SketchArc_9.setName("SketchArc_10") +SketchArc_9.result().setName("SketchArc_10") +SketchArc_9.results()[1].setName("SketchArc_10_2") +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchArc_9.startPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchArc_9.endPoint(), SketchLine_23.endPoint()) +SketchConstraintTangent_11 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_20.result()) +SketchConstraintTangent_12 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_23.result()) +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_20.endPoint()) +SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_20.startPoint(), SketchLine_35.result()) +SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchLine_23.endPoint(), SketchLine_31.result()) +SketchArc_10 = Sketch_4.addArc(10, 38, 10, 44, 4, 38, False) +SketchArc_10.setName("SketchArc_11") +SketchArc_10.result().setName("SketchArc_11") +SketchArc_10.results()[1].setName("SketchArc_11_2") +SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_10.startPoint(), SketchLine_24.startPoint()) +SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchArc_10.endPoint(), SketchLine_21.endPoint()) +SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_21.result()) +SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_24.result()) +SketchConstraintCoincidence_63 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_21.startPoint()) +SketchConstraintCoincidence_64 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_24.endPoint()) +SketchConstraintCoincidence_65 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_36.result()) +SketchConstraintCoincidence_66 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_26.result()) +SketchConstraintRadius_7 = Sketch_4.setRadius(SketchArc_9.results()[1], 6) +SketchConstraintRadius_8 = Sketch_4.setRadius(SketchArc_10.results()[1], 6) +SketchConstraintDistance_14 = Sketch_4.setDistance(SketchLine_23.startPoint(), SketchLine_29.result(), 1, False) +SketchConstraintDistance_15 = Sketch_4.setDistance(SketchLine_24.endPoint(), SketchLine_29.result(), 1, False) +SketchLine_37 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_37.setName("SketchLine_40") +SketchLine_37.result().setName("SketchLine_40") +SketchConstraintDistance_16 = Sketch_4.setDistance(SketchArc_10.startPoint(), SketchLine_37.result(), 44, False) +SketchConstraintDistance_17 = Sketch_4.setDistance(SketchLine_21.result(), SketchLine_24.endPoint(), 6.1, False) +SketchConstraintDistance_18 = Sketch_4.setDistance(SketchLine_30.endPoint(), SketchLine_20.result(), 6.1, False) +SketchConstraintCoincidence_67 = Sketch_4.setCoincident(SketchArc_3.center(), SketchCircle_3.center()) +SketchConstraintCoincidence_68 = Sketch_4.setCoincident(SketchArc_4.center(), SketchArc_3.center()) +SketchConstraintDistance_19 = Sketch_4.setDistance(SketchArc_4.center(), SketchLine_34.result(), 12, False) +model.do() +Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 50, 30) +Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) +Common_2 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "Extrusion_4_1")]) +Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) +Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_2_2f")], model.selection(), 75, 40) +Common_3 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_6_1")], [model.selection("SOLID", "Extrusion_5_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchLine_38 = Sketch_5.addLine(44, 3.464101615137764, 16.5, 51.0954988232819) +SketchLine_38.setName("SketchLine_41") +SketchLine_38.result().setName("SketchLine_41") +SketchPoint_5 = Sketch_5.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex")) +SketchConstraintCoincidence_69 = Sketch_5.setCoincident(SketchLine_38.startPoint(), SketchPoint_5.result()) +SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4")) +SketchLine_39.setName("SketchLine_42") +SketchLine_39.result().setName("SketchLine_42") +SketchConstraintPerpendicular_2 = Sketch_5.setPerpendicular(SketchLine_38.result(), SketchLine_39.result()) +SketchConstraintLength_1 = Sketch_5.setLength(SketchLine_38.result(), 55) +model.do() +Axis_4 = model.addAxis(Part_1_doc, model.selection("FACE", "Sketch_1/Face-SketchLine_6r-SketchLine_8r-SketchArc_1_2r-SketchLine_9r-SketchLine_3r-SketchLine_11r-SketchArc_2_2f-SketchLine_10r"), model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex")) +Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "Axis_1"), model.selection("VERTEX", "Sketch_5/SketchLine_41_EndVertex"), False) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_40 = Sketch_6.addLine(4, 13, 4, 12.9) +SketchLine_40.setName("SketchLine_55") +SketchLine_40.result().setName("SketchLine_55") +SketchLine_41 = Sketch_6.addLine(4, 12.9, -4, 12.9) +SketchLine_41.setName("SketchLine_44") +SketchLine_41.result().setName("SketchLine_44") +SketchLine_42 = Sketch_6.addLine(4, 19, 4, 12.9) +SketchLine_42.setName("SketchLine_43") +SketchLine_42.result().setName("SketchLine_43") +SketchLine_42.setAuxiliary(True) +SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_41.startPoint()) +SketchLine_43 = Sketch_6.addLine(-4, 12.9, -4, 13) +SketchLine_43.setName("SketchLine_52") +SketchLine_43.result().setName("SketchLine_52") +SketchLine_44 = Sketch_6.addLine(-10, 19, -10.1, 19) +SketchLine_44.setName("SketchLine_53") +SketchLine_44.result().setName("SketchLine_53") +SketchLine_45 = Sketch_6.addLine(-4, 12.9, -4, 19) +SketchLine_45.setName("SketchLine_45") +SketchLine_45.result().setName("SketchLine_45") +SketchLine_45.setAuxiliary(True) +SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_45.startPoint()) +SketchLine_46 = Sketch_6.addLine(10.1, 19, 10, 19) +SketchLine_46.setName("SketchLine_54") +SketchLine_46.result().setName("SketchLine_54") +SketchLine_47 = Sketch_6.addLine(-4, 19, -10.1, 19) +SketchLine_47.setName("SketchLine_46") +SketchLine_47.result().setName("SketchLine_46") +SketchLine_47.setAuxiliary(True) +SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_45.endPoint(), SketchLine_47.startPoint()) +SketchLine_48 = Sketch_6.addLine(-10.1, 19, -10.1, 19.8) +SketchLine_48.setName("SketchLine_47") +SketchLine_48.result().setName("SketchLine_47") +SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_48.startPoint()) +SketchLine_49 = Sketch_6.addLine(-10.1, 19.8, 10.1, 19.8) +SketchLine_49.setName("SketchLine_48") +SketchLine_49.result().setName("SketchLine_48") +SketchConstraintCoincidence_74 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_49.startPoint()) +SketchLine_50 = Sketch_6.addLine(10.1, 19.8, 10.1, 19) +SketchLine_50.setName("SketchLine_49") +SketchLine_50.result().setName("SketchLine_49") +SketchConstraintCoincidence_75 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_50.startPoint()) +SketchLine_51 = Sketch_6.addLine(10.1, 19, 4, 19) +SketchLine_51.setName("SketchLine_50") +SketchLine_51.result().setName("SketchLine_50") +SketchLine_51.setAuxiliary(True) +SketchConstraintCoincidence_76 = Sketch_6.setCoincident(SketchLine_50.endPoint(), SketchLine_51.startPoint()) +SketchConstraintCoincidence_77 = Sketch_6.setCoincident(SketchLine_42.startPoint(), SketchLine_51.endPoint()) +SketchConstraintVertical_11 = Sketch_6.setVertical(SketchLine_45.result()) +SketchConstraintVertical_12 = Sketch_6.setVertical(SketchLine_42.result()) +SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_41.result()) +SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_47.result()) +SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_51.result()) +SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_49.result()) +SketchConstraintVertical_13 = Sketch_6.setVertical(SketchLine_50.result()) +SketchConstraintDistance_20 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_49.result(), 0.8, False) +SketchConstraintDistance_21 = Sketch_6.setDistance(SketchLine_51.startPoint(), SketchLine_49.result(), 0.8, False) +SketchLine_52 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_41")) +SketchLine_52.setName("SketchLine_51") +SketchLine_52.result().setName("SketchLine_51") +SketchConstraintDistance_22 = Sketch_6.setDistance(SketchLine_45.startPoint(), SketchLine_52.result(), 4, False) +SketchConstraintDistance_23 = Sketch_6.setDistance(SketchLine_42.endPoint(), SketchLine_52.result(), 4, False) +SketchArc_11 = Sketch_6.addArc(-10, 13, -4, 13, -10, 19, False) +SketchArc_11.setName("SketchArc_12") +SketchArc_11.result().setName("SketchArc_12") +SketchArc_11.results()[1].setName("SketchArc_12_2") +SketchConstraintCoincidence_78 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_43.endPoint()) +SketchConstraintCoincidence_79 = Sketch_6.setCoincident(SketchArc_11.endPoint(), SketchLine_44.startPoint()) +SketchConstraintTangent_15 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_43.result()) +SketchConstraintTangent_16 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_44.result()) +SketchConstraintCoincidence_80 = Sketch_6.setCoincident(SketchLine_45.startPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_44.endPoint()) +SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_45.result()) +SketchConstraintCoincidence_83 = Sketch_6.setCoincident(SketchLine_44.startPoint(), SketchLine_47.result()) +SketchArc_12 = Sketch_6.addArc(10, 13, 10, 19, 4, 13, False) +SketchArc_12.setName("SketchArc_13") +SketchArc_12.result().setName("SketchArc_13") +SketchArc_12.results()[1].setName("SketchArc_13_2") +SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_46.endPoint()) +SketchConstraintCoincidence_85 = Sketch_6.setCoincident(SketchArc_12.endPoint(), SketchLine_40.startPoint()) +SketchConstraintTangent_17 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_46.result()) +SketchConstraintTangent_18 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_40.result()) +SketchConstraintCoincidence_86 = Sketch_6.setCoincident(SketchLine_51.startPoint(), SketchLine_46.startPoint()) +SketchConstraintCoincidence_87 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_40.endPoint()) +SketchConstraintCoincidence_88 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_51.result()) +SketchConstraintCoincidence_89 = Sketch_6.setCoincident(SketchLine_40.startPoint(), SketchLine_42.result()) +SketchConstraintRadius_9 = Sketch_6.setRadius(SketchArc_11.results()[1], 6) +SketchConstraintRadius_10 = Sketch_6.setRadius(SketchArc_12.results()[1], 6) +SketchConstraintDistance_24 = Sketch_6.setDistance(SketchLine_40.result(), SketchLine_46.startPoint(), 6.1, False) +SketchConstraintDistance_25 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_43.result(), 6.1, False) +SketchConstraintVertical_14 = Sketch_6.setVertical(SketchLine_48.result()) +SketchConstraintDistance_26 = Sketch_6.setDistance(SketchLine_41.result(), SketchArc_12.startPoint(), 6.1, False) +SketchLine_53 = Sketch_6.addLine(model.selection("EDGE", "Axis_1")) +SketchLine_53.setName("SketchLine_56") +SketchLine_53.result().setName("SketchLine_56") +SketchConstraintCoincidence_90 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_53.result()) +model.do() +Extrusion_7 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchArc_13_2r-SketchLine_54r-SketchLine_49r-SketchLine_48r-SketchLine_47r-SketchLine_53r-SketchArc_12_2r-SketchLine_52r-SketchLine_44r-SketchLine_55r")], model.selection(), 0, 40) +Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Common_1_1")], [model.selection("SOLID", "Common_2_1")]) +Fuse_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Fuse_1_1")], [model.selection("SOLID", "Extrusion_7_1")]) +Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Fuse_2_1")], [model.selection("SOLID", "Common_3_1")]) +Extrusion_8 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_6r-SketchLine_8r-SketchArc_1_2r-SketchLine_9r-SketchLine_3r-SketchLine_11r-SketchArc_2_2f-SketchLine_10r_wire")], model.selection(), 55, 55) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10")) +SketchLine_54 = Sketch_7.addLine(55, -9.237604307034024, 55, -60) +SketchLine_54.setName("SketchLine_66") +SketchLine_54.result().setName("SketchLine_66") +SketchPoint_6 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/To_Face]")) +SketchLine_55 = Sketch_7.addLine(55, -9.237604307034024, 55, -70) +SketchLine_55.setName("SketchLine_57") +SketchLine_55.result().setName("SketchLine_57") +SketchLine_55.setAuxiliary(True) +SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchPoint_6.result()) +SketchPoint_7 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/To_Face]")) +SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchPoint_7.result()) +SketchLine_56 = Sketch_7.addLine(45, -70, -45, -70) +SketchLine_56.setName("SketchLine_67") +SketchLine_56.result().setName("SketchLine_67") +SketchLine_57 = Sketch_7.addLine(55, -70, -55, -70) +SketchLine_57.setName("SketchLine_58") +SketchLine_57.result().setName("SketchLine_58") +SketchLine_57.setAuxiliary(True) +SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchLine_57.startPoint()) +SketchPoint_8 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]")) +SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchPoint_8.result()) +SketchLine_58 = Sketch_7.addLine(-55, -60, -55, -9.237604307034024) +SketchLine_58.setName("SketchLine_68") +SketchLine_58.result().setName("SketchLine_68") +SketchLine_59 = Sketch_7.addLine(-55, -70, -55, -9.237604307034024) +SketchLine_59.setName("SketchLine_59") +SketchLine_59.result().setName("SketchLine_59") +SketchLine_59.setAuxiliary(True) +SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_59.startPoint()) +SketchPoint_9 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]")) +SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchPoint_9.result()) +SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -60, -9.237604307034024) +SketchLine_60.setName("SketchLine_60") +SketchLine_60.result().setName("SketchLine_60") +SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_60.startPoint()) +SketchLine_61 = Sketch_7.addLine(-60, -9.237604307034024, -60, -79.23760430703402) +SketchLine_61.setName("SketchLine_61") +SketchLine_61.result().setName("SketchLine_61") +SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint()) +SketchLine_62 = Sketch_7.addLine(-60, -79.23760430703402, 60, -79.23760430703402) +SketchLine_62.setName("SketchLine_62") +SketchLine_62.result().setName("SketchLine_62") +SketchConstraintCoincidence_99 = Sketch_7.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint()) +SketchLine_63 = Sketch_7.addLine(60, -79.23760430703402, 60, -9.237604307034024) +SketchLine_63.setName("SketchLine_63") +SketchLine_63.result().setName("SketchLine_63") +SketchConstraintCoincidence_100 = Sketch_7.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint()) +SketchLine_64 = Sketch_7.addLine(60, -9.237604307034024, 55, -9.237604307034024) +SketchLine_64.setName("SketchLine_64") +SketchLine_64.result().setName("SketchLine_64") +SketchConstraintCoincidence_101 = Sketch_7.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint()) +SketchConstraintCoincidence_102 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_64.endPoint()) +SketchConstraintCoincidence_103 = Sketch_7.setCoincident(SketchPoint_6.coordinates(), SketchLine_64.endPoint()) +SketchConstraintHorizontal_11 = Sketch_7.setHorizontal(SketchLine_64.result()) +SketchConstraintHorizontal_12 = Sketch_7.setHorizontal(SketchLine_60.result()) +SketchConstraintHorizontal_13 = Sketch_7.setHorizontal(SketchLine_62.result()) +SketchConstraintVertical_15 = Sketch_7.setVertical(SketchLine_61.result()) +SketchConstraintVertical_16 = Sketch_7.setVertical(SketchLine_63.result()) +SketchArc_13 = Sketch_7.addArc(45, -60, 45, -70, 55, -60, False) +SketchArc_13.setName("SketchArc_14") +SketchArc_13.result().setName("SketchArc_14") +SketchArc_13.results()[1].setName("SketchArc_14_2") +SketchLine_65 = Sketch_7.addLine(45, -70, -55, -70) +SketchLine_65.setName("SketchLine_65") +SketchLine_65.result().setName("SketchLine_65") +SketchLine_65.setAuxiliary(True) +SketchConstraintCoincidence_104 = Sketch_7.setCoincident(SketchArc_13.startPoint(), SketchLine_65.startPoint()) +SketchConstraintCoincidence_105 = Sketch_7.setCoincident(SketchArc_13.endPoint(), SketchLine_54.endPoint()) +SketchConstraintTangent_19 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_65.result()) +SketchConstraintTangent_20 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_54.result()) +SketchConstraintCoincidence_106 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_65.endPoint()) +SketchConstraintCoincidence_107 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_108 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_57.result()) +SketchConstraintCoincidence_109 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result()) +SketchArc_14 = Sketch_7.addArc(-45, -60, -55, -60, -45, -70, False) +SketchArc_14.setName("SketchArc_15") +SketchArc_14.result().setName("SketchArc_15") +SketchArc_14.results()[1].setName("SketchArc_15_2") +SketchConstraintCoincidence_110 = Sketch_7.setCoincident(SketchArc_14.startPoint(), SketchLine_58.startPoint()) +SketchConstraintCoincidence_111 = Sketch_7.setCoincident(SketchArc_14.endPoint(), SketchLine_56.endPoint()) +SketchConstraintTangent_21 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_56.result()) +SketchConstraintTangent_22 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_58.result()) +SketchConstraintCoincidence_112 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_56.startPoint()) +SketchConstraintCoincidence_113 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_58.endPoint()) +SketchConstraintCoincidence_114 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_65.result()) +SketchConstraintCoincidence_115 = Sketch_7.setCoincident(SketchLine_58.startPoint(), SketchLine_59.result()) +SketchConstraintRadius_11 = Sketch_7.setRadius(SketchArc_13.results()[1], 10) +SketchConstraintRadius_12 = Sketch_7.setRadius(SketchArc_14.results()[1], 10) +SketchCircle_4 = Sketch_7.addCircle(44, -59, 5) +SketchCircle_5 = Sketch_7.addCircle(-44, -59, 5) +SketchConstraintRadius_13 = Sketch_7.setRadius(SketchCircle_4.results()[1], 5) +SketchConstraintRadius_14 = Sketch_7.setRadius(SketchCircle_5.results()[1], 5) +SketchConstraintDistance_27 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_56.result(), 11, False) +SketchConstraintDistance_28 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_54.result(), 11, False) +SketchConstraintDistance_29 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_56.result(), 11, False) +SketchConstraintDistance_30 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_58.result(), 11, False) +SketchCircle_6 = Sketch_7.addCircle(44, -20.23760430703402, 5) +SketchConstraintRadius_15 = Sketch_7.setRadius(SketchCircle_6.results()[1], 5) +SketchCircle_7 = Sketch_7.addCircle(-44, -20.23760430703402, 5) +SketchConstraintRadius_16 = Sketch_7.setRadius(SketchCircle_7.results()[1], 5) +SketchConstraintDistance_31 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_54.result(), 11, False) +SketchLine_66 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10]")) +SketchLine_66.setName("SketchLine_69") +SketchLine_66.result().setName("SketchLine_69") +SketchConstraintDistance_32 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_66.result(), 11, False) +SketchConstraintDistance_33 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_58.result(), 11, False) +SketchConstraintDistance_34 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_66.result(), 11, False) +SketchConstraintLength_2 = Sketch_7.setLength(SketchLine_62.result(), 120) +SketchConstraintLength_3 = Sketch_7.setLength(SketchLine_61.result(), 70) +SketchConstraintDistanceHorizontal_1 = Sketch_7.setHorizontalDistance(SketchPoint_7.coordinates(), SketchLine_62.endPoint(), 5) +model.do() +ExtrusionCut_1_objects_1 = [model.selection("WIRE", "Sketch_7/Face-SketchLine_66r-SketchArc_14_2r-SketchLine_67f-SketchArc_15_2r-SketchLine_68f-SketchLine_60f-SketchLine_61f-SketchLine_62f-SketchLine_63f-SketchLine_64f_wire"), model.selection("FACE", "Sketch_7/Face-SketchCircle_4_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_5_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_7_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_6_2f")] +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_1_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "Extrusion_8_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11")) +SketchLine_67 = Sketch_8.addLine(55, -34.06366588218793, 55, 66.69872981077805) +SketchLine_67.setName("SketchLine_79") +SketchLine_67.result().setName("SketchLine_79") +SketchPoint_10 = Sketch_8.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_66)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)]")) +SketchLine_68 = Sketch_8.addLine(55, -34.06366588218793, 55, 76.69872981077803) +SketchLine_68.setName("SketchLine_70") +SketchLine_68.result().setName("SketchLine_70") +SketchLine_68.setAuxiliary(True) +SketchConstraintCoincidence_116 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchPoint_10.result()) +SketchPoint_11 = Sketch_8.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_66)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]")) +SketchConstraintCoincidence_117 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchPoint_11.result()) +SketchLine_69 = Sketch_8.addLine(45, 76.69872981077805, -45, 76.69872981077805) +SketchLine_69.setName("SketchLine_80") +SketchLine_69.result().setName("SketchLine_80") +SketchLine_70 = Sketch_8.addLine(55, 76.69872981077803, -55, 76.69872981077803) +SketchLine_70.setName("SketchLine_71") +SketchLine_70.result().setName("SketchLine_71") +SketchLine_70.setAuxiliary(True) +SketchConstraintCoincidence_118 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint()) +SketchPoint_12 = Sketch_8.addPoint(model.selection("VERTEX", "[(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]")) +SketchConstraintCoincidence_119 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchPoint_12.result()) +SketchLine_71 = Sketch_8.addLine(-55, 66.69872976783566, -55, -34.06366588218793) +SketchLine_71.setName("SketchLine_81") +SketchLine_71.result().setName("SketchLine_81") +SketchLine_72 = Sketch_8.addLine(-55, 76.69872981077803, -55, -34.06366588218793) +SketchLine_72.setName("SketchLine_72") +SketchLine_72.result().setName("SketchLine_72") +SketchLine_72.setAuxiliary(True) +SketchConstraintCoincidence_120 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_72.startPoint()) +SketchPoint_13 = Sketch_8.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2][(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11]")) +SketchConstraintCoincidence_121 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchPoint_13.result()) +SketchLine_73 = Sketch_8.addLine(-55, -34.06366588218793, -83.25521566485324, -34.06366588218793) +SketchLine_73.setName("SketchLine_73") +SketchLine_73.result().setName("SketchLine_73") +SketchConstraintCoincidence_122 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_73.startPoint()) +SketchLine_74 = Sketch_8.addLine(-83.25521566485324, -34.06366588218793, -83.25521566485298, 92.00148393088952) +SketchLine_74.setName("SketchLine_74") +SketchLine_74.result().setName("SketchLine_74") +SketchConstraintCoincidence_123 = Sketch_8.setCoincident(SketchLine_73.endPoint(), SketchLine_74.startPoint()) +SketchLine_75 = Sketch_8.addLine(-83.25521566485298, 92.00148393088952, 87.50975635635101, 92.00148393088952) +SketchLine_75.setName("SketchLine_75") +SketchLine_75.result().setName("SketchLine_75") +SketchConstraintCoincidence_124 = Sketch_8.setCoincident(SketchLine_74.endPoint(), SketchLine_75.startPoint()) +SketchLine_76 = Sketch_8.addLine(87.50975635635101, 92.00148393088952, 87.50975635635101, -34.06366588218793) +SketchLine_76.setName("SketchLine_76") +SketchLine_76.result().setName("SketchLine_76") +SketchConstraintCoincidence_125 = Sketch_8.setCoincident(SketchLine_75.endPoint(), SketchLine_76.startPoint()) +SketchLine_77 = Sketch_8.addLine(87.50975635635101, -34.06366588218793, 55, -34.06366588218793) +SketchLine_77.setName("SketchLine_77") +SketchLine_77.result().setName("SketchLine_77") +SketchConstraintCoincidence_126 = Sketch_8.setCoincident(SketchLine_76.endPoint(), SketchLine_77.startPoint()) +SketchConstraintCoincidence_127 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_77.endPoint()) +SketchConstraintCoincidence_128 = Sketch_8.setCoincident(SketchPoint_10.coordinates(), SketchLine_77.endPoint()) +SketchConstraintHorizontal_14 = Sketch_8.setHorizontal(SketchLine_77.result()) +SketchConstraintHorizontal_15 = Sketch_8.setHorizontal(SketchLine_73.result()) +SketchConstraintHorizontal_16 = Sketch_8.setHorizontal(SketchLine_75.result()) +SketchConstraintVertical_17 = Sketch_8.setVertical(SketchLine_74.result()) +SketchConstraintVertical_18 = Sketch_8.setVertical(SketchLine_76.result()) +SketchArc_15 = Sketch_8.addArc(45, 66.69872981077805, 55, 66.69872981077805, 45, 76.69872981077805, False) +SketchArc_15.setName("SketchArc_16") +SketchArc_15.result().setName("SketchArc_16") +SketchArc_15.results()[1].setName("SketchArc_16_2") +SketchConstraintCoincidence_129 = Sketch_8.setCoincident(SketchArc_15.startPoint(), SketchLine_67.endPoint()) +SketchLine_78 = Sketch_8.addLine(45, 76.69872981077805, -55, 76.69872981077803) +SketchLine_78.setName("SketchLine_78") +SketchLine_78.result().setName("SketchLine_78") +SketchLine_78.setAuxiliary(True) +SketchConstraintCoincidence_130 = Sketch_8.setCoincident(SketchArc_15.endPoint(), SketchLine_78.startPoint()) +SketchConstraintTangent_23 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_78.result()) +SketchConstraintTangent_24 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_67.result()) +SketchConstraintCoincidence_131 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_78.endPoint()) +SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_67.startPoint()) +SketchConstraintCoincidence_133 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_70.result()) +SketchConstraintCoincidence_134 = Sketch_8.setCoincident(SketchLine_67.endPoint(), SketchLine_68.result()) +SketchArc_16 = Sketch_8.addArc(-45, 66.69872976783566, -45, 76.69872981077805, -55, 66.69872976783566, False) +SketchArc_16.setName("SketchArc_17") +SketchArc_16.result().setName("SketchArc_17") +SketchArc_16.results()[1].setName("SketchArc_17_2") +SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchArc_16.startPoint(), SketchLine_69.endPoint()) +SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_16.endPoint(), SketchLine_71.startPoint()) +SketchConstraintTangent_25 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_69.result()) +SketchConstraintTangent_26 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_71.result()) +SketchConstraintCoincidence_137 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_69.startPoint()) +SketchConstraintCoincidence_138 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_71.endPoint()) +SketchConstraintCoincidence_139 = Sketch_8.setCoincident(SketchLine_69.endPoint(), SketchLine_78.result()) +SketchConstraintCoincidence_140 = Sketch_8.setCoincident(SketchLine_71.startPoint(), SketchLine_72.result()) +SketchConstraintRadius_17 = Sketch_8.setRadius(SketchArc_15.results()[1], 10) +SketchConstraintRadius_18 = Sketch_8.setRadius(SketchArc_16.results()[1], 10) +SketchCircle_8 = Sketch_8.addCircle(-44, 51.69872981077802, 5) +SketchConstraintRadius_19 = Sketch_8.setRadius(SketchCircle_8.results()[1], 5) +SketchConstraintDistance_35 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_69.result(), 25, False) +SketchConstraintDistance_36 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_71.result(), 11, False) +SketchCircle_9 = Sketch_8.addCircle(-44, 16.69872981077805, 5) +SketchConstraintRadius_20 = Sketch_8.setRadius(SketchCircle_9.results()[1], 5) +SketchConstraintDistance_37 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_71.result(), 11, False) +SketchConstraintDistance_38 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_69.result(), 60, False) +SketchArc_17 = Sketch_8.addArc(44, 16.69872981077805, 49, 16.69872981077805, 39, 16.69872981077805, True) +SketchArc_17.setName("SketchArc_19") +SketchArc_17.result().setName("SketchArc_19") +SketchArc_17.results()[1].setName("SketchArc_19_2") +SketchConstraintRadius_21 = Sketch_8.setRadius(SketchArc_17.results()[1], 5) +SketchConstraintDistance_39 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_69.result(), 60, False) +SketchArc_18 = Sketch_8.addArc(44, 51.69872981077805, 49, 51.69872981077805, 39, 51.69872981077805, False) +SketchArc_18.setName("SketchArc_18") +SketchArc_18.result().setName("SketchArc_18") +SketchArc_18.results()[1].setName("SketchArc_18_2") +SketchLine_79 = Sketch_8.addLine(49, 16.69872981077805, 49, 51.69872981077805) +SketchLine_79.setName("SketchLine_82") +SketchLine_79.result().setName("SketchLine_82") +SketchConstraintCoincidence_141 = Sketch_8.setCoincident(SketchArc_18.startPoint(), SketchLine_79.endPoint()) +SketchConstraintCoincidence_142 = Sketch_8.setCoincident(SketchLine_79.startPoint(), SketchArc_17.startPoint()) +SketchLine_80 = Sketch_8.addLine(39, 16.69872981077805, 39, 51.69872981077805) +SketchLine_80.setName("SketchLine_83") +SketchLine_80.result().setName("SketchLine_83") +SketchConstraintCoincidence_143 = Sketch_8.setCoincident(SketchArc_17.endPoint(), SketchLine_80.startPoint()) +SketchConstraintCoincidence_144 = Sketch_8.setCoincident(SketchArc_18.endPoint(), SketchLine_80.endPoint()) +SketchConstraintDistance_40 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_67.result(), 11, False) +SketchConstraintDistance_41 = Sketch_8.setDistance(SketchLine_69.result(), SketchArc_18.center(), 25, False) +SketchConstraintDistance_42 = Sketch_8.setDistance(SketchArc_18.center(), SketchLine_67.result(), 11, False) +SketchConstraintRadius_22 = Sketch_8.setRadius(SketchArc_18.results()[1], 5) +SketchConstraintLength_4 = Sketch_8.setLength(SketchLine_80.result(), 35.000000440932) +SketchConstraintLength_5 = Sketch_8.setLength(SketchLine_79.result(), 35) +SketchConstraintLength_6 = Sketch_8.setLength(SketchLine_75.result(), 170.764972021204) +SketchConstraintLength_7 = Sketch_8.setLength(SketchLine_77.result(), 32.509756356351) +SketchConstraintLength_8 = Sketch_8.setLength(SketchLine_76.result(), 126.065149813077) +SketchConstraintDistance_43 = Sketch_8.setDistance(SketchArc_18.endPoint(), SketchLine_69.result(), 24.999999559068, False) +SketchConstraintDistance_44 = Sketch_8.setDistance(SketchArc_18.startPoint(), SketchLine_69.result(), 25, False) +model.do() +ExtrusionCut_2_objects_1 = [model.selection("FACE", "Sketch_8/Face-SketchLine_77r-SketchLine_76r-SketchLine_75r-SketchLine_74r-SketchLine_73r-SketchLine_81r-SketchArc_17_2r-SketchLine_80r-SketchArc_16_2r-SketchLine_79r"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_8_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_9_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchArc_19_2f-SketchLine_82f-SketchArc_18_2f-SketchLine_83r_wire")] +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_2_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Fuse_3 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "ExtrusionCut_2_1")]) +model.do() + +# Test reexecution after parameter change +Parameter_H.setValue(8) +model.do() +model.testResultsVolumes(Fuse_3, [169754.898488585400627925992012024]) +Parameter_H.setValue(6) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Fuse_3, 1) +model.testNbSubShapes(Fuse_3, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/bearing_puller.py b/test.compatibility/bearing_puller.py new file mode 100644 index 000000000..692c6a33b --- /dev/null +++ b/test.compatibility/bearing_puller.py @@ -0,0 +1,615 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +model.addParameter(partSet, "Gap", "10") +model.addParameter(partSet, "Rod", "12") +model.addParameter(partSet, "Thickness", "25") +Part_1 = model.addPart(partSet) +Part_1.setName("Body") +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "Radius", "50", "Radius of the body") +model.addParameter(Part_1_doc, "Width", "25", "Width of body arms") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(50, 14.61148285474187, 50, 0) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 14.61148285474187) +SketchLine_2 = Sketch_1.addLine(50, 0, 6, 0) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchLine_3 = Sketch_1.addLine(7, 25, 16.13599978860571, 25) +SketchLine_3.setName("SketchLine_4") +SketchLine_3.result().setName("SketchLine_4") +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_2.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result()) +SketchConstraintVertical_1.setName("SketchConstraintVertical_2") +SketchArc_1 = Sketch_1.addArc(16.1359986285606, -59.99999999999999, 16.13599978860571, 25, 46.80399475966571, 19.27467447616896, True) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_2.setName("SketchConstraintCoincidence_4") +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_3.result()) +SketchArc_2 = Sketch_1.addArc(45, 14.61145639129118, 46.80399475966571, 19.27467447616896, 50, 14.61148285474187, True) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchArc_1.endPoint()) +SketchConstraintCoincidence_3.setName("SketchConstraintCoincidence_6") +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_4.setName("SketchConstraintCoincidence_7") +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchArc_2.results()[1]) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_1.result()) +SketchPoint_1 = Sketch_1.addPoint(50, 17.96300027009704) +SketchPoint_1.setAuxiliary(True) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_1.result()) +SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_8") +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchArc_1.results()[1]) +SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_9") +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 5) +SketchPoint_2 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_1.results()[1], 85) +SketchConstraintRadius_2.setName("SketchConstraintRadius_4") +SketchLine_4 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_4.setName("SketchLine_27") +SketchLine_4.result().setName("SketchLine_27") +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_4.result(), SketchLine_2.startPoint(), "Radius") +SketchConstraintDistance_1.setName("SketchConstraintDistance_13") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_2.result(), "Thickness") +SketchConstraintDistance_2.setName("SketchConstraintDistance_14") +SketchLine_5 = Sketch_1.addLine(6, 0, 6, 24) +SketchLine_5.setName("SketchLine_28") +SketchLine_5.result().setName("SketchLine_28") +SketchLine_6 = Sketch_1.addLine(6, 24, 7, 25) +SketchLine_6.setName("SketchLine_29") +SketchLine_6.result().setName("SketchLine_29") +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_32") +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintVertical_2.setName("SketchConstraintVertical_3") +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_5.startPoint(), SketchLine_4.result(), "Rod/2") +SketchConstraintDistance_3.setName("SketchConstraintDistance_15") +SketchConstraintAngle_1 = Sketch_1.setAngleComplementary(SketchLine_6.result(), SketchLine_5.result(), 45.00000000000006) +SketchConstraintAngle_1.setName("SketchConstraintAngle_3") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_4.result(), SketchLine_6.endPoint(), "Rod/2 + 1") +SketchConstraintDistance_4.setName("SketchConstraintDistance_16") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_5.startPoint()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_3.startPoint()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_34") +SketchLine_7 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_7.setName("SketchLine_30") +SketchLine_7.result().setName("SketchLine_30") +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_7.result()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_35") +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchArc_2_2f-SketchArc_1_2f-SketchLine_4r-SketchLine_29r-SketchLine_28r-SketchLine_2r-SketchLine_1r")], model.selection("EDGE", "PartSet/OZ"), 360, 0) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_2")) +SketchLine_8 = Sketch_2.addLine(0, 0, 25, 43.30127018922193) +SketchLine_8.setName("SketchLine_5") +SketchLine_8.result().setName("SketchLine_5") +SketchLine_8.setAuxiliary(True) +SketchPoint_3 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_11 = Sketch_2.setCoincident(SketchLine_8.startPoint(), SketchPoint_3.result()) +SketchCircle_1 = Sketch_2.addCircle(model.selection("EDGE", "[Revolution_1_1/Generated_Face&Sketch_1/SketchLine_2][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_1]")) +SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_8.endPoint(), SketchCircle_1.results()[1]) +SketchLine_9 = Sketch_2.addLine(39.43375672974064, -43.30127018922192, 15.87711932209923, -2.499977343709401) +SketchLine_9.setName("SketchLine_10") +SketchLine_9.result().setName("SketchLine_10") +SketchLine_10 = Sketch_2.addLine(0, 0, 25, -43.30127018922193) +SketchLine_10.setName("SketchLine_6") +SketchLine_10.result().setName("SketchLine_6") +SketchLine_10.setAuxiliary(True) +SketchConstraintCoincidence_13 = Sketch_2.setCoincident(SketchLine_10.startPoint(), SketchPoint_3.result()) +SketchCircle_2 = Sketch_2.addCircle(model.selection("EDGE", "[Revolution_1_1/Generated_Face&Sketch_1/SketchLine_2][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_1]")) +SketchConstraintCoincidence_14 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchCircle_2.results()[1]) +SketchLine_11 = Sketch_2.addLine(15.87713238415337, 2.499999967850816, 39.43375672974065, 43.30127018922192) +SketchLine_11.setName("SketchLine_11") +SketchLine_11.result().setName("SketchLine_11") +SketchLine_12 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_12.setName("SketchLine_7") +SketchLine_12.result().setName("SketchLine_7") +SketchConstraintAngle_2 = Sketch_2.setAngleBackward(SketchLine_12.result(), SketchLine_10.result(), 59.99999999999994) +SketchConstraintAngle_2.setName("SketchConstraintAngle_1") +SketchConstraintAngle_3 = Sketch_2.setAngle(SketchLine_12.result(), SketchLine_8.result(), 59.99999999999999) +SketchConstraintAngle_3.setName("SketchConstraintAngle_2") +SketchLine_13 = Sketch_2.addLine(14.43375672974065, -4.667176185980158e-016, 39.43375672974065, 43.30127018922192) +SketchLine_13.setName("SketchLine_9") +SketchLine_13.result().setName("SketchLine_9") +SketchLine_13.setAuxiliary(True) +SketchLine_14 = Sketch_2.addLine(39.43375672974064, -43.30127018922192, 14.43375672974065, -4.667176185980158e-016) +SketchLine_14.setName("SketchLine_8") +SketchLine_14.result().setName("SketchLine_8") +SketchLine_14.setAuxiliary(True) +SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_16") +SketchConstraintParallel_1 = Sketch_2.setParallel(SketchLine_14.result(), SketchLine_10.result()) +SketchConstraintParallel_2 = Sketch_2.setParallel(SketchLine_13.result(), SketchLine_8.result()) +SketchConstraintEqual_1 = Sketch_2.setEqual(SketchLine_8.result(), SketchLine_14.result()) +SketchConstraintEqual_2 = Sketch_2.setEqual(SketchLine_10.result(), SketchLine_13.result()) +SketchConstraintDistance_5 = Sketch_2.setDistance(SketchLine_13.startPoint(), SketchLine_10.result(), "Width/2") +SketchConstraintDistance_5.setName("SketchConstraintDistance_4") +SketchArc_3 = Sketch_2.addArc(20.20725942163691, 2.933703812344835e-015, 15.87713238415337, 2.499999967850816, 15.87711932209923, -2.499977343709401, False) +SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchArc_3.startPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_15") +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchArc_3.endPoint(), SketchLine_9.endPoint()) +SketchConstraintTangent_4 = Sketch_2.setTangent(SketchArc_3.results()[1], SketchLine_9.result()) +SketchConstraintTangent_5 = Sketch_2.setTangent(SketchArc_3.results()[1], SketchLine_11.result()) +SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_11.endPoint()) +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchLine_9.endPoint(), SketchLine_14.result()) +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchLine_11.startPoint(), SketchLine_13.result()) +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchArc_3.results()[1], 5) +SketchConstraintRadius_3.setName("SketchConstraintRadius_2") +SketchConstraintDistance_6 = Sketch_2.setDistance(SketchLine_13.startPoint(), SketchLine_8.result(), "Width/2") +SketchConstraintDistance_6.setName("SketchConstraintDistance_5") +SketchArc_4 = Sketch_2.addArc(14.43375672974064, -1.454136002932938e-015, 39.43375672974064, -43.30127018922192, 39.43375672974065, 43.30127018922192, False) +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_9.startPoint(), SketchArc_4.startPoint()) +SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchArc_4.startPoint()) +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_11.endPoint(), SketchArc_4.endPoint()) +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchArc_4.endPoint()) +SketchConstraintEqual_3 = Sketch_2.setEqual(SketchArc_4.results()[1], SketchCircle_1.results()[1]) +SketchMultiRotation_1_objects = [SketchLine_11.result(), SketchArc_3.results()[1], SketchLine_9.result(), SketchArc_4.results()[1]] +SketchMultiRotation_1 = Sketch_2.addRotation(SketchMultiRotation_1_objects, SketchCircle_2.center(), 120, 3) +[SketchLine_15, SketchLine_16, SketchArc_5, SketchArc_6, SketchLine_17, SketchLine_18, SketchArc_7, SketchArc_8] = SketchMultiRotation_1.rotated() +SketchArc_7.setName("SketchArc_6") +SketchArc_7.result().setName("SketchArc_6") +SketchArc_7.results()[1].setName("SketchArc_6_2") +SketchLine_18.setName("SketchLine_15") +SketchLine_18.result().setName("SketchLine_15") +SketchLine_17.setName("SketchLine_13") +SketchLine_17.result().setName("SketchLine_13") +SketchArc_6.setName("SketchArc_7") +SketchArc_6.result().setName("SketchArc_7") +SketchArc_6.results()[1].setName("SketchArc_7_2") +SketchLine_16.setName("SketchLine_14") +SketchLine_16.result().setName("SketchLine_14") +SketchLine_15.setName("SketchLine_12") +SketchLine_15.result().setName("SketchLine_12") +SketchLine_19 = Sketch_2.addLine(7.828185376255509, -23.55881480274223, 31.38482278389692, -64.36010764825475) +SketchLine_19.setName("SketchLine_16") +SketchLine_19.result().setName("SketchLine_16") +SketchLine_20 = Sketch_2.addLine(31.38482278389692, -64.36010764825475, 40.0450768217413, -59.36010764825475) +SketchLine_20.setName("SketchLine_17") +SketchLine_20.result().setName("SketchLine_17") +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_28") +SketchLine_21 = Sketch_2.addLine(40.0450768217413, -59.36010764825475, 16.48843941409989, -18.55881480274223) +SketchLine_21.setName("SketchLine_18") +SketchLine_21.result().setName("SketchLine_18") +SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_20.endPoint(), SketchLine_21.startPoint()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_29") +SketchConstraintParallel_3 = Sketch_2.setParallel(SketchLine_10.result(), SketchLine_19.result()) +SketchConstraintParallel_4 = Sketch_2.setParallel(SketchLine_10.result(), SketchLine_21.result()) +SketchConstraintEqual_4 = Sketch_2.setEqual(SketchLine_9.result(), SketchLine_21.result()) +SketchConstraintEqual_5 = Sketch_2.setEqual(SketchLine_9.result(), SketchLine_19.result()) +SketchConstraintDistance_7 = Sketch_2.setDistance(SketchCircle_1.center(), SketchLine_19.result(), "Gap/2") +SketchConstraintDistance_7.setName("SketchConstraintDistance_6") +SketchConstraintDistance_8 = Sketch_2.setDistance(SketchCircle_1.center(), SketchLine_21.result(), "Gap/2") +SketchConstraintDistance_8.setName("SketchConstraintDistance_7") +SketchArc_9 = Sketch_2.addArc(10.5, -18.18653347947321, 7.828185376255509, -23.55881480274223, 16.48843941409989, -18.55881480274223, True) +SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchArc_9.center(), SketchLine_10.result()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_27") +SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchLine_19.startPoint(), SketchArc_9.startPoint()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_30") +SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchArc_9.endPoint(), SketchLine_21.endPoint()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_31") +SketchConstraintRadius_4 = Sketch_2.setRadius(SketchArc_9.results()[1], 6) +SketchConstraintRadius_4.setName("SketchConstraintRadius_3") +SketchMultiRotation_2_objects = [SketchLine_19.result(), SketchLine_20.result(), SketchLine_21.result(), SketchArc_9.results()[1]] +SketchMultiRotation_2 = Sketch_2.addRotation(SketchMultiRotation_2_objects, SketchCircle_1.center(), 120, 3) +[SketchLine_22, SketchLine_23, SketchLine_24, SketchLine_25, SketchLine_26, SketchLine_27, SketchArc_10, SketchArc_11] = SketchMultiRotation_2.rotated() +SketchLine_27.setName("SketchLine_24") +SketchLine_27.result().setName("SketchLine_24") +SketchLine_26.setName("SketchLine_21") +SketchLine_26.result().setName("SketchLine_21") +SketchLine_25.setName("SketchLine_23") +SketchLine_25.result().setName("SketchLine_23") +SketchLine_24.setName("SketchLine_20") +SketchLine_24.result().setName("SketchLine_20") +SketchLine_23.setName("SketchLine_22") +SketchLine_23.result().setName("SketchLine_22") +SketchLine_22.setName("SketchLine_19") +SketchLine_22.result().setName("SketchLine_19") +SketchConstraintDistance_9 = Sketch_2.setDistance(SketchArc_9.center(), SketchPoint_3.coordinates(), 21) +SketchConstraintDistance_9.setName("SketchConstraintDistance_8") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchArc_4_2f-SketchLine_11r-SketchArc_3_2f-SketchLine_10r_wire"), model.selection("WIRE", "Sketch_2/Face-SketchArc_7_2f-SketchLine_15r-SketchArc_8_2f-SketchLine_14r_wire"), model.selection("FACE", "Sketch_2/Face-SketchArc_5_2f-SketchLine_13r-SketchArc_6_2f-SketchLine_12r"), model.selection("FACE", "Sketch_2/Face-SketchLine_19f-SketchLine_20f-SketchLine_21f-SketchArc_10_2f"), model.selection("FACE", "Sketch_2/Face-SketchLine_16f-SketchLine_17f-SketchLine_18f-SketchArc_9_2f"), model.selection("WIRE", "Sketch_2/Face-SketchLine_22f-SketchLine_23f-SketchLine_24f-SketchArc_11_2f_wire")], model.selection(), model.selection(), 10, model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_4"), 10) +Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Revolution_1_1")], [model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_1_4"), model.selection("SOLID", "Extrusion_1_5")]) +Cut_2 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "Extrusion_1_2"), model.selection("SOLID", "Extrusion_1_3"), model.selection("SOLID", "Extrusion_1_6")]) +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "Cut_2_1/Modified_Face&Sketch_2/SketchLine_21"), model.selection("FACE", "Cut_2_1/Modified_Face&Sketch_2/SketchLine_19")) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchCircle_3 = Sketch_3.addCircle(25, -10, 4) +SketchCircle_4 = Sketch_3.addCircle(40, -10, 4) +SketchConstraintRadius_5 = Sketch_3.setRadius(SketchCircle_4.results()[1], 4) +SketchConstraintEqual_6 = Sketch_3.setEqual(SketchCircle_3.results()[1], SketchCircle_4.results()[1]) +SketchLine_28 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_28.setName("SketchLine_25") +SketchLine_28.result().setName("SketchLine_25") +SketchConstraintDistance_10 = Sketch_3.setDistance(SketchCircle_3.center(), SketchLine_28.result(), 25) +SketchConstraintDistance_10.setName("SketchConstraintDistance_9") +SketchConstraintDistance_11 = Sketch_3.setDistance(SketchCircle_4.center(), SketchLine_28.result(), 40) +SketchConstraintDistance_11.setName("SketchConstraintDistance_10") +SketchProjection_1 = Sketch_3.addProjection(model.selection("EDGE", "Cut_2_1/Generated_Edge&Sketch_2/SketchLine_21&Sketch_1/SketchLine_2"), False) +SketchLine_29 = SketchProjection_1.createdFeature() +SketchLine_29.setName("SketchLine_26") +SketchLine_29.result().setName("SketchLine_26") +SketchConstraintDistance_12 = Sketch_3.setDistance(SketchCircle_4.center(), SketchLine_29.result(), 10) +SketchConstraintDistance_12.setName("SketchConstraintDistance_11") +SketchConstraintDistance_13 = Sketch_3.setDistance(SketchCircle_3.center(), SketchLine_29.result(), 10) +SketchConstraintDistance_13.setName("SketchConstraintDistance_12") +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_3_2r"), model.selection("WIRE", "Sketch_3/Face-SketchCircle_4_2f_wire")], model.selection(), model.selection("FACE", "Cut_1_1/Modified_Face&Sketch_2/SketchLine_11"), 5, model.selection("FACE", "Cut_1_1/Modified_Face&Sketch_2/SketchLine_13"), 5) +Cut_3 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_2_1")], [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "Extrusion_2_2")]) +Recover_1 = model.addRecover(Part_1_doc, Cut_3, [Extrusion_2.results()[1], Extrusion_2.result()]) +Rotation_1 = model.addRotation(Part_1_doc, [model.selection("SOLID", "Recover_1_1"), model.selection("SOLID", "Recover_1_2")], model.selection("EDGE", "PartSet/OZ"), 120) +Cut_4 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_3_1")], [model.selection("SOLID", "Rotation_1_1"), model.selection("SOLID", "Rotation_1_2")]) +Recover_2 = model.addRecover(Part_1_doc, Cut_4, [Rotation_1.results()[1], Rotation_1.result()]) +Rotation_2 = model.addRotation(Part_1_doc, [model.selection("SOLID", "Recover_2_1"), model.selection("SOLID", "Recover_2_2")], model.selection("EDGE", "PartSet/OZ"), 120) +Cut_5 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_4_1")], [model.selection("SOLID", "Rotation_2_2"), model.selection("SOLID", "Rotation_2_1")]) +model.do() +Part_2 = model.addPart(partSet) +Part_2.setName("Arm 1") +Part_2_doc = Part_2.document() +model.addParameter(Part_2_doc, "a", "7.5") +model.addParameter(Part_2_doc, "b", "12.5") +model.addParameter(Part_2_doc, "c", "(a-b)/4") +Sketch_4 = model.addSketch(Part_2_doc, model.defaultPlane("XOY")) +SketchLine_30 = Sketch_4.addLine(-7.563632736215193e-032, -5.762896622594646, 0, 3.75) +SketchLine_30.setAuxiliary(True) +SketchLine_31 = Sketch_4.addLine(0, 3.75, 4.894344934278314, 2.394344934278312) +SketchLine_31.setAuxiliary(True) +SketchConstraintCoincidence_31 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchLine_32 = Sketch_4.addLine(4.894344934278314, 2.394344934278312, -7.563632736215193e-032, -5.762896622594646) +SketchLine_32.setAuxiliary(True) +SketchConstraintCoincidence_32 = Sketch_4.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_33 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_32.endPoint()) +SketchConstraintVertical_3 = Sketch_4.setVertical(SketchLine_30.result()) +SketchLine_33 = Sketch_4.addLine(0, 3.75, 6.25, 3.75) +SketchLine_33.setAuxiliary(True) +SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_33.startPoint()) +SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_33.startPoint()) +SketchLine_34 = Sketch_4.addLine(6.25, 3.75, 6.25, 0) +SketchLine_34.setAuxiliary(True) +SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint()) +SketchLine_35 = Sketch_4.addLine(6.25, 0, 0, 0) +SketchLine_35.setAuxiliary(True) +SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_34.endPoint(), SketchLine_35.startPoint()) +SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_30.result()) +SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_35.result()) +SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_33.result()) +SketchConstraintVertical_4 = Sketch_4.setVertical(SketchLine_34.result()) +SketchLine_36 = Sketch_4.addLine(-7.563632736215193e-032, -5.762896622594646, 2.447172467139156, 3.072172467139157) +SketchLine_36.setAuxiliary(True) +SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_36.startPoint()) +SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_32.endPoint(), SketchLine_36.startPoint()) +SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_36.endPoint(), SketchLine_31.result()) +SketchConstraintPerpendicular_1 = Sketch_4.setPerpendicular(SketchLine_36.result(), SketchLine_31.result()) +SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchPoint_4.coordinates()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_20") +SketchConstraintLength_1 = Sketch_4.setLength(SketchLine_33.result(), "b/2") +SketchConstraintLength_2 = Sketch_4.setLength(SketchLine_34.result(), "a/2") +SketchCircle_5 = Sketch_4.addCircle(1.25, -1.25, 1.25) +SketchCircle_5.setAuxiliary(True) +SketchConstraintRadius_6 = Sketch_4.setRadius(SketchCircle_5.results()[1], "(b-a)/4") +SketchConstraintTangent_6 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_35.result()) +SketchConstraintTangent_7 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_30.result()) +SketchConstraintTangent_8 = Sketch_4.setTangent(SketchCircle_5.results()[1], SketchLine_32.result()) +SketchLine_37 = Sketch_4.addLine(4.894344934278314, 2.394344934278312, 6.25, 0) +SketchLine_37.setAuxiliary(True) +SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_31.endPoint(), SketchLine_37.startPoint()) +SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_37.startPoint()) +SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchLine_34.endPoint(), SketchLine_37.endPoint()) +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_35.startPoint(), SketchLine_37.endPoint()) +SketchLine_38 = Sketch_4.addLine(0, 3.75, 6.25, 0) +SketchLine_38.setName("SketchLine_10") +SketchLine_38.result().setName("SketchLine_10") +SketchLine_38.setAuxiliary(True) +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_38.startPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_23") +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_38.startPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_24") +SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_33.startPoint(), SketchLine_38.startPoint()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_25") +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_34.endPoint(), SketchLine_38.endPoint()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_26") +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_35.startPoint(), SketchLine_38.endPoint()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_27") +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_37.endPoint(), SketchLine_38.endPoint()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_28") +SketchConstraintPerpendicular_2 = Sketch_4.setPerpendicular(SketchLine_32.result(), SketchLine_38.result()) +SketchConstraintPerpendicular_2.setName("SketchConstraintPerpendicular_3") +SketchLine_39 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_39.setName("SketchLine_11") +SketchLine_39.result().setName("SketchLine_11") +SketchLine_40 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_40.setName("SketchLine_12") +SketchLine_40.result().setName("SketchLine_12") +SketchArc_12 = Sketch_4.addArc(-7.563632736215193e-032, -5.762896622594646, 0, 3.75, 4.894344934278314, 2.394344934278312, True) +SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchArc_12.startPoint()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_30") +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchArc_12.startPoint()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_31") +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchLine_33.startPoint(), SketchArc_12.startPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_32") +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchLine_38.startPoint(), SketchArc_12.startPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchArc_12.endPoint(), SketchLine_31.endPoint()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_34") +SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchArc_12.center(), SketchLine_32.endPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_35") +SketchArc_13 = Sketch_4.addArc(3.457737973711348, 3.788069295318559e-014, 6.25, 0, 4.894344934278314, 2.394344934278312, False) +SketchArc_13.setName("SketchArc_4") +SketchArc_13.result().setName("SketchArc_4") +SketchArc_13.results()[1].setName("SketchArc_4_2") +SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchArc_13.startPoint(), SketchLine_35.startPoint()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_13.endPoint(), SketchArc_12.endPoint()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_49") +SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchArc_13.center(), SketchLine_32.result()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_21") +SketchConstraintMirror_1 = Sketch_4.addMirror(SketchLine_40.result(), [SketchArc_13.results()[1], SketchArc_12.results()[1]]) +[SketchArc_14, SketchArc_15] = SketchConstraintMirror_1.mirrored() +SketchArc_15.setName("SketchArc_6") +SketchArc_15.result().setName("SketchArc_6") +SketchArc_15.results()[1].setName("SketchArc_6_2") +SketchArc_14.setName("SketchArc_5") +SketchArc_14.result().setName("SketchArc_5") +SketchArc_14.results()[1].setName("SketchArc_5_2") +SketchConstraintMirror_2_objects = [SketchArc_12.results()[1], SketchArc_13.results()[1], SketchArc_14.results()[1], SketchArc_15.results()[1]] +SketchConstraintMirror_2 = Sketch_4.addMirror(SketchLine_39.result(), SketchConstraintMirror_2_objects) +[SketchArc_16, SketchArc_17, SketchArc_18, SketchArc_19] = SketchConstraintMirror_2.mirrored() +SketchArc_19.setName("SketchArc_10") +SketchArc_19.result().setName("SketchArc_10") +SketchArc_19.results()[1].setName("SketchArc_10_2") +SketchArc_18.setName("SketchArc_9") +SketchArc_18.result().setName("SketchArc_9") +SketchArc_18.results()[1].setName("SketchArc_9_2") +SketchArc_17.setName("SketchArc_8") +SketchArc_17.result().setName("SketchArc_8") +SketchArc_17.results()[1].setName("SketchArc_8_2") +SketchArc_16.setName("SketchArc_7") +SketchArc_16.result().setName("SketchArc_7") +SketchArc_16.results()[1].setName("SketchArc_7_2") +model.do() +Sketch_5 = model.addSketch(Part_2_doc, model.defaultPlane("XOZ")) +SketchArc_20 = Sketch_5.addArc(75, 0, 21.9522369740045, 53.01825004597796, 20.93617039352901, -51.98174995402206, False) +SketchArc_20.setName("SketchArc_3") +SketchArc_20.result().setName("SketchArc_3") +SketchArc_20.results()[1].setName("SketchArc_3_2") +SketchArc_20.setAuxiliary(True) +SketchConstraintRadius_7 = Sketch_5.setRadius(SketchArc_20.results()[1], 75) +SketchLine_41 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_41.setName("SketchLine_13") +SketchLine_41.result().setName("SketchLine_13") +SketchConstraintCoincidence_73 = Sketch_5.setCoincident(SketchArc_20.center(), SketchLine_41.result()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_38") +SketchConstraintCoincidence_74 = Sketch_5.setCoincident(SketchLine_41.startPoint(), SketchArc_20.results()[1]) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_39") +SketchLine_42 = Sketch_5.addLine(16.9522369740045, -56.98174995402205, 16.9522369740045, -46.98174995402206) +SketchLine_42.setName("SketchLine_14") +SketchLine_42.result().setName("SketchLine_14") +SketchLine_43 = Sketch_5.addLine(16.9522369740045, -46.98174995402206, 36.95223697400451, -46.98174995402206) +SketchLine_43.setName("SketchLine_15") +SketchLine_43.result().setName("SketchLine_15") +SketchConstraintCoincidence_75 = Sketch_5.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_40") +SketchLine_44 = Sketch_5.addLine(36.95223697400451, -46.98174995402206, 31.17873428210827, -56.98174995402205) +SketchLine_44.setName("SketchLine_16") +SketchLine_44.result().setName("SketchLine_16") +SketchConstraintCoincidence_76 = Sketch_5.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_41") +SketchLine_45 = Sketch_5.addLine(31.17873428210827, -56.98174995402205, 16.9522369740045, -56.98174995402205) +SketchLine_45.setName("SketchLine_17") +SketchLine_45.result().setName("SketchLine_17") +SketchConstraintCoincidence_77 = Sketch_5.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_42") +SketchConstraintCoincidence_78 = Sketch_5.setCoincident(SketchLine_42.startPoint(), SketchLine_45.endPoint()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_43") +SketchConstraintHorizontal_5 = Sketch_5.setHorizontal(SketchLine_43.result()) +SketchConstraintHorizontal_6 = Sketch_5.setHorizontal(SketchLine_45.result()) +SketchConstraintVertical_5 = Sketch_5.setVertical(SketchLine_42.result()) +SketchConstraintAngle_4 = Sketch_5.setAngleComplementary(SketchLine_44.result(), SketchLine_45.result(), 60.00000000000006) +SketchConstraintDistance_14 = Sketch_5.setDistance(SketchLine_43.endPoint(), SketchLine_42.result(), 20) +SketchConstraintDistance_15 = Sketch_5.setDistance(SketchLine_42.startPoint(), SketchLine_43.result(), 10) +SketchLine_46 = Sketch_5.addLine(21.9522369740045, 53.01825004597796, 21.9522369740045, 0) +SketchLine_46.setName("SketchLine_18") +SketchLine_46.result().setName("SketchLine_18") +SketchLine_46.setAuxiliary(True) +SketchConstraintCoincidence_79 = Sketch_5.setCoincident(SketchArc_20.startPoint(), SketchLine_46.startPoint()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_44") +SketchConstraintCoincidence_80 = Sketch_5.setCoincident(SketchLine_46.endPoint(), SketchLine_41.result()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_45") +SketchConstraintVertical_6 = Sketch_5.setVertical(SketchLine_46.result()) +SketchConstraintDistance_16 = Sketch_5.setDistance(SketchLine_42.endPoint(), SketchLine_46.result(), 5) +SketchConstraintDistance_17 = Sketch_5.setDistance(SketchArc_20.startPoint(), SketchLine_43.result(), 100) +SketchCircle_6 = Sketch_5.addCircle(21.9522369740045, 53.01825004597796, 8) +SketchConstraintCoincidence_81 = Sketch_5.setCoincident(SketchArc_20.startPoint(), SketchCircle_6.center()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_82 = Sketch_5.setCoincident(SketchLine_46.startPoint(), SketchCircle_6.center()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_47") +SketchConstraintRadius_8 = Sketch_5.setRadius(SketchCircle_6.results()[1], 8) +SketchCircle_7 = Sketch_5.addCircle(21.9522369740045, 53.01825004597796, 4) +SketchConstraintCoincidence_83 = Sketch_5.setCoincident(SketchArc_20.startPoint(), SketchCircle_7.center()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_61") +SketchConstraintCoincidence_84 = Sketch_5.setCoincident(SketchLine_46.startPoint(), SketchCircle_7.center()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_62") +SketchConstraintCoincidence_85 = Sketch_5.setCoincident(SketchCircle_6.center(), SketchCircle_7.center()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_63") +SketchConstraintRadius_9 = Sketch_5.setRadius(SketchCircle_7.results()[1], 4) +SketchLine_47 = Sketch_5.addLine(21.9522369740045, 53.01825004597796, 39.68353296044558, 53.01825004597796) +SketchLine_47.setName("SketchLine_19") +SketchLine_47.result().setName("SketchLine_19") +SketchLine_47.setAuxiliary(True) +SketchConstraintCoincidence_86 = Sketch_5.setCoincident(SketchArc_20.startPoint(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_64") +SketchConstraintCoincidence_87 = Sketch_5.setCoincident(SketchLine_46.startPoint(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_65") +SketchConstraintCoincidence_88 = Sketch_5.setCoincident(SketchCircle_6.center(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_66") +SketchConstraintCoincidence_89 = Sketch_5.setCoincident(SketchCircle_7.center(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_67") +SketchConstraintHorizontal_7 = Sketch_5.setHorizontal(SketchLine_47.result()) +SketchConstraintDistance_18 = Sketch_5.setDistance(SketchArc_20.endPoint(), SketchLine_47.result(), 105) +SketchLine_48 = Sketch_5.addLine(75, 0, 20.93617039352901, -51.98174995402206) +SketchLine_48.setName("SketchLine_20") +SketchLine_48.result().setName("SketchLine_20") +SketchLine_48.setAuxiliary(True) +SketchConstraintCoincidence_90 = Sketch_5.setCoincident(SketchArc_20.center(), SketchLine_48.startPoint()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_68") +SketchConstraintCoincidence_91 = Sketch_5.setCoincident(SketchArc_20.endPoint(), SketchLine_48.endPoint()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_69") +SketchLine_49 = Sketch_5.addLine(21.9522369740045, 53.01825004597796, 0, 10) +SketchLine_49.setName("SketchLine_21") +SketchLine_49.result().setName("SketchLine_21") +SketchLine_49.setAuxiliary(True) +SketchConstraintCoincidence_92 = Sketch_5.setCoincident(SketchArc_20.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_70") +SketchConstraintCoincidence_93 = Sketch_5.setCoincident(SketchLine_46.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_71") +SketchConstraintCoincidence_94 = Sketch_5.setCoincident(SketchCircle_6.center(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_72") +SketchConstraintCoincidence_95 = Sketch_5.setCoincident(SketchCircle_7.center(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_73") +SketchConstraintCoincidence_96 = Sketch_5.setCoincident(SketchLine_47.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_74") +SketchLine_50 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_50.setName("SketchLine_22") +SketchLine_50.result().setName("SketchLine_22") +SketchConstraintCoincidence_97 = Sketch_5.setCoincident(SketchLine_49.endPoint(), SketchLine_50.result()) +SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_75") +SketchConstraintDistance_19 = Sketch_5.setDistance(SketchLine_49.endPoint(), SketchLine_41.result(), 10) +model.do() +Face_1 = model.addFace(Part_2_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_1_2f-SketchArc_7_2f-SketchArc_8_2f-SketchArc_9_2f-SketchArc_10_2f-SketchArc_6_2f-SketchArc_5_2f-SketchArc_4_2f_wire")]) +Axis_4 = model.addAxis(Part_2_doc, model.selection("FACE", "PartSet/XOZ"), model.selection("VERTEX", "Sketch_2/SketchArc_3")) +Rotation_3 = model.addRotation(Part_2_doc, [model.selection("FACE", "Face_1_1")], model.selection("EDGE", "Axis_1"), -43.8752) +Pipe_1 = model.addPipe(Part_2_doc, [model.selection("FACE", "Rotation_1_1")], model.selection("EDGE", "Sketch_2/SketchArc_3_2")) +Extrusion_3 = model.addExtrusion(Part_2_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_2_2f-SketchCircle_3_2r_wire"), model.selection("WIRE", "Sketch_2/Face-SketchLine_17r-SketchLine_16r-SketchLine_15r-SketchLine_14r_wire")], model.selection(), "Gap/2", "Gap/2") +Fuse_1 = model.addFuse(Part_2_doc, [model.selection("SOLID", "Pipe_1_1")], [model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_1_2")]) +Extrusion_4 = model.addExtrusion(Part_2_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_3_2f")], model.selection(), "Gap", "Gap") +Cut_1 = model.addCut(Part_2_doc, [model.selection("SOLID", "Fuse_1_1")], [model.selection("SOLID", "Extrusion_2_1")]) +Translation_1 = model.addTranslation(Part_2_doc, [model.selection("SOLID", "Cut_1_1")], model.selection("VERTEX", "Sketch_2/SketchCircle_2_2__cc"), model.selection("VERTEX", "Sketch_2/SketchLine_21_EndVertex")) +model.do() +Part_3 = model.duplicatePart(Part_2) +Part_3.setName("Arm 2") +model.do() +Part_4 = model.duplicatePart(Part_3) +Part_4.setName("Arm 3") +model.do() +Translation_4 = model.addTranslation(partSet, [model.selection("COMPOUND", "Part_2/"), model.selection("COMPOUND", "Part_3/"), model.selection("COMPOUND", "Part_4/")], model.selection("EDGE", "OX"), -40) +Rotation_6 = model.addRotation(partSet, [model.selection("COMPOUND", "Translation_1_2/")], model.selection("EDGE", "OZ"), 120) +Rotation_7 = model.addRotation(partSet, [model.selection("COMPOUND", "Translation_1_3/")], model.selection("EDGE", "OZ"), 240) +Part_5 = model.addPart(partSet) +Part_5.setName("Rod part") +Part_5_doc = Part_5.document() +Parameter_H = model.addParameter(partSet, "H", "110") +Sketch_10 = model.addSketch(Part_5_doc, model.defaultPlane("YOZ")) +SketchLine_93 = Sketch_10.addLine(0, 25, 6, 25) +SketchLine_94 = Sketch_10.addLine(6, 25, 6, -75) +SketchConstraintCoincidence_232 = Sketch_10.setCoincident(SketchLine_93.endPoint(), SketchLine_94.startPoint()) +SketchLine_95 = Sketch_10.addLine(6, -75, 4, -75) +SketchConstraintCoincidence_233 = Sketch_10.setCoincident(SketchLine_94.endPoint(), SketchLine_95.startPoint()) +SketchLine_96 = Sketch_10.addLine(4, -75, 4, -81.00000000054168) +SketchConstraintCoincidence_234 = Sketch_10.setCoincident(SketchLine_95.endPoint(), SketchLine_96.startPoint()) +SketchLine_97 = Sketch_10.addLine(4, -81.00000000054168, 0, -85) +SketchConstraintCoincidence_235 = Sketch_10.setCoincident(SketchLine_96.endPoint(), SketchLine_97.startPoint()) +SketchLine_98 = Sketch_10.addLine(0, -85, 0, 25) +SketchConstraintCoincidence_236 = Sketch_10.setCoincident(SketchLine_97.endPoint(), SketchLine_98.startPoint()) +SketchConstraintCoincidence_237 = Sketch_10.setCoincident(SketchLine_93.startPoint(), SketchLine_98.endPoint()) +SketchConstraintVertical_15 = Sketch_10.setVertical(SketchLine_98.result()) +SketchConstraintVertical_16 = Sketch_10.setVertical(SketchLine_94.result()) +SketchConstraintVertical_17 = Sketch_10.setVertical(SketchLine_96.result()) +SketchConstraintHorizontal_18 = Sketch_10.setHorizontal(SketchLine_93.result()) +SketchConstraintHorizontal_19 = Sketch_10.setHorizontal(SketchLine_95.result()) +SketchConstraintAngle_7 = Sketch_10.setAngle(SketchLine_97.result(), SketchLine_98.result(), 45.00000000387975) +SketchConstraintDistance_32 = Sketch_10.setDistance(SketchLine_97.endPoint(), SketchLine_95.result(), 10) +SketchConstraintDistance_33 = Sketch_10.setDistance(SketchLine_97.startPoint(), SketchLine_98.result(), 4) +SketchConstraintLength_7 = Sketch_10.setLength(SketchLine_93.result(), "Rod/2") +SketchConstraintDistance_34 = Sketch_10.setDistance(SketchLine_97.endPoint(), SketchLine_93.result(), "H") +SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_238 = Sketch_10.setCoincident(SketchPoint_7.coordinates(), SketchLine_98.result()) +SketchLine_99 = Sketch_10.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintDistance_35 = Sketch_10.setDistance(SketchLine_98.endPoint(), SketchLine_99.result(), "Thickness") +model.do() +Revolution_2 = model.addRevolution(Part_5_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_6r-SketchLine_5r-SketchLine_4r-SketchLine_3r-SketchLine_2r-SketchLine_1r")], model.selection("EDGE", "Sketch_1/SketchLine_6"), 360, 0) +Sketch_11 = model.addSketch(Part_5_doc, model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_1")) +SketchCircle_14 = Sketch_11.addCircle(0, 0, 8.5) +SketchCircle_14.setAuxiliary(True) +SketchPoint_8 = Sketch_11.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_1_StartVertex")) +SketchConstraintCoincidence_239 = Sketch_11.setCoincident(SketchCircle_14.center(), SketchPoint_8.result()) +SketchConstraintRadius_18 = Sketch_11.setRadius(SketchCircle_14.results()[1], "(Rod+5)/2") +SketchLine_100 = Sketch_11.addLine(-8.5, -4.907477288111821, -8.5, 4.907477288111821) +SketchLine_101 = Sketch_11.addLine(-8.5, 4.907477288111821, -2.182790672831509e-014, 9.814954576223595) +SketchConstraintCoincidence_240 = Sketch_11.setCoincident(SketchLine_100.endPoint(), SketchLine_101.startPoint()) +SketchLine_102 = Sketch_11.addLine(-2.182790672831509e-014, 9.814954576223595, 8.5, 4.907477288111624) +SketchConstraintCoincidence_241 = Sketch_11.setCoincident(SketchLine_101.endPoint(), SketchLine_102.startPoint()) +SketchLine_103 = Sketch_11.addLine(8.5, 4.907477288111624, 8.5, -4.907477288111966) +SketchConstraintCoincidence_242 = Sketch_11.setCoincident(SketchLine_102.endPoint(), SketchLine_103.startPoint()) +SketchLine_104 = Sketch_11.addLine(8.5, -4.907477288111966, 4.843087198023196e-015, -9.814954576223641) +SketchConstraintCoincidence_243 = Sketch_11.setCoincident(SketchLine_103.endPoint(), SketchLine_104.startPoint()) +SketchLine_105 = Sketch_11.addLine(4.843087198023196e-015, -9.814954576223641, -8.5, -4.907477288111821) +SketchConstraintCoincidence_244 = Sketch_11.setCoincident(SketchLine_104.endPoint(), SketchLine_105.startPoint()) +SketchConstraintCoincidence_245 = Sketch_11.setCoincident(SketchLine_100.startPoint(), SketchLine_105.endPoint()) +SketchConstraintVertical_18 = Sketch_11.setVertical(SketchLine_100.result()) +SketchConstraintVertical_19 = Sketch_11.setVertical(SketchLine_103.result()) +SketchConstraintTangent_15 = Sketch_11.setTangent(SketchCircle_14.results()[1], SketchLine_103.result()) +SketchConstraintTangent_16 = Sketch_11.setTangent(SketchCircle_14.results()[1], SketchLine_100.result()) +SketchConstraintTangent_17 = Sketch_11.setTangent(SketchLine_104.result(), SketchCircle_14.results()[1]) +SketchConstraintTangent_18 = Sketch_11.setTangent(SketchLine_105.result(), SketchCircle_14.results()[1]) +SketchConstraintTangent_19 = Sketch_11.setTangent(SketchLine_101.result(), SketchCircle_14.results()[1]) +SketchConstraintTangent_20 = Sketch_11.setTangent(SketchLine_102.result(), SketchCircle_14.results()[1]) +SketchConstraintEqual_7 = Sketch_11.setEqual(SketchLine_100.result(), SketchLine_101.result()) +SketchConstraintEqual_8 = Sketch_11.setEqual(SketchLine_101.result(), SketchLine_102.result()) +SketchConstraintEqual_9 = Sketch_11.setEqual(SketchLine_102.result(), SketchLine_103.result()) +SketchConstraintEqual_10 = Sketch_11.setEqual(SketchLine_103.result(), SketchLine_104.result()) +model.do() +Extrusion_9 = model.addExtrusion(Part_5_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_13r-SketchLine_12r-SketchLine_11r-SketchLine_10r-SketchLine_9r-SketchLine_8r")], model.selection(), 25, 0) +Sketch_12 = model.addSketch(Part_5_doc, model.standardPlane("YOZ")) +SketchLine_106 = Sketch_12.addLine(9.814954576223595, 48.99999999999999, 9.814954576223595, 52.35726558990813) +SketchLine_107 = Sketch_12.addLine(9.814954576223595, 52.35726558990813, 4, 52.35726558990813) +SketchConstraintCoincidence_246 = Sketch_12.setCoincident(SketchLine_106.endPoint(), SketchLine_107.startPoint()) +SketchLine_108 = Sketch_12.addLine(4, 52.35726558990813, 9.814954576223595, 48.99999999999999) +SketchConstraintCoincidence_247 = Sketch_12.setCoincident(SketchLine_107.endPoint(), SketchLine_108.startPoint()) +SketchConstraintCoincidence_248 = Sketch_12.setCoincident(SketchLine_106.startPoint(), SketchLine_108.endPoint()) +SketchConstraintHorizontal_20 = Sketch_12.setHorizontal(SketchLine_107.result()) +SketchConstraintVertical_20 = Sketch_12.setVertical(SketchLine_106.result()) +SketchConstraintAngle_8 = Sketch_12.setAngle(SketchLine_108.result(), SketchLine_107.result(), 30) +SketchLine_109 = Sketch_12.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_2/SketchLine_10][Extrusion_1_1/Generated_Face&Sketch_2/SketchLine_9]")) +SketchConstraintCoincidence_249 = Sketch_12.setCoincident(SketchLine_108.endPoint(), SketchLine_109.result()) +SketchProjection_2 = Sketch_12.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_2/SketchLine_10][Extrusion_1_1/To_Face]"), False) +SketchLine_110 = SketchProjection_2.createdFeature() +SketchConstraintDistance_36 = Sketch_12.setDistance(SketchLine_110.result(), SketchLine_108.endPoint(), 1) +SketchLine_111 = Sketch_12.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintDistance_37 = Sketch_12.setDistance(SketchLine_108.startPoint(), SketchLine_111.result(), 4) +model.do() +Revolution_3 = model.addRevolution(Part_5_doc, [model.selection("FACE", "Sketch_3/Face-SketchLine_14r-SketchLine_15f-SketchLine_16f")], model.selection("EDGE", "PartSet/OZ"), 360, 0) +Cut_12 = model.addCut(Part_5_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Revolution_2_1")]) +Cut_13 = model.addFuse(Part_5_doc, [model.selection("SOLID", "Cut_1_1"), model.selection("SOLID", "Revolution_1_1")], []) + +# Test reexecution after parameter change +Parameter_H.setValue(120) +model.do() +model.testResultsVolumes(Part_5, [19052.771316640515578910708427429]) +Parameter_H.setValue(110) +model.do() +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Part_1, 1) +model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/bobine_film_reel.py b/test.compatibility/bobine_film_reel.py new file mode 100644 index 000000000..3c0ec1538 --- /dev/null +++ b/test.compatibility/bobine_film_reel.py @@ -0,0 +1,141 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_R = model.addParameter(Part_1_doc, "R", "40") +model.addParameter(Part_1_doc, "h", "3") +model.addParameter(Part_1_doc, "R2", "33.5") +model.addParameter(Part_1_doc, "h2", "4") +model.addParameter(Part_1_doc, "R3", "25.9") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchCircle_1 = Sketch_1.addCircle(0, 0, 40) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchCircle_1.center(), SketchPoint_1.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchCircle_1.results()[1], "R") +SketchLine_1 = Sketch_1.addLine(0, 0, -20.88093073029438, 34.1172497695333) +SketchLine_1.setAuxiliary(True) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchCircle_1.center(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchCircle_1.results()[1]) +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection(), "h", 0) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face")) +SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_2 = SketchProjection_1.createdFeature() +SketchCircle_2 = Sketch_2.addCircle(0, 0, 33.5) +SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_2.results()[1], "R2") +SketchConstraintCoincidence_5 = Sketch_2.setCoincident(SketchAPI_Line(SketchLine_2).startPoint(), SketchCircle_2.center()) +SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_14") +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_2_2f")], model.selection(), "h2", 0) +Extrusion_3 = model.addExtrusion(Part_1_doc, [], model.selection(), "h2*3", 0) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_2_1/To_Face")) +SketchCircle_3 = Sketch_3.addCircle(0, 0, 28.25) +SketchConstraintRadius_3 = Sketch_3.setRadius(SketchCircle_3.results()[1], 28.25) +SketchProjection_2 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_3 = SketchProjection_2.createdFeature() +SketchConstraintCoincidence_6 = Sketch_3.setCoincident(SketchCircle_3.center(), SketchAPI_Line(SketchLine_3).startPoint()) +Extrusion_3.setNestedSketch(Sketch_3) +Extrusion_4 = model.addExtrusion(Part_1_doc, [], model.selection(), "h2", 0) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_3_1/To_Face")) +SketchProjection_3 = Sketch_4.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_4 = SketchProjection_3.createdFeature() +SketchCircle_4 = Sketch_4.addCircle(0, 0, 25.9) +SketchConstraintRadius_4 = Sketch_4.setRadius(SketchCircle_4.results()[1], "R3") +SketchConstraintCoincidence_7 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_4).startPoint(), SketchCircle_4.center()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_15") +Extrusion_4.setNestedSketch(Sketch_4) +Extrusion_5 = model.addExtrusion(Part_1_doc, [], model.selection(), "h2", 0) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_4_1/To_Face")) +SketchProjection_4 = Sketch_5.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_5 = SketchProjection_4.createdFeature() +SketchCircle_5 = Sketch_5.addCircle(0, 0, 8) +SketchConstraintRadius_5 = Sketch_5.setRadius(SketchCircle_5.results()[1], 8) +SketchConstraintCoincidence_8 = Sketch_5.setCoincident(SketchAPI_Line(SketchLine_5).startPoint(), SketchCircle_5.center()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_16") +Extrusion_5.setNestedSketch(Sketch_5) +Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Extrusion_4_1"), model.selection("SOLID", "Extrusion_5_1"), model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "Extrusion_3_1")], []) +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [], model.selection(), model.selection("FACE", "Extrusion_5_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "Fuse_1_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/From_Face")) +SketchCircle_6 = Sketch_6.addCircle(0, 0, 4.2) +SketchConstraintRadius_6 = Sketch_6.setRadius(SketchCircle_6.results()[1], 4.2) +SketchPoint_2 = Sketch_6.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_9 = Sketch_6.setCoincident(SketchPoint_2.coordinates(), SketchCircle_6.center()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_17") +ExtrusionCut_1.setNestedSketch(Sketch_6) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/From_Face")) +SketchCircle_7 = Sketch_7.addCircle(0, -85, 66) +SketchLine_6 = Sketch_7.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintCoincidence_10 = Sketch_7.setCoincident(SketchCircle_7.center(), SketchLine_6.result()) +SketchConstraintRadius_7 = Sketch_7.setRadius(SketchCircle_7.results()[1], 66) +SketchConstraintDistance_1 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_6.startPoint(), 85) +SketchMultiRotation_1 = Sketch_7.addRotation([SketchCircle_7.results()[1]], SketchLine_6.startPoint(), 120, 3) +[SketchCircle_8, SketchCircle_9] = SketchMultiRotation_1.rotated() +model.do() +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_5_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face")) +SketchLine_7 = Sketch_8.addLine(-2.320957096353877e-016, 11.00000001704673, -7, 11.00000001704673) +SketchConstraintHorizontal_1 = Sketch_8.setHorizontal(SketchLine_7.result()) +SketchLine_8 = Sketch_8.addLine(-7, 11.00000001704673, -6.329882773485103e-016, 30.00000001704673) +SketchConstraintCoincidence_11 = Sketch_8.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint()) +SketchLine_9 = Sketch_8.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintCoincidence_12 = Sketch_8.setCoincident(SketchLine_7.startPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_13 = Sketch_8.setCoincident(SketchLine_8.endPoint(), SketchLine_9.result()) +SketchConstraintMirror_1 = Sketch_8.addMirror(SketchLine_9.result(), [SketchLine_7.result(), SketchLine_8.result()]) +[SketchLine_10, SketchLine_11] = SketchConstraintMirror_1.mirrored() +SketchConstraintLength_1 = Sketch_8.setLength(SketchLine_7.result(), 7) +SketchConstraintDistance_2 = Sketch_8.setDistance(SketchLine_9.startPoint(), SketchLine_7.result(), 11) +SketchConstraintDistance_3 = Sketch_8.setDistance(SketchLine_8.endPoint(), SketchLine_9.startPoint(), 30) +SketchMultiRotation_2_objects = [SketchLine_11.result(), SketchLine_10.result(), SketchLine_8.result(), SketchLine_7.result()] +SketchMultiRotation_2 = Sketch_8.addRotation(SketchMultiRotation_2_objects, SketchLine_9.startPoint(), 120, 3) +[SketchLine_11, SketchLine_12, SketchLine_13, SketchLine_10, SketchLine_14, SketchLine_15, SketchLine_16, SketchLine_17, SketchLine_18, SketchLine_19] = SketchMultiRotation_2.rotated() +SketchLine_18.setName("SketchLine_15") +SketchLine_18.result().setName("SketchLine_15") +SketchLine_17.setName("SketchLine_18") +SketchLine_17.result().setName("SketchLine_18") +SketchLine_16.setName("SketchLine_14") +SketchLine_16.result().setName("SketchLine_14") +SketchLine_15.setName("SketchLine_17") +SketchLine_15.result().setName("SketchLine_17") +SketchLine_14.setName("SketchLine_13") +SketchLine_14.result().setName("SketchLine_13") +SketchLine_13.setName("SketchLine_16") +SketchLine_13.result().setName("SketchLine_16") +model.do() +ExtrusionCut_3_objects_1 = [model.selection("FACE", "Sketch_8/Face-SketchLine_10f-SketchLine_11f-SketchLine_8r-SketchLine_7r"), model.selection("FACE", "Sketch_8/Face-SketchLine_16f-SketchLine_18r-SketchLine_19r-SketchLine_17f"), model.selection("FACE", "Sketch_8/Face-SketchLine_12f-SketchLine_14r-SketchLine_15r-SketchLine_13f")] +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_3_objects_1, model.selection(), model.selection("FACE", "ExtrusionCut_2_1/Modified_Face&Extrusion_4_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) + +# Test reexecution after parameter change +Parameter_R.setValue(50) +model.do() +model.testResultsVolumes(ExtrusionCut_3, [35832.402050074902945198118686676]) +Parameter_R.setValue(40) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_3, 1) +model.testNbSubShapes(ExtrusionCut_3, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/bracket32.py b/test.compatibility/bracket32.py new file mode 100644 index 000000000..74850cdef --- /dev/null +++ b/test.compatibility/bracket32.py @@ -0,0 +1,842 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "BHD", "8", "Base Hole Diameter") +model.addParameter(Part_1_doc, "BHPD", "14", "Base Hole Plate Diameter") +model.addParameter(Part_1_doc, "BHPS", "2", "Base Hole Plate Thickness") +model.addParameter(Part_1_doc, "BHPFR", "BHPS/4*3", "Base Hole Plate Fillet Radius") +Parameter_BPS = model.addParameter(Part_1_doc, "BPS", "6", "Base Plate Thickness") +model.addParameter(Part_1_doc, "Draft", "100", "Bracket Draft") +model.addParameter(Part_1_doc, "TDI", "14", "Tube Internal Diameter") +model.addParameter(Part_1_doc, "TDE", "TDI+8", "Tube External Diameter") +model.addParameter(Part_1_doc, "TL", "86", "Tube Length") +model.addParameter(Part_1_doc, "Width", "112", "Full Width of Base") +model.addParameter(Part_1_doc, "LegThick", "5") +model.addParameter(Part_1_doc, "BaseLegFillet", "3") +model.addParameter(Part_1_doc, "LegTopFillet", "2") +model.addParameter(Part_1_doc, "BottomCutFillet", "2") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchLine_1 = Sketch_1.addLine(56, -3.652030108005817e-032, 20.9106603007908, -1.450725046594067e-032) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_2.result()) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.result()) +SketchLine_3 = Sketch_1.addLine(20.9106603007908, -1.450725046594067e-032, 17.67553830650723, 18.34728855042577) +SketchLine_3.setName("SketchLine_33") +SketchLine_3.result().setName("SketchLine_33") +SketchLine_4 = Sketch_1.addLine(20.9106603007908, -1.450725046594067e-032, 17.3841206866215, 20) +SketchLine_4.setName("SketchLine_3") +SketchLine_4.result().setName("SketchLine_3") +SketchLine_4.setAuxiliary(True) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(15.70591356041877, 20, 0, 20) +SketchLine_5.setName("SketchLine_32") +SketchLine_5.result().setName("SketchLine_32") +SketchLine_6 = Sketch_1.addLine(17.3841206866215, 20, 0, 20) +SketchLine_6.setName("SketchLine_4") +SketchLine_6.result().setName("SketchLine_4") +SketchLine_6.setAuxiliary(True) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_7.setName("SketchLine_5") +SketchLine_7.result().setName("SketchLine_5") +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.result()) +SketchLine_8 = Sketch_1.addLine(11, 85, 24.49270766728805, 8.479052309092824) +SketchLine_8.setName("SketchLine_77") +SketchLine_8.result().setName("SketchLine_77") +SketchLine_9 = Sketch_1.addLine(27.44713044942998, 5.999999999999999, 56, 6) +SketchLine_9.setName("SketchLine_78") +SketchLine_9.result().setName("SketchLine_78") +SketchLine_10 = Sketch_1.addLine(-11, 85, -24.49270712488033, 8.479055385239919) +SketchLine_10.setName("SketchLine_79") +SketchLine_10.result().setName("SketchLine_79") +SketchLine_11 = Sketch_1.addLine(-27.44713039880284, 6, -56, 6) +SketchLine_11.setName("SketchLine_80") +SketchLine_11.result().setName("SketchLine_80") +SketchLine_12 = Sketch_1.addLine(0, 85, 11, 85) +SketchLine_12.setName("SketchLine_7") +SketchLine_12.result().setName("SketchLine_7") +SketchLine_13 = Sketch_1.addLine(11, 85, 24.92983147596873, 6) +SketchLine_13.setName("SketchLine_8") +SketchLine_13.result().setName("SketchLine_8") +SketchLine_13.setAuxiliary(True) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_9") +SketchLine_14 = Sketch_1.addLine(24.92983147596873, 6, 56, 6) +SketchLine_14.setName("SketchLine_9") +SketchLine_14.result().setName("SketchLine_9") +SketchLine_14.setAuxiliary(True) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_10") +SketchLine_15 = Sketch_1.addLine(56, 6, 56, -3.652030108005817e-032) +SketchLine_15.setName("SketchLine_10") +SketchLine_15.result().setName("SketchLine_10") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_11") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_15.endPoint()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_12") +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_12.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_14.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_15.result()) +SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_14.result(), SketchLine_13.result(), "Draft") +SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_13.result(), SketchLine_4.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_4.endPoint(), SketchLine_13.result(), "LegThick") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_14.endPoint(), SketchLine_1.result(), 6) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_1.result(), 20) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_12.startPoint(), SketchLine_7.result()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_13") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_13.startPoint(), SketchLine_7.result(), "TDE/2") +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_13.startPoint(), SketchLine_1.result(), 85) +SketchConstraintDistance_5.setName("SketchConstraintDistance_11") +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_7.result(), "Width/2") +SketchConstraintDistance_6.setName("SketchConstraintDistance_12") +SketchLine_16 = Sketch_1.addLine(11, 85, 24.92983147596873, 6) +SketchLine_16.setName("SketchLine_30") +SketchLine_16.result().setName("SketchLine_30") +SketchLine_16.setAuxiliary(True) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_13.startPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_24") +SketchLine_17 = Sketch_1.addLine(24.92983147596873, 6, 56, 6) +SketchLine_17.setName("SketchLine_31") +SketchLine_17.result().setName("SketchLine_31") +SketchLine_17.setAuxiliary(True) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_14.endPoint(), SketchLine_17.endPoint()) +SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_25") +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchLine_13.result()) +SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_26") +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_17.startPoint(), SketchLine_14.result()) +SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_27") +SketchArc_1 = Sketch_1.addArc(15.70592142426694, 18, 17.67553830650723, 18.34728855042577, 15.70591356041877, 20, False) +SketchArc_1.setName("SketchArc_2") +SketchArc_1.result().setName("SketchArc_2") +SketchArc_1.results()[1].setName("SketchArc_2_2") +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_3.endPoint()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_28") +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_29") +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result()) +SketchConstraintTangent_1.setName("SketchConstraintTangent_3") +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_3.result()) +SketchConstraintTangent_2.setName("SketchConstraintTangent_4") +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_5.endPoint()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_30") +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_3.startPoint()) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_31") +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_6.result()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_32") +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.result()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_33") +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "LegTopFillet") +SketchConstraintRadius_1.setName("SketchConstraintRadius_7") +SketchArc_2 = Sketch_1.addArc(-15.70592142426695, 18, -15.70592154309944, 20, -17.67553694121995, 18.34729629335474, False) +SketchArc_2.setName("SketchArc_3") +SketchArc_2.result().setName("SketchArc_3") +SketchArc_2.results()[1].setName("SketchArc_3_2") +SketchLine_18 = Sketch_1.addLine(-20.91066030079081, 0, -17.67553694121995, 18.34729629335474) +SketchLine_18.setName("SketchLine_34") +SketchLine_18.result().setName("SketchLine_34") +SketchLine_19 = Sketch_1.addLine(-56, 0, -20.91066030079081, 0) +SketchLine_19.setName("SketchLine_35") +SketchLine_19.result().setName("SketchLine_35") +SketchLine_20 = Sketch_1.addLine(-56, 6, -56, 0) +SketchLine_20.setName("SketchLine_36") +SketchLine_20.result().setName("SketchLine_36") +SketchLine_21 = Sketch_1.addLine(0, 85, -11, 85) +SketchLine_21.setName("SketchLine_38") +SketchLine_21.result().setName("SketchLine_38") +SketchLine_22 = Sketch_1.addLine(-15.70592154309944, 20, 0, 20) +SketchLine_22.setName("SketchLine_40") +SketchLine_22.result().setName("SketchLine_40") +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_21.result()) +SketchConstraintHorizontal_4.setName("SketchConstraintHorizontal_18") +SketchLine_23 = Sketch_1.addLine(-11, 85, -24.92983147596874, 6) +SketchLine_23.setName("SketchLine_37") +SketchLine_23.result().setName("SketchLine_37") +SketchLine_23.setAuxiliary(True) +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchLine_23.startPoint(), SketchLine_7.result(), "TDE/2") +SketchConstraintDistance_7.setName("SketchConstraintDistance_31") +SketchLine_24 = Sketch_1.addLine(-24.92983147596874, 6, -56, 6) +SketchLine_24.setName("SketchLine_39") +SketchLine_24.result().setName("SketchLine_39") +SketchLine_24.setAuxiliary(True) +SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_24.result()) +SketchConstraintHorizontal_5.setName("SketchConstraintHorizontal_19") +SketchConstraintHorizontal_6 = Sketch_1.setHorizontal(SketchLine_19.result()) +SketchConstraintHorizontal_6.setName("SketchConstraintHorizontal_20") +SketchConstraintDistance_8 = Sketch_1.setDistance(SketchLine_24.endPoint(), SketchLine_19.result(), "BPS") +SketchConstraintDistance_8.setName("SketchConstraintDistance_32") +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_23.startPoint(), SketchLine_21.endPoint()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_113") +SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_20.endPoint(), SketchLine_7.result(), "Width/2") +SketchConstraintDistance_9.setName("SketchConstraintDistance_33") +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_24.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_114") +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_20.endPoint(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_115") +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_116") +SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_18.endPoint()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_117") +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_20.result()) +SketchConstraintVertical_2.setName("SketchConstraintVertical_16") +SketchConstraintParallel_2 = Sketch_1.setParallel(SketchLine_23.result(), SketchLine_18.result()) +SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchLine_2.result(), SketchLine_19.endPoint()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_118") +SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_22.startPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_119") +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], "LegTopFillet") +SketchConstraintRadius_2.setName("SketchConstraintRadius_16") +SketchConstraintHorizontal_7 = Sketch_1.setHorizontal(SketchLine_22.result()) +SketchConstraintHorizontal_7.setName("SketchConstraintHorizontal_21") +SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchLine_22.endPoint(), SketchLine_5.endPoint()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_120") +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_22.result()) +SketchConstraintTangent_3.setName("SketchConstraintTangent_19") +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_18.result(), SketchArc_2.results()[1]) +SketchConstraintTangent_4.setName("SketchConstraintTangent_20") +SketchConstraintAngle_2 = Sketch_1.setAngleBackward(SketchLine_19.result(), SketchLine_23.result(), "Draft") +SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchLine_17.startPoint(), SketchLine_16.endPoint()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_121") +SketchArc_3 = Sketch_1.addArc(27.44713036950057, 9.000000000000002, 24.49270766728805, 8.479052309092824, 27.44713044942998, 5.999999999999999, False) +SketchArc_3.setName("SketchArc_12") +SketchArc_3.result().setName("SketchArc_12") +SketchArc_3.results()[1].setName("SketchArc_12_2") +SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchLine_8.endPoint()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_122") +SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_123") +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_8.result()) +SketchConstraintTangent_5.setName("SketchConstraintTangent_21") +SketchConstraintTangent_6 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_9.result()) +SketchConstraintTangent_6.setName("SketchConstraintTangent_22") +SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_16.startPoint(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_124") +SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchLine_17.endPoint(), SketchLine_9.endPoint()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_125") +SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_16.result()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_126") +SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchLine_9.startPoint(), SketchLine_17.result()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_127") +SketchConstraintRadius_3 = Sketch_1.setRadius(SketchArc_3.results()[1], "BaseLegFillet") +SketchConstraintRadius_3.setName("SketchConstraintRadius_17") +SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchLine_24.startPoint(), SketchLine_23.endPoint()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_128") +SketchArc_4 = Sketch_1.addArc(-27.44713036950059, 9, -27.44713039880284, 6, -24.49270712488033, 8.479055385239919, False) +SketchArc_4.setName("SketchArc_13") +SketchArc_4.result().setName("SketchArc_13") +SketchArc_4.results()[1].setName("SketchArc_13_2") +SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchArc_4.startPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_129") +SketchConstraintCoincidence_38 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_10.endPoint()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_130") +SketchConstraintTangent_7 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_10.result()) +SketchConstraintTangent_7.setName("SketchConstraintTangent_23") +SketchConstraintTangent_8 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_11.result()) +SketchConstraintTangent_8.setName("SketchConstraintTangent_24") +SketchConstraintCoincidence_39 = Sketch_1.setCoincident(SketchLine_23.startPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_131") +SketchConstraintCoincidence_40 = Sketch_1.setCoincident(SketchLine_24.endPoint(), SketchLine_11.endPoint()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_132") +SketchConstraintCoincidence_41 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_23.result()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_133") +SketchConstraintCoincidence_42 = Sketch_1.setCoincident(SketchLine_11.startPoint(), SketchLine_24.result()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_134") +SketchConstraintRadius_4 = Sketch_1.setRadius(SketchArc_4.results()[1], "BaseLegFillet") +SketchConstraintRadius_4.setName("SketchConstraintRadius_18") +SketchConstraintCoincidence_43 = Sketch_1.setCoincident(SketchLine_21.startPoint(), SketchLine_12.startPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_135") +SketchConstraintDistance_10 = Sketch_1.setDistance(SketchArc_4.endPoint(), SketchLine_18.result(), "LegThick") +SketchConstraintDistance_10.setName("SketchConstraintDistance_34") +model.do() +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_25 = Sketch_2.addLine(-20, -5, -20, 37.99999996287101) +SketchLine_25.setName("SketchLine_73") +SketchLine_25.result().setName("SketchLine_73") +SketchLine_26 = Sketch_2.addLine(20, -5, -20, -5) +SketchLine_26.setName("SketchLine_18") +SketchLine_26.result().setName("SketchLine_18") +SketchLine_27 = Sketch_2.addLine(-18.00000018312083, 40, 18.00001539129446, 40) +SketchLine_27.setName("SketchLine_76") +SketchLine_27.result().setName("SketchLine_76") +SketchLine_28 = Sketch_2.addLine(20, 38.00000240162298, 20, -5) +SketchLine_28.setName("SketchLine_75") +SketchLine_28.result().setName("SketchLine_75") +SketchLine_29 = Sketch_2.addLine(20, 40, 20, -5) +SketchLine_29.setName("SketchLine_21") +SketchLine_29.result().setName("SketchLine_21") +SketchLine_29.setAuxiliary(True) +SketchConstraintCoincidence_44 = Sketch_2.setCoincident(SketchLine_29.endPoint(), SketchLine_26.startPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_14") +SketchLine_30 = Sketch_2.addLine(-20, -5, -20, 40) +SketchLine_30.setName("SketchLine_19") +SketchLine_30.result().setName("SketchLine_19") +SketchLine_30.setAuxiliary(True) +SketchConstraintCoincidence_45 = Sketch_2.setCoincident(SketchLine_26.endPoint(), SketchLine_30.startPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_15") +SketchLine_31 = Sketch_2.addLine(-20, 40, 20, 40) +SketchLine_31.setName("SketchLine_20") +SketchLine_31.result().setName("SketchLine_20") +SketchLine_31.setAuxiliary(True) +SketchConstraintCoincidence_46 = Sketch_2.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_16") +SketchConstraintCoincidence_47 = Sketch_2.setCoincident(SketchLine_31.endPoint(), SketchLine_29.startPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_17") +SketchConstraintHorizontal_8 = Sketch_2.setHorizontal(SketchLine_26.result()) +SketchConstraintHorizontal_8.setName("SketchConstraintHorizontal_4") +SketchConstraintVertical_3 = Sketch_2.setVertical(SketchLine_30.result()) +SketchConstraintVertical_3.setName("SketchConstraintVertical_2") +SketchConstraintHorizontal_9 = Sketch_2.setHorizontal(SketchLine_31.result()) +SketchConstraintHorizontal_9.setName("SketchConstraintHorizontal_5") +SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_29.result()) +SketchConstraintVertical_4.setName("SketchConstraintVertical_3") +SketchLine_32 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_32.setName("SketchLine_22") +SketchLine_32.result().setName("SketchLine_22") +SketchConstraintDistance_11 = Sketch_2.setDistance(SketchLine_26.startPoint(), SketchLine_32.result(), "(TL/2-3)-20") +SketchConstraintDistance_11.setName("SketchConstraintDistance_5") +SketchConstraintDistance_12 = Sketch_2.setDistance(SketchLine_26.endPoint(), SketchLine_32.result(), "(TL/2-3)-20") +SketchConstraintDistance_12.setName("SketchConstraintDistance_6") +SketchLine_33 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_33.setName("SketchLine_23") +SketchLine_33.result().setName("SketchLine_23") +SketchConstraintDistance_13 = Sketch_2.setDistance(SketchLine_29.startPoint(), SketchLine_33.result(), 40) +SketchConstraintDistance_13.setName("SketchConstraintDistance_7") +SketchConstraintDistance_14 = Sketch_2.setDistance(SketchLine_26.startPoint(), SketchLine_33.result(), 5) +SketchConstraintDistance_14.setName("SketchConstraintDistance_8") +SketchArc_5 = Sketch_2.addArc(-18, 37.99999999999999, -18.00000018312083, 40, -20, 37.99999996287101, False) +SketchArc_5.setName("SketchArc_10") +SketchArc_5.result().setName("SketchArc_10") +SketchArc_5.results()[1].setName("SketchArc_10_2") +SketchLine_34 = Sketch_2.addLine(-18.00000018312083, 40, 20, 40) +SketchLine_34.setName("SketchLine_74") +SketchLine_34.result().setName("SketchLine_74") +SketchLine_34.setAuxiliary(True) +SketchConstraintCoincidence_48 = Sketch_2.setCoincident(SketchArc_5.startPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_101") +SketchConstraintCoincidence_49 = Sketch_2.setCoincident(SketchArc_5.endPoint(), SketchLine_25.endPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_102") +SketchConstraintTangent_9 = Sketch_2.setTangent(SketchArc_5.results()[1], SketchLine_25.result()) +SketchConstraintTangent_9.setName("SketchConstraintTangent_15") +SketchConstraintTangent_10 = Sketch_2.setTangent(SketchArc_5.results()[1], SketchLine_34.result()) +SketchConstraintTangent_10.setName("SketchConstraintTangent_16") +SketchConstraintCoincidence_50 = Sketch_2.setCoincident(SketchLine_30.startPoint(), SketchLine_25.startPoint()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_103") +SketchConstraintCoincidence_51 = Sketch_2.setCoincident(SketchLine_31.endPoint(), SketchLine_34.endPoint()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_104") +SketchConstraintCoincidence_52 = Sketch_2.setCoincident(SketchLine_25.endPoint(), SketchLine_30.result()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_105") +SketchConstraintCoincidence_53 = Sketch_2.setCoincident(SketchLine_34.startPoint(), SketchLine_31.result()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_106") +SketchConstraintRadius_5 = Sketch_2.setRadius(SketchArc_5.results()[1], "BottomCutFillet") +SketchConstraintRadius_5.setName("SketchConstraintRadius_12") +SketchArc_6 = Sketch_2.addArc(18, 38.00000000000001, 20, 38.00000240162298, 18.00001539129446, 40, False) +SketchArc_6.setName("SketchArc_11") +SketchArc_6.result().setName("SketchArc_11") +SketchArc_6.results()[1].setName("SketchArc_11_2") +SketchConstraintCoincidence_54 = Sketch_2.setCoincident(SketchArc_6.startPoint(), SketchLine_28.startPoint()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_107") +SketchConstraintCoincidence_55 = Sketch_2.setCoincident(SketchArc_6.endPoint(), SketchLine_27.endPoint()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_108") +SketchConstraintTangent_11 = Sketch_2.setTangent(SketchArc_6.results()[1], SketchLine_28.result()) +SketchConstraintTangent_11.setName("SketchConstraintTangent_17") +SketchConstraintTangent_12 = Sketch_2.setTangent(SketchArc_6.results()[1], SketchLine_27.result()) +SketchConstraintTangent_12.setName("SketchConstraintTangent_18") +SketchConstraintCoincidence_56 = Sketch_2.setCoincident(SketchLine_29.endPoint(), SketchLine_28.endPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_109") +SketchConstraintCoincidence_57 = Sketch_2.setCoincident(SketchLine_34.startPoint(), SketchLine_27.startPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_110") +SketchConstraintCoincidence_58 = Sketch_2.setCoincident(SketchLine_28.startPoint(), SketchLine_29.result()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_111") +SketchConstraintCoincidence_59 = Sketch_2.setCoincident(SketchLine_27.endPoint(), SketchLine_34.result()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_112") +SketchConstraintRadius_6 = Sketch_2.setRadius(SketchArc_6.results()[1], "BottomCutFillet") +SketchConstraintRadius_6.setName("SketchConstraintRadius_13") +model.do() +Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchCircle_1 = Sketch_3.addCircle(0, 85, 11) +SketchConstraintRadius_7 = Sketch_3.setRadius(SketchCircle_1.results()[1], "TDE/2") +SketchConstraintRadius_7.setName("SketchConstraintRadius_1") +SketchCircle_2 = Sketch_3.addCircle(0, 55, 11) +SketchLine_35 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_35.setName("SketchLine_24") +SketchLine_35.result().setName("SketchLine_24") +SketchConstraintCoincidence_60 = Sketch_3.setCoincident(SketchCircle_2.center(), SketchLine_35.result()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_18") +SketchConstraintRadius_8 = Sketch_3.setRadius(SketchCircle_2.results()[1], "TDE/2") +SketchConstraintRadius_8.setName("SketchConstraintRadius_2") +SketchConstraintDistance_15 = Sketch_3.setDistance(SketchCircle_2.center(), SketchCircle_1.center(), 30) +SketchConstraintDistance_15.setName("SketchConstraintDistance_9") +SketchLine_36 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_36.setName("SketchLine_25") +SketchLine_36.result().setName("SketchLine_25") +SketchConstraintDistance_16 = Sketch_3.setDistance(SketchCircle_1.center(), SketchLine_36.result(), 85) +SketchConstraintDistance_16.setName("SketchConstraintDistance_10") +model.do() +Sketch_4 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchCircle_3 = Sketch_4.addCircle(0, 85, 7) +SketchCircle_4 = Sketch_4.addCircle(0, 55, 7) +SketchPoint_1 = Sketch_4.addPoint(model.selection("VERTEX", "Sketch_3/SketchCircle_1_2__cc")) +SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchPoint_1.coordinates(), SketchCircle_3.center()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_19") +SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "Sketch_3/SketchCircle_2_2__cc")) +SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchPoint_2.coordinates(), SketchCircle_4.center()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_20") +SketchConstraintRadius_9 = Sketch_4.setRadius(SketchCircle_3.results()[1], "TDI/2") +SketchConstraintRadius_9.setName("SketchConstraintRadius_3") +SketchConstraintRadius_10 = Sketch_4.setRadius(SketchCircle_4.results()[1], "TDI/2") +SketchConstraintRadius_10.setName("SketchConstraintRadius_4") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection(), "TL/2-3", "TL/2-3") +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), 100, 100, [model.selection("SOLID", "Extrusion_1_1")]) +ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), "TL/2", "TL/2", [model.selection("SOLID", "ExtrusionCut_1_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 60, 60, [model.selection("SOLID", "ExtrusionFuse_1_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchCircle_5 = Sketch_5.addCircle(30, -41, 7.5) +SketchLine_37 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_37.setName("SketchLine_26") +SketchLine_37.result().setName("SketchLine_26") +SketchConstraintDistance_17 = Sketch_5.setDistance(SketchCircle_5.center(), SketchLine_37.result(), 41) +SketchConstraintDistance_17.setName("SketchConstraintDistance_13") +SketchLine_38 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_38.setName("SketchLine_27") +SketchLine_38.result().setName("SketchLine_27") +SketchConstraintDistance_18 = Sketch_5.setDistance(SketchCircle_5.center(), SketchLine_38.result(), 30) +SketchConstraintDistance_18.setName("SketchConstraintDistance_14") +SketchConstraintRadius_11 = Sketch_5.setRadius(SketchCircle_5.results()[1], 7.5) +SketchConstraintRadius_11.setName("SketchConstraintRadius_5") +SketchConstraintMirror_1 = Sketch_5.addMirror(SketchLine_37.result(), [SketchCircle_5.results()[1]]) +SketchConstraintMirror_1.setName("SketchConstraintMirror_2") +[SketchCircle_6] = SketchConstraintMirror_1.mirrored() +SketchConstraintMirror_2 = Sketch_5.addMirror(SketchLine_38.result(), [SketchCircle_5.results()[1], SketchCircle_6.results()[1]]) +SketchConstraintMirror_2.setName("SketchConstraintMirror_3") +[SketchCircle_7, SketchCircle_8] = SketchConstraintMirror_2.mirrored() +model.do() +Sketch_6 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchCircle_9 = Sketch_6.addCircle(30, -41, 4) +SketchPoint_3 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchCircle_5_2__cc")) +SketchConstraintCoincidence_63 = Sketch_6.setCoincident(SketchPoint_3.coordinates(), SketchCircle_9.center()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_21") +SketchConstraintRadius_12 = Sketch_6.setRadius(SketchCircle_9.results()[1], "BHD/2") +SketchConstraintRadius_12.setName("SketchConstraintRadius_6") +SketchLine_39 = Sketch_6.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_39.setName("SketchLine_28") +SketchLine_39.result().setName("SketchLine_28") +SketchConstraintMirror_3 = Sketch_6.addMirror(SketchLine_39.result(), [SketchCircle_9.results()[1]]) +SketchConstraintMirror_3.setName("SketchConstraintMirror_4") +[SketchCircle_10] = SketchConstraintMirror_3.mirrored() +SketchLine_40 = Sketch_6.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_40.setName("SketchLine_29") +SketchLine_40.result().setName("SketchLine_29") +SketchConstraintMirror_4 = Sketch_6.addMirror(SketchLine_40.result(), [SketchCircle_9.results()[1], SketchCircle_10.results()[1]]) +SketchConstraintMirror_4.setName("SketchConstraintMirror_5") +[SketchCircle_11, SketchCircle_12] = SketchConstraintMirror_4.mirrored() +model.do() +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 30, False) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_41 = Sketch_7.addLine(-41, 0, -41, 8) +SketchPoint_4 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_5/SketchCircle_5_2__cc")) +SketchConstraintCoincidence_64 = Sketch_7.setCoincident(SketchLine_41.startPoint(), SketchPoint_4.result()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_34") +SketchLine_42 = Sketch_7.addLine(-41, 8, -34, 8) +SketchConstraintCoincidence_65 = Sketch_7.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_35") +SketchLine_43 = Sketch_7.addLine(-34, 8, -34, 7.499984403541713) +SketchLine_43.setName("SketchLine_47") +SketchLine_43.result().setName("SketchLine_47") +SketchLine_44 = Sketch_7.addLine(-32.50001348840178, 5.999999999999995, -32, 6) +SketchLine_44.setName("SketchLine_48") +SketchLine_44.result().setName("SketchLine_48") +SketchLine_45 = Sketch_7.addLine(-34, 8, -34, 6) +SketchLine_45.setName("SketchLine_43") +SketchLine_45.result().setName("SketchLine_43") +SketchLine_45.setAuxiliary(True) +SketchConstraintCoincidence_66 = Sketch_7.setCoincident(SketchLine_42.endPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_36") +SketchLine_46 = Sketch_7.addLine(-34, 6, -32, 6) +SketchLine_46.setName("SketchLine_44") +SketchLine_46.result().setName("SketchLine_44") +SketchLine_46.setAuxiliary(True) +SketchConstraintCoincidence_67 = Sketch_7.setCoincident(SketchLine_45.endPoint(), SketchLine_46.startPoint()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_37") +SketchLine_47 = Sketch_7.addLine(-32, 6, -32, 0) +SketchLine_47.setName("SketchLine_45") +SketchLine_47.result().setName("SketchLine_45") +SketchConstraintCoincidence_68 = Sketch_7.setCoincident(SketchLine_46.endPoint(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_38") +SketchLine_48 = Sketch_7.addLine(-32, 0, -41, 0) +SketchLine_48.setName("SketchLine_46") +SketchLine_48.result().setName("SketchLine_46") +SketchConstraintCoincidence_69 = Sketch_7.setCoincident(SketchLine_47.endPoint(), SketchLine_48.startPoint()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_39") +SketchConstraintCoincidence_70 = Sketch_7.setCoincident(SketchLine_41.startPoint(), SketchLine_48.endPoint()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_40") +SketchConstraintCoincidence_71 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchLine_48.endPoint()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_41") +SketchConstraintHorizontal_10 = Sketch_7.setHorizontal(SketchLine_48.result()) +SketchConstraintHorizontal_10.setName("SketchConstraintHorizontal_6") +SketchConstraintVertical_5 = Sketch_7.setVertical(SketchLine_41.result()) +SketchConstraintVertical_5.setName("SketchConstraintVertical_4") +SketchConstraintVertical_6 = Sketch_7.setVertical(SketchLine_47.result()) +SketchConstraintVertical_6.setName("SketchConstraintVertical_5") +SketchConstraintHorizontal_11 = Sketch_7.setHorizontal(SketchLine_46.result()) +SketchConstraintHorizontal_11.setName("SketchConstraintHorizontal_7") +SketchConstraintVertical_7 = Sketch_7.setVertical(SketchLine_45.result()) +SketchConstraintVertical_7.setName("SketchConstraintVertical_6") +SketchConstraintHorizontal_12 = Sketch_7.setHorizontal(SketchLine_42.result()) +SketchConstraintHorizontal_12.setName("SketchConstraintHorizontal_8") +SketchConstraintDistance_19 = Sketch_7.setDistance(SketchLine_41.endPoint(), SketchLine_48.result(), "BPS+BHPS") +SketchConstraintDistance_19.setName("SketchConstraintDistance_15") +SketchConstraintDistance_20 = Sketch_7.setDistance(SketchLine_47.startPoint(), SketchLine_48.result(), "BPS") +SketchConstraintDistance_20.setName("SketchConstraintDistance_16") +SketchConstraintDistance_21 = Sketch_7.setDistance(SketchLine_48.startPoint(), SketchLine_41.result(), "BHPD/2+BHPFR+0.5") +SketchConstraintDistance_21.setName("SketchConstraintDistance_17") +SketchConstraintDistance_22 = Sketch_7.setDistance(SketchLine_42.endPoint(), SketchLine_41.result(), "BHPD/2") +SketchConstraintDistance_22.setName("SketchConstraintDistance_18") +SketchArc_7 = Sketch_7.addArc(-32.50000000000004, 7.499999999999999, -34, 7.499984403541713, -32.50001348840178, 5.999999999999995, False) +SketchArc_7.setName("SketchArc_5") +SketchArc_7.result().setName("SketchArc_5") +SketchArc_7.results()[1].setName("SketchArc_5_2") +SketchConstraintCoincidence_72 = Sketch_7.setCoincident(SketchArc_7.startPoint(), SketchLine_43.endPoint()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_42") +SketchConstraintCoincidence_73 = Sketch_7.setCoincident(SketchArc_7.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_43") +SketchConstraintTangent_13 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_43.result()) +SketchConstraintTangent_13.setName("SketchConstraintTangent_5") +SketchConstraintTangent_14 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_44.result()) +SketchConstraintTangent_14.setName("SketchConstraintTangent_6") +SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_45.startPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_44") +SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_46.endPoint(), SketchLine_44.endPoint()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_45") +SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_43.endPoint(), SketchLine_45.result()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_77 = Sketch_7.setCoincident(SketchLine_44.startPoint(), SketchLine_46.result()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_47") +SketchConstraintRadius_13 = Sketch_7.setRadius(SketchArc_7.results()[1], "BHPFR") +SketchConstraintRadius_13.setName("SketchConstraintRadius_8") +model.do() +RevolutionFuse_1 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection("EDGE", "Sketch_7/SketchLine_41"), 360, 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_49 = Sketch_8.addLine(32, 6, 32.50001476412091, 6.000000000000001) +SketchLine_49.setName("SketchLine_55") +SketchLine_49.result().setName("SketchLine_55") +SketchLine_50 = Sketch_8.addLine(32, 0, 41, 0) +SketchLine_50.setName("SketchLine_49") +SketchLine_50.result().setName("SketchLine_49") +SketchPoint_5 = Sketch_8.addPoint(model.selection("VERTEX", "Sketch_6/SketchCircle_10_2__cc")) +SketchConstraintCoincidence_78 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchPoint_5.result()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_50") +SketchLine_51 = Sketch_8.addLine(41, 0, 41, 8) +SketchLine_51.setName("SketchLine_50") +SketchLine_51.result().setName("SketchLine_50") +SketchLine_52 = Sketch_8.addLine(34, 7.499985233923545, 34, 8) +SketchLine_52.setName("SketchLine_56") +SketchLine_52.result().setName("SketchLine_56") +SketchLine_53 = Sketch_8.addLine(32, 6, 32, 0) +SketchLine_53.setName("SketchLine_52") +SketchLine_53.result().setName("SketchLine_52") +SketchConstraintCoincidence_79 = Sketch_8.setCoincident(SketchLine_53.endPoint(), SketchLine_50.startPoint()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_51") +SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchLine_51.startPoint()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_52") +SketchLine_54 = Sketch_8.addLine(41, 8, 34, 8) +SketchLine_54.setName("SketchLine_53") +SketchLine_54.result().setName("SketchLine_53") +SketchConstraintCoincidence_81 = Sketch_8.setCoincident(SketchLine_51.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_53") +SketchConstraintHorizontal_13 = Sketch_8.setHorizontal(SketchLine_50.result()) +SketchConstraintHorizontal_13.setName("SketchConstraintHorizontal_9") +SketchConstraintVertical_8 = Sketch_8.setVertical(SketchLine_51.result()) +SketchConstraintVertical_8.setName("SketchConstraintVertical_7") +SketchConstraintVertical_9 = Sketch_8.setVertical(SketchLine_53.result()) +SketchConstraintVertical_9.setName("SketchConstraintVertical_8") +SketchPoint_6 = Sketch_8.addPoint(32, 6) +SketchConstraintCoincidence_82 = Sketch_8.setCoincident(SketchPoint_6.coordinates(), SketchLine_53.startPoint()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_55") +SketchPoint_7 = Sketch_8.addPoint(34, 8) +SketchConstraintCoincidence_83 = Sketch_8.setCoincident(SketchLine_54.endPoint(), SketchPoint_7.coordinates()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_58") +SketchLine_55 = Sketch_8.addLine(32, 6, 34, 6) +SketchLine_55.setName("SketchLine_51") +SketchLine_55.result().setName("SketchLine_51") +SketchLine_55.setAuxiliary(True) +SketchConstraintCoincidence_84 = Sketch_8.setCoincident(SketchLine_53.startPoint(), SketchLine_55.startPoint()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_54") +SketchConstraintCoincidence_85 = Sketch_8.setCoincident(SketchPoint_6.coordinates(), SketchLine_55.startPoint()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_56") +SketchLine_56 = Sketch_8.addLine(34, 6, 34, 8) +SketchLine_56.setName("SketchLine_54") +SketchLine_56.result().setName("SketchLine_54") +SketchLine_56.setAuxiliary(True) +SketchConstraintCoincidence_86 = Sketch_8.setCoincident(SketchLine_55.endPoint(), SketchLine_56.startPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_57") +SketchConstraintCoincidence_87 = Sketch_8.setCoincident(SketchPoint_7.coordinates(), SketchLine_56.endPoint()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_59") +SketchConstraintCoincidence_88 = Sketch_8.setCoincident(SketchLine_54.endPoint(), SketchLine_56.endPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_60") +SketchConstraintHorizontal_14 = Sketch_8.setHorizontal(SketchLine_55.result()) +SketchConstraintHorizontal_14.setName("SketchConstraintHorizontal_10") +SketchConstraintVertical_10 = Sketch_8.setVertical(SketchLine_56.result()) +SketchConstraintVertical_10.setName("SketchConstraintVertical_9") +SketchConstraintDistance_23 = Sketch_8.setDistance(SketchPoint_7.coordinates(), SketchLine_50.result(), 8) +SketchConstraintDistance_23.setName("SketchConstraintDistance_19") +SketchConstraintHorizontal_15 = Sketch_8.setHorizontal(SketchLine_54.result()) +SketchConstraintHorizontal_15.setName("SketchConstraintHorizontal_11") +SketchConstraintDistance_24 = Sketch_8.setDistance(SketchLine_53.startPoint(), SketchLine_51.result(), 9) +SketchConstraintDistance_24.setName("SketchConstraintDistance_20") +SketchConstraintDistance_25 = Sketch_8.setDistance(SketchPoint_7.coordinates(), SketchLine_51.result(), 7) +SketchConstraintDistance_25.setName("SketchConstraintDistance_21") +SketchConstraintDistance_26 = Sketch_8.setDistance(SketchLine_53.startPoint(), SketchLine_50.result(), 6) +SketchConstraintDistance_26.setName("SketchConstraintDistance_22") +SketchArc_8 = Sketch_8.addArc(32.50000000000001, 7.500000000000025, 32.50001476412091, 6.000000000000001, 34, 7.499985233923545, False) +SketchArc_8.setName("SketchArc_7") +SketchArc_8.result().setName("SketchArc_7") +SketchArc_8.results()[1].setName("SketchArc_7_2") +SketchConstraintCoincidence_89 = Sketch_8.setCoincident(SketchArc_8.startPoint(), SketchLine_49.endPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_61") +SketchConstraintCoincidence_90 = Sketch_8.setCoincident(SketchArc_8.endPoint(), SketchLine_52.startPoint()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_62") +SketchConstraintTangent_15 = Sketch_8.setTangent(SketchArc_8.results()[1], SketchLine_49.result()) +SketchConstraintTangent_15.setName("SketchConstraintTangent_9") +SketchConstraintTangent_16 = Sketch_8.setTangent(SketchArc_8.results()[1], SketchLine_52.result()) +SketchConstraintTangent_16.setName("SketchConstraintTangent_10") +SketchConstraintCoincidence_91 = Sketch_8.setCoincident(SketchLine_55.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_63") +SketchConstraintCoincidence_92 = Sketch_8.setCoincident(SketchLine_56.endPoint(), SketchLine_52.endPoint()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_64") +SketchConstraintCoincidence_93 = Sketch_8.setCoincident(SketchLine_49.endPoint(), SketchLine_55.result()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_65") +SketchConstraintCoincidence_94 = Sketch_8.setCoincident(SketchLine_52.startPoint(), SketchLine_56.result()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_66") +SketchConstraintRadius_14 = Sketch_8.setRadius(SketchArc_8.results()[1], 1.5) +SketchConstraintRadius_14.setName("SketchConstraintRadius_9") +model.do() +RevolutionFuse_2 = model.addRevolutionFuse(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchLine_52f-SketchLine_49f-SketchLine_50f-SketchLine_53f-SketchLine_56r-SketchArc_7_2r-SketchLine_55r")], model.selection("EDGE", "Sketch_8/SketchLine_50"), 360, 0, [model.selection("SOLID", "RevolutionFuse_1_1")]) +Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 30, True) +Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2")) +SketchLine_57 = Sketch_9.addLine(-32.50001494742042, 5.999999999999998, -32, 6) +SketchLine_57.setName("SketchLine_63") +SketchLine_57.result().setName("SketchLine_63") +SketchLine_58 = Sketch_9.addLine(-32, 0, -41, 0) +SketchLine_58.setName("SketchLine_57") +SketchLine_58.result().setName("SketchLine_57") +SketchPoint_8 = Sketch_9.addPoint(model.selection("VERTEX", "Sketch_6/SketchCircle_11_2__cc")) +SketchConstraintCoincidence_95 = Sketch_9.setCoincident(SketchLine_58.endPoint(), SketchPoint_8.result()) +SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_67") +SketchLine_59 = Sketch_9.addLine(-41, 0, -41, 7.999999999999999) +SketchLine_59.setName("SketchLine_58") +SketchLine_59.result().setName("SketchLine_58") +SketchLine_60 = Sketch_9.addLine(-41, 7.999999999999999, -34, 8) +SketchLine_60.setName("SketchLine_59") +SketchLine_60.result().setName("SketchLine_59") +SketchLine_61 = Sketch_9.addLine(-32, 6, -32, 0) +SketchLine_61.setName("SketchLine_60") +SketchLine_61.result().setName("SketchLine_60") +SketchConstraintCoincidence_96 = Sketch_9.setCoincident(SketchLine_61.endPoint(), SketchLine_58.startPoint()) +SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_68") +SketchConstraintCoincidence_97 = Sketch_9.setCoincident(SketchLine_58.endPoint(), SketchLine_59.startPoint()) +SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_69") +SketchConstraintCoincidence_98 = Sketch_9.setCoincident(SketchLine_59.endPoint(), SketchLine_60.startPoint()) +SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_70") +SketchLine_62 = Sketch_9.addLine(-34, 8, -33.99999999999999, 7.499985052178464) +SketchLine_62.setName("SketchLine_64") +SketchLine_62.result().setName("SketchLine_64") +SketchConstraintHorizontal_16 = Sketch_9.setHorizontal(SketchLine_58.result()) +SketchConstraintHorizontal_16.setName("SketchConstraintHorizontal_12") +SketchConstraintVertical_11 = Sketch_9.setVertical(SketchLine_59.result()) +SketchConstraintVertical_11.setName("SketchConstraintVertical_10") +SketchConstraintHorizontal_17 = Sketch_9.setHorizontal(SketchLine_60.result()) +SketchConstraintHorizontal_17.setName("SketchConstraintHorizontal_13") +SketchConstraintVertical_12 = Sketch_9.setVertical(SketchLine_61.result()) +SketchConstraintVertical_12.setName("SketchConstraintVertical_11") +SketchPoint_9 = Sketch_9.addPoint(-34, 8) +SketchConstraintCoincidence_99 = Sketch_9.setCoincident(SketchPoint_9.coordinates(), SketchLine_60.endPoint()) +SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_72") +SketchPoint_10 = Sketch_9.addPoint(-32, 6) +SketchConstraintCoincidence_100 = Sketch_9.setCoincident(SketchPoint_10.coordinates(), SketchLine_61.startPoint()) +SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_73") +SketchLine_63 = Sketch_9.addLine(-34, 8, -34, 6) +SketchLine_63.setName("SketchLine_61") +SketchLine_63.result().setName("SketchLine_61") +SketchLine_63.setAuxiliary(True) +SketchConstraintCoincidence_101 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_63.startPoint()) +SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_71") +SketchConstraintCoincidence_102 = Sketch_9.setCoincident(SketchPoint_9.coordinates(), SketchLine_63.startPoint()) +SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_74") +SketchLine_64 = Sketch_9.addLine(-34, 6, -32, 6) +SketchLine_64.setName("SketchLine_62") +SketchLine_64.result().setName("SketchLine_62") +SketchLine_64.setAuxiliary(True) +SketchConstraintCoincidence_103 = Sketch_9.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint()) +SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_75") +SketchConstraintCoincidence_104 = Sketch_9.setCoincident(SketchLine_61.startPoint(), SketchLine_64.endPoint()) +SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_76") +SketchConstraintCoincidence_105 = Sketch_9.setCoincident(SketchPoint_10.coordinates(), SketchLine_64.endPoint()) +SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_77") +SketchConstraintHorizontal_18 = Sketch_9.setHorizontal(SketchLine_64.result()) +SketchConstraintHorizontal_18.setName("SketchConstraintHorizontal_14") +SketchConstraintVertical_13 = Sketch_9.setVertical(SketchLine_63.result()) +SketchConstraintVertical_13.setName("SketchConstraintVertical_12") +SketchConstraintDistance_27 = Sketch_9.setDistance(SketchLine_61.startPoint(), SketchLine_58.result(), 6) +SketchConstraintDistance_27.setName("SketchConstraintDistance_23") +SketchConstraintDistance_28 = Sketch_9.setDistance(SketchLine_60.endPoint(), SketchLine_58.result(), 8) +SketchConstraintDistance_28.setName("SketchConstraintDistance_24") +SketchConstraintDistance_29 = Sketch_9.setDistance(SketchLine_60.endPoint(), SketchLine_59.result(), 7) +SketchConstraintDistance_29.setName("SketchConstraintDistance_25") +SketchConstraintDistance_30 = Sketch_9.setDistance(SketchLine_61.startPoint(), SketchLine_63.result(), 2) +SketchConstraintDistance_30.setName("SketchConstraintDistance_26") +SketchArc_9 = Sketch_9.addArc(-32.49999999999999, 7.499999999999997, -33.99999999999999, 7.499985052178464, -32.50001494742042, 5.999999999999998, False) +SketchArc_9.setName("SketchArc_8") +SketchArc_9.result().setName("SketchArc_8") +SketchArc_9.results()[1].setName("SketchArc_8_2") +SketchConstraintCoincidence_106 = Sketch_9.setCoincident(SketchArc_9.startPoint(), SketchLine_62.endPoint()) +SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_78") +SketchConstraintCoincidence_107 = Sketch_9.setCoincident(SketchArc_9.endPoint(), SketchLine_57.startPoint()) +SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_79") +SketchConstraintTangent_17 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_57.result()) +SketchConstraintTangent_17.setName("SketchConstraintTangent_11") +SketchConstraintTangent_18 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_62.result()) +SketchConstraintTangent_18.setName("SketchConstraintTangent_12") +SketchConstraintCoincidence_108 = Sketch_9.setCoincident(SketchLine_64.endPoint(), SketchLine_57.endPoint()) +SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_80") +SketchConstraintCoincidence_109 = Sketch_9.setCoincident(SketchLine_63.startPoint(), SketchLine_62.startPoint()) +SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_81") +SketchConstraintCoincidence_110 = Sketch_9.setCoincident(SketchLine_57.startPoint(), SketchLine_64.result()) +SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_82") +SketchConstraintCoincidence_111 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.result()) +SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_83") +SketchConstraintRadius_15 = Sketch_9.setRadius(SketchArc_9.results()[1], 1.5) +SketchConstraintRadius_15.setName("SketchConstraintRadius_10") +model.do() +Sketch_10 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2")) +SketchLine_65 = Sketch_10.addLine(33.99999999999999, 7.999999999999999, 33.99999999999999, 7.499985050625134) +SketchLine_65.setName("SketchLine_71") +SketchLine_65.result().setName("SketchLine_71") +SketchLine_66 = Sketch_10.addLine(32, 0, 41, 0) +SketchLine_66.setName("SketchLine_65") +SketchLine_66.result().setName("SketchLine_65") +SketchPoint_11 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_6/SketchCircle_12_2__cc")) +SketchConstraintCoincidence_112 = Sketch_10.setCoincident(SketchLine_66.endPoint(), SketchPoint_11.result()) +SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_84") +SketchLine_67 = Sketch_10.addLine(41, 0, 41, 7.999999999999999) +SketchLine_67.setName("SketchLine_66") +SketchLine_67.result().setName("SketchLine_66") +SketchLine_68 = Sketch_10.addLine(41, 7.999999999999999, 33.99999999999999, 7.999999999999999) +SketchLine_68.setName("SketchLine_67") +SketchLine_68.result().setName("SketchLine_67") +SketchLine_69 = Sketch_10.addLine(32, 6, 32, 0) +SketchLine_69.setName("SketchLine_68") +SketchLine_69.result().setName("SketchLine_68") +SketchConstraintCoincidence_113 = Sketch_10.setCoincident(SketchLine_69.endPoint(), SketchLine_66.startPoint()) +SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_85") +SketchConstraintCoincidence_114 = Sketch_10.setCoincident(SketchLine_66.endPoint(), SketchLine_67.startPoint()) +SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_86") +SketchConstraintCoincidence_115 = Sketch_10.setCoincident(SketchLine_67.endPoint(), SketchLine_68.startPoint()) +SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_87") +SketchLine_70 = Sketch_10.addLine(32.50001494562209, 6.000000000000006, 32, 6) +SketchLine_70.setName("SketchLine_72") +SketchLine_70.result().setName("SketchLine_72") +SketchConstraintHorizontal_19 = Sketch_10.setHorizontal(SketchLine_66.result()) +SketchConstraintHorizontal_19.setName("SketchConstraintHorizontal_15") +SketchConstraintVertical_14 = Sketch_10.setVertical(SketchLine_67.result()) +SketchConstraintVertical_14.setName("SketchConstraintVertical_13") +SketchConstraintHorizontal_20 = Sketch_10.setHorizontal(SketchLine_68.result()) +SketchConstraintHorizontal_20.setName("SketchConstraintHorizontal_16") +SketchConstraintVertical_15 = Sketch_10.setVertical(SketchLine_69.result()) +SketchConstraintVertical_15.setName("SketchConstraintVertical_14") +SketchPoint_12 = Sketch_10.addPoint(33.99999999999999, 7.999999999999999) +SketchConstraintCoincidence_116 = Sketch_10.setCoincident(SketchPoint_12.coordinates(), SketchLine_68.endPoint()) +SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_89") +SketchPoint_13 = Sketch_10.addPoint(32, 6) +SketchConstraintCoincidence_117 = Sketch_10.setCoincident(SketchPoint_13.coordinates(), SketchLine_69.startPoint()) +SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_90") +SketchLine_71 = Sketch_10.addLine(33.99999999999999, 7.999999999999999, 34, 6) +SketchLine_71.setName("SketchLine_69") +SketchLine_71.result().setName("SketchLine_69") +SketchLine_71.setAuxiliary(True) +SketchConstraintCoincidence_118 = Sketch_10.setCoincident(SketchLine_68.endPoint(), SketchLine_71.startPoint()) +SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_88") +SketchConstraintCoincidence_119 = Sketch_10.setCoincident(SketchPoint_12.coordinates(), SketchLine_71.startPoint()) +SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_91") +SketchLine_72 = Sketch_10.addLine(34, 6, 32, 6) +SketchLine_72.setName("SketchLine_70") +SketchLine_72.result().setName("SketchLine_70") +SketchLine_72.setAuxiliary(True) +SketchConstraintCoincidence_120 = Sketch_10.setCoincident(SketchLine_71.endPoint(), SketchLine_72.startPoint()) +SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_92") +SketchConstraintCoincidence_121 = Sketch_10.setCoincident(SketchLine_69.startPoint(), SketchLine_72.endPoint()) +SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_122 = Sketch_10.setCoincident(SketchPoint_13.coordinates(), SketchLine_72.endPoint()) +SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_94") +SketchConstraintHorizontal_21 = Sketch_10.setHorizontal(SketchLine_72.result()) +SketchConstraintHorizontal_21.setName("SketchConstraintHorizontal_17") +SketchConstraintVertical_16 = Sketch_10.setVertical(SketchLine_71.result()) +SketchConstraintVertical_16.setName("SketchConstraintVertical_15") +SketchConstraintDistance_31 = Sketch_10.setDistance(SketchLine_71.startPoint(), SketchLine_67.result(), 7) +SketchConstraintDistance_31.setName("SketchConstraintDistance_27") +SketchConstraintDistance_32 = Sketch_10.setDistance(SketchLine_69.startPoint(), SketchLine_71.result(), 2) +SketchConstraintDistance_32.setName("SketchConstraintDistance_28") +SketchConstraintDistance_33 = Sketch_10.setDistance(SketchLine_69.startPoint(), SketchLine_66.result(), 6) +SketchConstraintDistance_33.setName("SketchConstraintDistance_29") +SketchConstraintDistance_34 = Sketch_10.setDistance(SketchLine_71.startPoint(), SketchLine_66.result(), 8) +SketchConstraintDistance_34.setName("SketchConstraintDistance_30") +SketchArc_10 = Sketch_10.addArc(32.50000000000002, 7.500000000000033, 32.50001494562209, 6.000000000000006, 33.99999999999999, 7.499985050625134, False) +SketchArc_10.setName("SketchArc_9") +SketchArc_10.result().setName("SketchArc_9") +SketchArc_10.results()[1].setName("SketchArc_9_2") +SketchConstraintCoincidence_123 = Sketch_10.setCoincident(SketchArc_10.startPoint(), SketchLine_70.startPoint()) +SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_95") +SketchConstraintCoincidence_124 = Sketch_10.setCoincident(SketchArc_10.endPoint(), SketchLine_65.endPoint()) +SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_96") +SketchConstraintTangent_19 = Sketch_10.setTangent(SketchArc_10.results()[1], SketchLine_65.result()) +SketchConstraintTangent_19.setName("SketchConstraintTangent_13") +SketchConstraintTangent_20 = Sketch_10.setTangent(SketchArc_10.results()[1], SketchLine_70.result()) +SketchConstraintTangent_20.setName("SketchConstraintTangent_14") +SketchConstraintCoincidence_125 = Sketch_10.setCoincident(SketchLine_71.startPoint(), SketchLine_65.startPoint()) +SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_97") +SketchConstraintCoincidence_126 = Sketch_10.setCoincident(SketchLine_72.endPoint(), SketchLine_70.endPoint()) +SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_98") +SketchConstraintCoincidence_127 = Sketch_10.setCoincident(SketchLine_65.endPoint(), SketchLine_71.result()) +SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_99") +SketchConstraintCoincidence_128 = Sketch_10.setCoincident(SketchLine_70.startPoint(), SketchLine_72.result()) +SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_100") +SketchConstraintRadius_16 = Sketch_10.setRadius(SketchArc_10.results()[1], 1.5) +SketchConstraintRadius_16.setName("SketchConstraintRadius_11") +model.do() +RevolutionFuse_3 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection("EDGE", "Sketch_9/SketchLine_58"), 360, 0, [model.selection("SOLID", "RevolutionFuse_2_1")]) +RevolutionFuse_4 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_10")], model.selection("EDGE", "Sketch_10/SketchLine_66"), 360, 0, [model.selection("SOLID", "RevolutionFuse_3_1")]) +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchCircle_11_2f"), model.selection("FACE", "Sketch_6/Face-SketchCircle_9_2r"), model.selection("WIRE", "Sketch_6/Face-SketchCircle_10_2f_wire"), model.selection("FACE", "Sketch_6/Face-SketchCircle_12_2f")], model.selection("EDGE", "PartSet/OZ"), "BPS+5", 5, [model.selection("SOLID", "RevolutionFuse_4_1")]) + +# Test reexecution after parameter change +Parameter_BPS.setValue(3) +model.do() +model.testResultsVolumes(ExtrusionCut_3, [154096.039414040715200826525688171]) +Parameter_BPS.setValue(6) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_3, 1) +model.testNbSubShapes(ExtrusionCut_3, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/bushing.py b/test.compatibility/bushing.py new file mode 100644 index 000000000..2ded9d982 --- /dev/null +++ b/test.compatibility/bushing.py @@ -0,0 +1,598 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_H = model.addParameter(Part_1_doc, "H", "12") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(0, 0, 0, -14) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchPoint_1.result()) +SketchLine_2 = Sketch_1.addLine(0, -14, 1, -15) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchLine_3 = Sketch_1.addLine(1, -15, 10, -15) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint()) +SketchLine_4 = Sketch_1.addLine(10, -15, 11, -14) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(11, -14, 11.00000000000001, -12) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint()) +SketchLine_6 = Sketch_1.addLine(11.00000000000001, -12, 19, -12) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(19, -4.999999999999999, 6.999999999999999, -5) +SketchLine_7.setName("SketchLine_8") +SketchLine_7.result().setName("SketchLine_8") +SketchLine_8 = Sketch_1.addLine(6.999999999999999, -5, 4.113248654051876, 0) +SketchLine_8.setName("SketchLine_9") +SketchLine_8.result().setName("SketchLine_9") +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_9") +SketchLine_9 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_9.setName("SketchLine_10") +SketchLine_9.result().setName("SketchLine_10") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_10") +SketchLine_10 = Sketch_1.addLine(4.113248654051876, 0, 0, 0) +SketchLine_10.setName("SketchLine_11") +SketchLine_10.result().setName("SketchLine_11") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_11") +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_10.endPoint()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_12") +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_10.endPoint()) +SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_13") +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_9.startPoint(), SketchLine_10.endPoint()) +SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_14") +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_7.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_7.result(), "H") +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_1.result(), 14) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_1.endPoint(), SketchLine_3.result(), 1) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_2.endPoint(), SketchLine_1.result(), 1) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_4.endPoint(), SketchLine_3.result(), 1) +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_5.result(), 1) +SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_10.result(), SketchLine_8.result(), 120) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_7.result(), 5) +SketchLine_11 = Sketch_1.addLine(19, -12, 20, -11) +SketchLine_11.setName("SketchLine_12") +SketchLine_11.result().setName("SketchLine_12") +SketchLine_12 = Sketch_1.addLine(20, -11, 20, -5.999999999999999) +SketchLine_12.setName("SketchLine_13") +SketchLine_12.result().setName("SketchLine_13") +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint()) +SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_15") +SketchLine_13 = Sketch_1.addLine(20, -5.999999999999999, 19, -4.999999999999999) +SketchLine_13.setName("SketchLine_14") +SketchLine_13.result().setName("SketchLine_14") +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_16") +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_7.startPoint(), SketchLine_13.endPoint()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_17") +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_12.result()) +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_7.startPoint(), SketchLine_12.result(), 1) +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchLine_12.endPoint(), SketchLine_7.result(), 1) +SketchConstraintDistance_8 = Sketch_1.setDistance(SketchLine_11.endPoint(), SketchLine_6.result(), 1) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_11.startPoint(), SketchLine_6.endPoint()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_18") +SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_12.result(), 1) +SketchConstraintDistance_10 = Sketch_1.setDistance(SketchLine_12.result(), SketchLine_1.startPoint(), 20) +SketchConstraintDistance_11 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_12.result(), 10) +SketchConstraintDistance_12 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_6.result(), 12) +model.do() +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchCircle_1 = Sketch_2.addCircle(0, 0, 15) +SketchCircle_1.setAuxiliary(True) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchPoint_2.result()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_19") +SketchLine_14 = Sketch_2.addLine(0, 0, 0, 16.1218227641764) +SketchLine_14.setName("SketchLine_15") +SketchLine_14.result().setName("SketchLine_15") +SketchLine_14.setAuxiliary(True) +SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchPoint_2.result()) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_20") +SketchLine_15 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_15.setName("SketchLine_16") +SketchLine_15.result().setName("SketchLine_16") +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_15.result()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_21") +SketchLine_16 = Sketch_2.addLine(0, 0, -0.2832873010083918, 16.2295186052545) +SketchLine_16.setName("SketchLine_17") +SketchLine_16.result().setName("SketchLine_17") +SketchLine_16.setAuxiliary(True) +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_22") +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_23") +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_24") +SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_15.startPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_25") +SketchLine_17 = Sketch_2.addLine(0, 0, 0.2801569326356649, 16.05017992223931) +SketchLine_17.setName("SketchLine_18") +SketchLine_17.result().setName("SketchLine_18") +SketchLine_17.setAuxiliary(True) +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_26") +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_27") +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_28") +SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_15.startPoint(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_29") +SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchLine_16.startPoint(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_30") +SketchConstraintAngle_2 = Sketch_2.setAngle(SketchLine_15.result(), SketchLine_16.result(), 1) +SketchConstraintAngle_3 = Sketch_2.setAngle(SketchLine_17.result(), SketchLine_14.result(), 1) +SketchCircle_2 = Sketch_2.addCircle(0, 0, 14.5) +SketchCircle_2.setAuxiliary(True) +SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchCircle_2.center()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_31") +SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchCircle_2.center()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_32") +SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchCircle_2.center()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_32 = Sketch_2.setCoincident(SketchLine_15.startPoint(), SketchCircle_2.center()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_34") +SketchConstraintCoincidence_33 = Sketch_2.setCoincident(SketchLine_16.startPoint(), SketchCircle_2.center()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_35") +SketchConstraintCoincidence_34 = Sketch_2.setCoincident(SketchLine_17.startPoint(), SketchCircle_2.center()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_36") +SketchConstraintRadius_1 = Sketch_2.setRadius(SketchCircle_2.results()[1], 14.5) +SketchConstraintRadius_1.setName("SketchConstraintRadius_2") +SketchPoint_3 = Sketch_2.addPoint(-0.2530598933406104, 14.49779157976767) +SketchPoint_3.setAuxiliary(True) +SketchConstraintCoincidence_35 = Sketch_2.setCoincident(SketchPoint_3.coordinates(), SketchCircle_2.results()[1]) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_37") +SketchPoint_4 = Sketch_2.addPoint(0.2530598933406125, 14.49779157976767) +SketchPoint_4.setAuxiliary(True) +SketchConstraintCoincidence_36 = Sketch_2.setCoincident(SketchPoint_4.coordinates(), SketchCircle_2.results()[1]) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_38") +SketchPoint_5 = Sketch_2.addPoint(0, 15) +SketchPoint_5.setAuxiliary(True) +SketchConstraintCoincidence_37 = Sketch_2.setCoincident(SketchPoint_5.coordinates(), SketchCircle_1.results()[1]) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_39") +SketchConstraintCoincidence_38 = Sketch_2.setCoincident(SketchPoint_5.coordinates(), SketchLine_14.result()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_40") +SketchConstraintCoincidence_39 = Sketch_2.setCoincident(SketchPoint_3.coordinates(), SketchLine_16.result()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_41") +SketchConstraintCoincidence_40 = Sketch_2.setCoincident(SketchPoint_4.coordinates(), SketchLine_17.result()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_42") +SketchPoint_6 = Sketch_2.addPoint(-0.007888159418852939, 14.98416933181028) +SketchPoint_7 = Sketch_2.addPoint(0.008097225251087385, 14.98393070253871) +SketchArc_1 = Sketch_2.addArc(0, 14.9770475280675, -0.007888159418852939, 14.98416933181028, 0.008097225251087385, 14.98393070253871, True) +SketchConstraintCoincidence_41 = Sketch_2.setCoincident(SketchArc_1.center(), SketchLine_15.result()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_50") +SketchConstraintCoincidence_42 = Sketch_2.setCoincident(SketchPoint_6.coordinates(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_51") +SketchConstraintCoincidence_43 = Sketch_2.setCoincident(SketchPoint_7.coordinates(), SketchArc_1.endPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_52") +SketchLine_18 = Sketch_2.addLine(-0.2530598933406097, 14.49779157976767, -0.007888159418852939, 14.98416933181028) +SketchLine_18.setName("SketchLine_382") +SketchLine_18.result().setName("SketchLine_382") +SketchConstraintCoincidence_44 = Sketch_2.setCoincident(SketchPoint_3.coordinates(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_45 = Sketch_2.setCoincident(SketchPoint_6.coordinates(), SketchLine_18.endPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_46 = Sketch_2.setCoincident(SketchArc_1.startPoint(), SketchLine_18.endPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_47") +SketchLine_19 = Sketch_2.addLine(0.008097225251087385, 14.98393070253871, 0.2530598933406125, 14.49779157976767) +SketchLine_19.setName("SketchLine_383") +SketchLine_19.result().setName("SketchLine_383") +SketchConstraintCoincidence_47 = Sketch_2.setCoincident(SketchPoint_7.coordinates(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_48 = Sketch_2.setCoincident(SketchArc_1.endPoint(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_49") +SketchConstraintCoincidence_49 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchPoint_4.coordinates()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_54") +SketchMultiRotation_1_objects = [SketchLine_18.result(), SketchArc_1.results()[1], SketchLine_19.result()] +SketchMultiRotation_1 = Sketch_2.addRotation(SketchMultiRotation_1_objects, SketchPoint_2.coordinates(), 2, 180) +[SketchLine_20, SketchLine_21, SketchLine_22, SketchLine_23, SketchLine_24, SketchLine_25, SketchLine_26, SketchLine_27, SketchLine_28, SketchLine_29, SketchLine_30, SketchLine_31, SketchLine_32, SketchLine_33, SketchLine_34, SketchLine_35, SketchLine_36, SketchLine_37, SketchLine_38, SketchLine_39, SketchLine_40, SketchLine_41, SketchLine_42, SketchLine_43, SketchLine_44, SketchLine_45, SketchLine_46, SketchLine_47, SketchLine_48, SketchLine_49, SketchLine_50, SketchLine_51, SketchLine_52, SketchLine_53, SketchLine_54, SketchLine_55, SketchLine_56, SketchLine_57, SketchLine_58, SketchLine_59, SketchLine_60, SketchLine_61, SketchLine_62, SketchLine_63, SketchLine_64, SketchLine_65, SketchLine_66, SketchLine_67, SketchLine_68, SketchLine_69, SketchLine_70, SketchLine_71, SketchLine_72, SketchLine_73, SketchLine_74, SketchLine_75, SketchLine_76, SketchLine_77, SketchLine_78, SketchLine_79, SketchLine_80, SketchLine_81, SketchLine_82, SketchLine_83, SketchLine_84, SketchLine_85, SketchLine_86, SketchLine_87, SketchLine_88, SketchLine_89, SketchLine_90, SketchLine_91, SketchLine_92, SketchLine_93, SketchLine_94, SketchLine_95, SketchLine_96, SketchLine_97, SketchLine_98, SketchLine_99, SketchLine_100, SketchLine_101, SketchLine_102, SketchLine_103, SketchLine_104, SketchLine_105, SketchLine_106, SketchLine_107, SketchLine_108, SketchLine_109, SketchLine_110, SketchLine_111, SketchLine_112, SketchLine_113, SketchLine_114, SketchLine_115, SketchLine_116, SketchLine_117, SketchLine_118, SketchLine_119, SketchLine_120, SketchLine_121, SketchLine_122, SketchLine_123, SketchLine_124, SketchLine_125, SketchLine_126, SketchLine_127, SketchLine_128, SketchLine_129, SketchLine_130, SketchLine_131, SketchLine_132, SketchLine_133, SketchLine_134, SketchLine_135, SketchLine_136, SketchLine_137, SketchLine_138, SketchLine_139, SketchLine_140, SketchLine_141, SketchLine_142, SketchLine_143, SketchLine_144, SketchLine_145, SketchLine_146, SketchLine_147, SketchLine_148, SketchLine_149, SketchLine_150, SketchLine_151, SketchLine_152, SketchLine_153, SketchLine_154, SketchLine_155, SketchLine_156, SketchLine_157, SketchLine_158, SketchLine_159, SketchLine_160, SketchLine_161, SketchLine_162, SketchLine_163, SketchLine_164, SketchLine_165, SketchLine_166, SketchLine_167, SketchLine_168, SketchLine_169, SketchLine_170, SketchLine_171, SketchLine_172, SketchLine_173, SketchLine_174, SketchLine_175, SketchLine_176, SketchLine_177, SketchLine_178, SketchLine_179, SketchLine_180, SketchLine_181, SketchLine_182, SketchLine_183, SketchLine_184, SketchLine_185, SketchLine_186, SketchLine_187, SketchLine_188, SketchLine_189, SketchLine_190, SketchLine_191, SketchLine_192, SketchLine_193, SketchLine_194, SketchLine_195, SketchLine_196, SketchLine_197, SketchLine_198, SketchArc_2, SketchArc_3, SketchArc_4, SketchArc_5, SketchArc_6, SketchArc_7, SketchArc_8, SketchArc_9, SketchArc_10, SketchArc_11, SketchArc_12, SketchArc_13, SketchArc_14, SketchArc_15, SketchArc_16, SketchArc_17, SketchArc_18, SketchArc_19, SketchArc_20, SketchArc_21, SketchArc_22, SketchArc_23, SketchArc_24, SketchArc_25, SketchArc_26, SketchArc_27, SketchArc_28, SketchArc_29, SketchArc_30, SketchArc_31, SketchArc_32, SketchArc_33, SketchArc_34, SketchArc_35, SketchArc_36, SketchArc_37, SketchArc_38, SketchArc_39, SketchArc_40, SketchArc_41, SketchArc_42, SketchArc_43, SketchArc_44, SketchArc_45, SketchArc_46, SketchArc_47, SketchArc_48, SketchArc_49, SketchArc_50, SketchArc_51, SketchArc_52, SketchArc_53, SketchArc_54, SketchArc_55, SketchArc_56, SketchArc_57, SketchArc_58, SketchArc_59, SketchArc_60, SketchArc_61, SketchArc_62, SketchArc_63, SketchArc_64, SketchArc_65, SketchArc_66, SketchArc_67, SketchArc_68, SketchArc_69, SketchArc_70, SketchArc_71, SketchArc_72, SketchArc_73, SketchArc_74, SketchArc_75, SketchArc_76, SketchArc_77, SketchArc_78, SketchArc_79, SketchArc_80, SketchArc_81, SketchArc_82, SketchArc_83, SketchArc_84, SketchArc_85, SketchArc_86, SketchArc_87, SketchArc_88, SketchArc_89, SketchArc_90, SketchArc_91, SketchArc_92, SketchArc_93, SketchArc_94, SketchArc_95, SketchArc_96, SketchArc_97, SketchArc_98, SketchArc_99, SketchArc_100, SketchArc_101, SketchArc_102, SketchArc_103, SketchArc_104, SketchArc_105, SketchArc_106, SketchArc_107, SketchArc_108, SketchArc_109, SketchArc_110, SketchArc_111, SketchArc_112, SketchArc_113, SketchArc_114, SketchArc_115, SketchArc_116, SketchArc_117, SketchArc_118, SketchArc_119, SketchArc_120, SketchArc_121, SketchArc_122, SketchArc_123, SketchArc_124, SketchArc_125, SketchArc_126, SketchArc_127, SketchArc_128, SketchArc_129, SketchArc_130, SketchArc_131, SketchArc_132, SketchArc_133, SketchArc_134, SketchArc_135, SketchArc_136, SketchArc_137, SketchArc_138, SketchArc_139, SketchArc_140, SketchArc_141, SketchArc_142, SketchArc_143, SketchArc_144, SketchArc_145, SketchArc_146, SketchArc_147, SketchArc_148, SketchArc_149, SketchArc_150, SketchArc_151, SketchArc_152, SketchArc_153, SketchArc_154, SketchArc_155, SketchArc_156, SketchArc_157, SketchArc_158, SketchArc_159, SketchArc_160, SketchArc_161, SketchArc_162, SketchArc_163, SketchArc_164, SketchArc_165, SketchArc_166, SketchArc_167, SketchArc_168, SketchArc_169, SketchArc_170, SketchArc_171, SketchArc_172, SketchArc_173, SketchArc_174, SketchArc_175, SketchArc_176, SketchArc_177, SketchArc_178, SketchArc_179, SketchArc_180, SketchLine_199, SketchLine_200, SketchLine_201, SketchLine_202, SketchLine_203, SketchLine_204, SketchLine_205, SketchLine_206, SketchLine_207, SketchLine_208, SketchLine_209, SketchLine_210, SketchLine_211, SketchLine_212, SketchLine_213, SketchLine_214, SketchLine_215, SketchLine_216, SketchLine_217, SketchLine_218, SketchLine_219, SketchLine_220, SketchLine_221, SketchLine_222, SketchLine_223, SketchLine_224, SketchLine_225, SketchLine_226, SketchLine_227, SketchLine_228, SketchLine_229, SketchLine_230, SketchLine_231, SketchLine_232, SketchLine_233, SketchLine_234, SketchLine_235, SketchLine_236, SketchLine_237, SketchLine_238, SketchLine_239, SketchLine_240, SketchLine_241, SketchLine_242, SketchLine_243, SketchLine_244, SketchLine_245, SketchLine_246, SketchLine_247, SketchLine_248, SketchLine_249, SketchLine_250, SketchLine_251, SketchLine_252, SketchLine_253, SketchLine_254, SketchLine_255, SketchLine_256, SketchLine_257, SketchLine_258, SketchLine_259, SketchLine_260, SketchLine_261, SketchLine_262, SketchLine_263, SketchLine_264, SketchLine_265, SketchLine_266, SketchLine_267, SketchLine_268, SketchLine_269, SketchLine_270, SketchLine_271, SketchLine_272, SketchLine_273, SketchLine_274, SketchLine_275, SketchLine_276, SketchLine_277, SketchLine_278, SketchLine_279, SketchLine_280, SketchLine_281, SketchLine_282, SketchLine_283, SketchLine_284, SketchLine_285, SketchLine_286, SketchLine_287, SketchLine_288, SketchLine_289, SketchLine_290, SketchLine_291, SketchLine_292, SketchLine_293, SketchLine_294, SketchLine_295, SketchLine_296, SketchLine_297, SketchLine_298, SketchLine_299, SketchLine_300, SketchLine_301, SketchLine_302, SketchLine_303, SketchLine_304, SketchLine_305, SketchLine_306, SketchLine_307, SketchLine_308, SketchLine_309, SketchLine_310, SketchLine_311, SketchLine_312, SketchLine_313, SketchLine_314, SketchLine_315, SketchLine_316, SketchLine_317, SketchLine_318, SketchLine_319, SketchLine_320, SketchLine_321, SketchLine_322, SketchLine_323, SketchLine_324, SketchLine_325, SketchLine_326, SketchLine_327, SketchLine_328, SketchLine_329, SketchLine_330, SketchLine_331, SketchLine_332, SketchLine_333, SketchLine_334, SketchLine_335, SketchLine_336, SketchLine_337, SketchLine_338, SketchLine_339, SketchLine_340, SketchLine_341, SketchLine_342, SketchLine_343, SketchLine_344, SketchLine_345, SketchLine_346, SketchLine_347, SketchLine_348, SketchLine_349, SketchLine_350, SketchLine_351, SketchLine_352, SketchLine_353, SketchLine_354, SketchLine_355, SketchLine_356, SketchLine_357, SketchLine_358, SketchLine_359, SketchLine_360, SketchLine_361, SketchLine_362, SketchLine_363, SketchLine_364, SketchLine_365, SketchLine_366, SketchLine_367, SketchLine_368, SketchLine_369, SketchLine_370, SketchLine_371, SketchLine_372, SketchLine_373, SketchLine_374, SketchLine_375, SketchLine_376, SketchLine_377] = SketchMultiRotation_1.rotated() +SketchLine_199.setName("SketchLine_21") +SketchLine_199.result().setName("SketchLine_21") +SketchLine_198.setName("SketchLine_199") +SketchLine_198.result().setName("SketchLine_199") +SketchLine_197.setName("SketchLine_198") +SketchLine_197.result().setName("SketchLine_198") +SketchLine_196.setName("SketchLine_197") +SketchLine_196.result().setName("SketchLine_197") +SketchLine_195.setName("SketchLine_196") +SketchLine_195.result().setName("SketchLine_196") +SketchLine_194.setName("SketchLine_195") +SketchLine_194.result().setName("SketchLine_195") +SketchLine_193.setName("SketchLine_194") +SketchLine_193.result().setName("SketchLine_194") +SketchLine_192.setName("SketchLine_193") +SketchLine_192.result().setName("SketchLine_193") +SketchLine_191.setName("SketchLine_192") +SketchLine_191.result().setName("SketchLine_192") +SketchLine_190.setName("SketchLine_191") +SketchLine_190.result().setName("SketchLine_191") +SketchLine_189.setName("SketchLine_190") +SketchLine_189.result().setName("SketchLine_190") +SketchLine_188.setName("SketchLine_189") +SketchLine_188.result().setName("SketchLine_189") +SketchLine_187.setName("SketchLine_188") +SketchLine_187.result().setName("SketchLine_188") +SketchLine_186.setName("SketchLine_187") +SketchLine_186.result().setName("SketchLine_187") +SketchLine_185.setName("SketchLine_186") +SketchLine_185.result().setName("SketchLine_186") +SketchLine_184.setName("SketchLine_185") +SketchLine_184.result().setName("SketchLine_185") +SketchLine_183.setName("SketchLine_184") +SketchLine_183.result().setName("SketchLine_184") +SketchLine_182.setName("SketchLine_183") +SketchLine_182.result().setName("SketchLine_183") +SketchLine_181.setName("SketchLine_182") +SketchLine_181.result().setName("SketchLine_182") +SketchLine_180.setName("SketchLine_181") +SketchLine_180.result().setName("SketchLine_181") +SketchLine_179.setName("SketchLine_180") +SketchLine_179.result().setName("SketchLine_180") +SketchLine_178.setName("SketchLine_179") +SketchLine_178.result().setName("SketchLine_179") +SketchLine_177.setName("SketchLine_178") +SketchLine_177.result().setName("SketchLine_178") +SketchLine_176.setName("SketchLine_177") +SketchLine_176.result().setName("SketchLine_177") +SketchLine_175.setName("SketchLine_176") +SketchLine_175.result().setName("SketchLine_176") +SketchLine_174.setName("SketchLine_175") +SketchLine_174.result().setName("SketchLine_175") +SketchLine_173.setName("SketchLine_174") +SketchLine_173.result().setName("SketchLine_174") +SketchLine_172.setName("SketchLine_173") +SketchLine_172.result().setName("SketchLine_173") +SketchLine_171.setName("SketchLine_172") +SketchLine_171.result().setName("SketchLine_172") +SketchLine_170.setName("SketchLine_171") +SketchLine_170.result().setName("SketchLine_171") +SketchLine_169.setName("SketchLine_170") +SketchLine_169.result().setName("SketchLine_170") +SketchLine_168.setName("SketchLine_169") +SketchLine_168.result().setName("SketchLine_169") +SketchLine_167.setName("SketchLine_168") +SketchLine_167.result().setName("SketchLine_168") +SketchLine_166.setName("SketchLine_167") +SketchLine_166.result().setName("SketchLine_167") +SketchLine_165.setName("SketchLine_166") +SketchLine_165.result().setName("SketchLine_166") +SketchLine_164.setName("SketchLine_165") +SketchLine_164.result().setName("SketchLine_165") +SketchLine_163.setName("SketchLine_164") +SketchLine_163.result().setName("SketchLine_164") +SketchLine_162.setName("SketchLine_163") +SketchLine_162.result().setName("SketchLine_163") +SketchLine_161.setName("SketchLine_162") +SketchLine_161.result().setName("SketchLine_162") +SketchLine_160.setName("SketchLine_161") +SketchLine_160.result().setName("SketchLine_161") +SketchLine_159.setName("SketchLine_160") +SketchLine_159.result().setName("SketchLine_160") +SketchLine_158.setName("SketchLine_159") +SketchLine_158.result().setName("SketchLine_159") +SketchLine_157.setName("SketchLine_158") +SketchLine_157.result().setName("SketchLine_158") +SketchLine_156.setName("SketchLine_157") +SketchLine_156.result().setName("SketchLine_157") +SketchLine_155.setName("SketchLine_156") +SketchLine_155.result().setName("SketchLine_156") +SketchLine_154.setName("SketchLine_155") +SketchLine_154.result().setName("SketchLine_155") +SketchLine_153.setName("SketchLine_154") +SketchLine_153.result().setName("SketchLine_154") +SketchLine_152.setName("SketchLine_153") +SketchLine_152.result().setName("SketchLine_153") +SketchLine_151.setName("SketchLine_152") +SketchLine_151.result().setName("SketchLine_152") +SketchLine_150.setName("SketchLine_151") +SketchLine_150.result().setName("SketchLine_151") +SketchLine_149.setName("SketchLine_150") +SketchLine_149.result().setName("SketchLine_150") +SketchLine_148.setName("SketchLine_149") +SketchLine_148.result().setName("SketchLine_149") +SketchLine_147.setName("SketchLine_148") +SketchLine_147.result().setName("SketchLine_148") +SketchLine_146.setName("SketchLine_147") +SketchLine_146.result().setName("SketchLine_147") +SketchLine_145.setName("SketchLine_146") +SketchLine_145.result().setName("SketchLine_146") +SketchLine_144.setName("SketchLine_145") +SketchLine_144.result().setName("SketchLine_145") +SketchLine_143.setName("SketchLine_144") +SketchLine_143.result().setName("SketchLine_144") +SketchLine_142.setName("SketchLine_143") +SketchLine_142.result().setName("SketchLine_143") +SketchLine_141.setName("SketchLine_142") +SketchLine_141.result().setName("SketchLine_142") +SketchLine_140.setName("SketchLine_141") +SketchLine_140.result().setName("SketchLine_141") +SketchLine_139.setName("SketchLine_140") +SketchLine_139.result().setName("SketchLine_140") +SketchLine_138.setName("SketchLine_139") +SketchLine_138.result().setName("SketchLine_139") +SketchLine_137.setName("SketchLine_138") +SketchLine_137.result().setName("SketchLine_138") +SketchLine_136.setName("SketchLine_137") +SketchLine_136.result().setName("SketchLine_137") +SketchLine_135.setName("SketchLine_136") +SketchLine_135.result().setName("SketchLine_136") +SketchLine_134.setName("SketchLine_135") +SketchLine_134.result().setName("SketchLine_135") +SketchLine_133.setName("SketchLine_134") +SketchLine_133.result().setName("SketchLine_134") +SketchLine_132.setName("SketchLine_133") +SketchLine_132.result().setName("SketchLine_133") +SketchLine_131.setName("SketchLine_132") +SketchLine_131.result().setName("SketchLine_132") +SketchLine_130.setName("SketchLine_131") +SketchLine_130.result().setName("SketchLine_131") +SketchLine_129.setName("SketchLine_130") +SketchLine_129.result().setName("SketchLine_130") +SketchLine_128.setName("SketchLine_129") +SketchLine_128.result().setName("SketchLine_129") +SketchLine_127.setName("SketchLine_128") +SketchLine_127.result().setName("SketchLine_128") +SketchLine_126.setName("SketchLine_127") +SketchLine_126.result().setName("SketchLine_127") +SketchLine_125.setName("SketchLine_126") +SketchLine_125.result().setName("SketchLine_126") +SketchLine_124.setName("SketchLine_125") +SketchLine_124.result().setName("SketchLine_125") +SketchLine_123.setName("SketchLine_124") +SketchLine_123.result().setName("SketchLine_124") +SketchLine_122.setName("SketchLine_123") +SketchLine_122.result().setName("SketchLine_123") +SketchLine_121.setName("SketchLine_122") +SketchLine_121.result().setName("SketchLine_122") +SketchLine_120.setName("SketchLine_121") +SketchLine_120.result().setName("SketchLine_121") +SketchLine_119.setName("SketchLine_120") +SketchLine_119.result().setName("SketchLine_120") +SketchLine_118.setName("SketchLine_119") +SketchLine_118.result().setName("SketchLine_119") +SketchLine_117.setName("SketchLine_118") +SketchLine_117.result().setName("SketchLine_118") +SketchLine_116.setName("SketchLine_117") +SketchLine_116.result().setName("SketchLine_117") +SketchLine_115.setName("SketchLine_116") +SketchLine_115.result().setName("SketchLine_116") +SketchLine_114.setName("SketchLine_115") +SketchLine_114.result().setName("SketchLine_115") +SketchLine_113.setName("SketchLine_114") +SketchLine_113.result().setName("SketchLine_114") +SketchLine_112.setName("SketchLine_113") +SketchLine_112.result().setName("SketchLine_113") +SketchLine_111.setName("SketchLine_112") +SketchLine_111.result().setName("SketchLine_112") +SketchLine_110.setName("SketchLine_111") +SketchLine_110.result().setName("SketchLine_111") +SketchLine_109.setName("SketchLine_110") +SketchLine_109.result().setName("SketchLine_110") +SketchLine_108.setName("SketchLine_109") +SketchLine_108.result().setName("SketchLine_109") +SketchLine_107.setName("SketchLine_108") +SketchLine_107.result().setName("SketchLine_108") +SketchLine_106.setName("SketchLine_107") +SketchLine_106.result().setName("SketchLine_107") +SketchLine_105.setName("SketchLine_106") +SketchLine_105.result().setName("SketchLine_106") +SketchLine_104.setName("SketchLine_105") +SketchLine_104.result().setName("SketchLine_105") +SketchLine_103.setName("SketchLine_104") +SketchLine_103.result().setName("SketchLine_104") +SketchLine_102.setName("SketchLine_103") +SketchLine_102.result().setName("SketchLine_103") +SketchLine_101.setName("SketchLine_102") +SketchLine_101.result().setName("SketchLine_102") +SketchLine_100.setName("SketchLine_101") +SketchLine_100.result().setName("SketchLine_101") +SketchLine_99.setName("SketchLine_100") +SketchLine_99.result().setName("SketchLine_100") +SketchLine_98.setName("SketchLine_99") +SketchLine_98.result().setName("SketchLine_99") +SketchLine_97.setName("SketchLine_98") +SketchLine_97.result().setName("SketchLine_98") +SketchLine_96.setName("SketchLine_97") +SketchLine_96.result().setName("SketchLine_97") +SketchLine_95.setName("SketchLine_96") +SketchLine_95.result().setName("SketchLine_96") +SketchLine_94.setName("SketchLine_95") +SketchLine_94.result().setName("SketchLine_95") +SketchLine_93.setName("SketchLine_94") +SketchLine_93.result().setName("SketchLine_94") +SketchLine_92.setName("SketchLine_93") +SketchLine_92.result().setName("SketchLine_93") +SketchLine_91.setName("SketchLine_92") +SketchLine_91.result().setName("SketchLine_92") +SketchLine_90.setName("SketchLine_91") +SketchLine_90.result().setName("SketchLine_91") +SketchLine_89.setName("SketchLine_90") +SketchLine_89.result().setName("SketchLine_90") +SketchLine_88.setName("SketchLine_89") +SketchLine_88.result().setName("SketchLine_89") +SketchLine_87.setName("SketchLine_88") +SketchLine_87.result().setName("SketchLine_88") +SketchLine_86.setName("SketchLine_87") +SketchLine_86.result().setName("SketchLine_87") +SketchLine_85.setName("SketchLine_86") +SketchLine_85.result().setName("SketchLine_86") +SketchLine_84.setName("SketchLine_85") +SketchLine_84.result().setName("SketchLine_85") +SketchLine_83.setName("SketchLine_84") +SketchLine_83.result().setName("SketchLine_84") +SketchLine_82.setName("SketchLine_83") +SketchLine_82.result().setName("SketchLine_83") +SketchLine_81.setName("SketchLine_82") +SketchLine_81.result().setName("SketchLine_82") +SketchLine_80.setName("SketchLine_81") +SketchLine_80.result().setName("SketchLine_81") +SketchLine_79.setName("SketchLine_80") +SketchLine_79.result().setName("SketchLine_80") +SketchLine_78.setName("SketchLine_79") +SketchLine_78.result().setName("SketchLine_79") +SketchLine_77.setName("SketchLine_78") +SketchLine_77.result().setName("SketchLine_78") +SketchLine_76.setName("SketchLine_77") +SketchLine_76.result().setName("SketchLine_77") +SketchLine_75.setName("SketchLine_76") +SketchLine_75.result().setName("SketchLine_76") +SketchLine_74.setName("SketchLine_75") +SketchLine_74.result().setName("SketchLine_75") +SketchLine_73.setName("SketchLine_74") +SketchLine_73.result().setName("SketchLine_74") +SketchLine_72.setName("SketchLine_73") +SketchLine_72.result().setName("SketchLine_73") +SketchLine_71.setName("SketchLine_72") +SketchLine_71.result().setName("SketchLine_72") +SketchLine_70.setName("SketchLine_71") +SketchLine_70.result().setName("SketchLine_71") +SketchLine_69.setName("SketchLine_70") +SketchLine_69.result().setName("SketchLine_70") +SketchLine_68.setName("SketchLine_69") +SketchLine_68.result().setName("SketchLine_69") +SketchLine_67.setName("SketchLine_68") +SketchLine_67.result().setName("SketchLine_68") +SketchLine_66.setName("SketchLine_67") +SketchLine_66.result().setName("SketchLine_67") +SketchLine_65.setName("SketchLine_66") +SketchLine_65.result().setName("SketchLine_66") +SketchLine_64.setName("SketchLine_65") +SketchLine_64.result().setName("SketchLine_65") +SketchLine_63.setName("SketchLine_64") +SketchLine_63.result().setName("SketchLine_64") +SketchLine_62.setName("SketchLine_63") +SketchLine_62.result().setName("SketchLine_63") +SketchLine_61.setName("SketchLine_62") +SketchLine_61.result().setName("SketchLine_62") +SketchLine_60.setName("SketchLine_61") +SketchLine_60.result().setName("SketchLine_61") +SketchLine_59.setName("SketchLine_60") +SketchLine_59.result().setName("SketchLine_60") +SketchLine_58.setName("SketchLine_59") +SketchLine_58.result().setName("SketchLine_59") +SketchLine_57.setName("SketchLine_58") +SketchLine_57.result().setName("SketchLine_58") +SketchLine_56.setName("SketchLine_57") +SketchLine_56.result().setName("SketchLine_57") +SketchLine_55.setName("SketchLine_56") +SketchLine_55.result().setName("SketchLine_56") +SketchLine_54.setName("SketchLine_55") +SketchLine_54.result().setName("SketchLine_55") +SketchLine_53.setName("SketchLine_54") +SketchLine_53.result().setName("SketchLine_54") +SketchLine_52.setName("SketchLine_53") +SketchLine_52.result().setName("SketchLine_53") +SketchLine_51.setName("SketchLine_52") +SketchLine_51.result().setName("SketchLine_52") +SketchLine_50.setName("SketchLine_51") +SketchLine_50.result().setName("SketchLine_51") +SketchLine_49.setName("SketchLine_50") +SketchLine_49.result().setName("SketchLine_50") +SketchLine_48.setName("SketchLine_49") +SketchLine_48.result().setName("SketchLine_49") +SketchLine_47.setName("SketchLine_48") +SketchLine_47.result().setName("SketchLine_48") +SketchLine_46.setName("SketchLine_47") +SketchLine_46.result().setName("SketchLine_47") +SketchLine_45.setName("SketchLine_46") +SketchLine_45.result().setName("SketchLine_46") +SketchLine_44.setName("SketchLine_45") +SketchLine_44.result().setName("SketchLine_45") +SketchLine_43.setName("SketchLine_44") +SketchLine_43.result().setName("SketchLine_44") +SketchLine_42.setName("SketchLine_43") +SketchLine_42.result().setName("SketchLine_43") +SketchLine_41.setName("SketchLine_42") +SketchLine_41.result().setName("SketchLine_42") +SketchLine_40.setName("SketchLine_41") +SketchLine_40.result().setName("SketchLine_41") +SketchLine_39.setName("SketchLine_40") +SketchLine_39.result().setName("SketchLine_40") +SketchLine_38.setName("SketchLine_39") +SketchLine_38.result().setName("SketchLine_39") +SketchLine_37.setName("SketchLine_38") +SketchLine_37.result().setName("SketchLine_38") +SketchLine_36.setName("SketchLine_37") +SketchLine_36.result().setName("SketchLine_37") +SketchLine_35.setName("SketchLine_36") +SketchLine_35.result().setName("SketchLine_36") +SketchLine_34.setName("SketchLine_35") +SketchLine_34.result().setName("SketchLine_35") +SketchLine_33.setName("SketchLine_34") +SketchLine_33.result().setName("SketchLine_34") +SketchLine_32.setName("SketchLine_33") +SketchLine_32.result().setName("SketchLine_33") +SketchLine_31.setName("SketchLine_32") +SketchLine_31.result().setName("SketchLine_32") +SketchLine_30.setName("SketchLine_31") +SketchLine_30.result().setName("SketchLine_31") +SketchLine_29.setName("SketchLine_30") +SketchLine_29.result().setName("SketchLine_30") +SketchLine_28.setName("SketchLine_29") +SketchLine_28.result().setName("SketchLine_29") +SketchLine_27.setName("SketchLine_28") +SketchLine_27.result().setName("SketchLine_28") +SketchLine_26.setName("SketchLine_27") +SketchLine_26.result().setName("SketchLine_27") +SketchLine_25.setName("SketchLine_26") +SketchLine_25.result().setName("SketchLine_26") +SketchLine_24.setName("SketchLine_25") +SketchLine_24.result().setName("SketchLine_25") +SketchLine_23.setName("SketchLine_24") +SketchLine_23.result().setName("SketchLine_24") +SketchLine_22.setName("SketchLine_23") +SketchLine_22.result().setName("SketchLine_23") +SketchLine_21.setName("SketchLine_22") +SketchLine_21.result().setName("SketchLine_22") +SketchCircle_3 = Sketch_2.addCircle(0, 0, 19.22880100399138) +SketchConstraintCoincidence_50 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchPoint_2.result()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_53") +model.do() +Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchCircle_4 = Sketch_3.addCircle(15, 0, 1) +SketchConstraintRadius_2 = Sketch_3.setRadius(SketchCircle_4.results()[1], 1) +SketchConstraintRadius_2.setName("SketchConstraintRadius_3") +SketchLine_378 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintCoincidence_51 = Sketch_3.setCoincident(SketchCircle_4.center(), SketchLine_378.result()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_55") +SketchLine_379 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintDistance_13 = Sketch_3.setDistance(SketchCircle_4.center(), SketchLine_379.result(), 15) +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_2f-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_6f-SketchLine_12f-SketchLine_13f-SketchLine_14f-SketchLine_8f-SketchLine_9f-SketchLine_11f")], model.selection("EDGE", "PartSet/OX"), 360, 0) +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_3_2f-SketchLine_383f-SketchLine_199f-SketchArc_180_2r-SketchLine_377f-SketchLine_198f-SketchArc_179_2r-SketchLine_376f-SketchLine_197f-SketchArc_178_2r-SketchLine_375f-SketchLine_196f-SketchArc_177_2r-SketchLine_374f-SketchLine_195f-SketchArc_176_2r-SketchLine_373f-SketchLine_194f-SketchArc_175_2r-SketchLine_372f-SketchLine_193f-SketchArc_174_2r-SketchLine_371f-SketchLine_192f-SketchArc_173_2r-SketchLine_370f-SketchLine_191f-SketchArc_172_2r-SketchLine_369f-SketchLine_190f-SketchArc_171_2r-SketchLine_368f-SketchLine_189f-SketchArc_170_2r-SketchLine_367f-SketchLine_188f-SketchArc_169_2r-SketchLine_366f-SketchLine_187f-SketchArc_168_2r-SketchLine_365f-SketchLine_186f-SketchArc_167_2r-SketchLine_364f-SketchLine_185f-SketchArc_166_2r-SketchLine_363f-SketchLine_184f-SketchArc_165_2r-SketchLine_362f-SketchLine_183f-SketchArc_164_2r-SketchLine_361f-SketchLine_182f-SketchArc_163_2r-SketchLine_360f-SketchLine_181f-SketchArc_162_2r-SketchLine_359f-SketchLine_180f-SketchArc_161_2r-SketchLine_358f-SketchLine_179f-SketchArc_160_2r-SketchLine_357f-SketchLine_178f-SketchArc_159_2r-SketchLine_356f-SketchLine_177f-SketchArc_158_2r-SketchLine_355f-SketchLine_176f-SketchArc_157_2r-SketchLine_354f-SketchLine_175f-SketchArc_156_2r-SketchLine_353f-SketchLine_174f-SketchArc_155_2r-SketchLine_352f-SketchLine_173f-SketchArc_154_2r-SketchLine_351f-SketchLine_172f-SketchArc_153_2r-SketchLine_350f-SketchLine_171f-SketchArc_152_2r-SketchLine_349f-SketchLine_170f-SketchArc_151_2r-SketchLine_348f-SketchLine_169f-SketchArc_150_2r-SketchLine_347f-SketchLine_168f-SketchArc_149_2r-SketchLine_346f-SketchLine_167f-SketchArc_148_2r-SketchLine_345f-SketchLine_166f-SketchArc_147_2r-SketchLine_344f-SketchLine_165f-SketchArc_146_2r-SketchLine_343f-SketchLine_164f-SketchArc_145_2r-SketchLine_342f-SketchLine_163f-SketchArc_144_2r-SketchLine_341f-SketchLine_162f-SketchArc_143_2r-SketchLine_340f-SketchLine_161f-SketchArc_142_2r-SketchLine_339f-SketchLine_160f-SketchArc_141_2r-SketchLine_338f-SketchLine_159f-SketchArc_140_2r-SketchLine_337f-SketchLine_158f-SketchArc_139_2r-SketchLine_336f-SketchLine_157f-SketchArc_138_2r-SketchLine_335f-SketchLine_156f-SketchArc_137_2r-SketchLine_334f-SketchLine_155f-SketchArc_136_2r-SketchLine_333f-SketchLine_154f-SketchArc_135_2r-SketchLine_332f-SketchLine_153f-SketchArc_134_2r-SketchLine_331f-SketchLine_152f-SketchArc_133_2r-SketchLine_330f-SketchLine_151f-SketchArc_132_2r-SketchLine_329f-SketchLine_150f-SketchArc_131_2r-SketchLine_328f-SketchLine_149f-SketchArc_130_2r-SketchLine_327f-SketchLine_148f-SketchArc_129_2r-SketchLine_326f-SketchLine_147f-SketchArc_128_2r-SketchLine_325f-SketchLine_146f-SketchArc_127_2r-SketchLine_324f-SketchLine_145f-SketchArc_126_2r-SketchLine_323f-SketchLine_144f-SketchArc_125_2r-SketchLine_322f-SketchLine_143f-SketchArc_124_2r-SketchLine_321f-SketchLine_142f-SketchArc_123_2r-SketchLine_320f-SketchLine_141f-SketchArc_122_2r-SketchLine_319f-SketchLine_140f-SketchArc_121_2r-SketchLine_318f-SketchLine_139f-SketchArc_120_2r-SketchLine_317f-SketchLine_138f-SketchArc_119_2r-SketchLine_316f-SketchLine_137f-SketchArc_118_2r-SketchLine_315f-SketchLine_136f-SketchArc_117_2r-SketchLine_314f-SketchLine_135f-SketchArc_116_2r-SketchLine_313f-SketchLine_134f-SketchArc_115_2r-SketchLine_312f-SketchLine_133f-SketchArc_114_2r-SketchLine_311f-SketchLine_132f-SketchArc_113_2r-SketchLine_310f-SketchLine_131f-SketchArc_112_2r-SketchLine_309f-SketchLine_130f-SketchArc_111_2r-SketchLine_308f-SketchLine_129f-SketchArc_110_2r-SketchLine_307f-SketchLine_128f-SketchArc_109_2r-SketchLine_306f-SketchLine_127f-SketchArc_108_2r-SketchLine_305f-SketchLine_126f-SketchArc_107_2r-SketchLine_304f-SketchLine_125f-SketchArc_106_2r-SketchLine_303f-SketchLine_124f-SketchArc_105_2r-SketchLine_302f-SketchLine_123f-SketchArc_104_2r-SketchLine_301f-SketchLine_122f-SketchArc_103_2r-SketchLine_300f-SketchLine_121f-SketchArc_102_2r-SketchLine_299f-SketchLine_120f-SketchArc_101_2r-SketchLine_298f-SketchLine_119f-SketchArc_100_2r-SketchLine_297f-SketchLine_118f-SketchArc_99_2r-SketchLine_296f-SketchLine_117f-SketchArc_98_2r-SketchLine_295f-SketchLine_116f-SketchArc_97_2r-SketchLine_294f-SketchLine_115f-SketchArc_96_2r-SketchLine_293f-SketchLine_114f-SketchArc_95_2r-SketchLine_292f-SketchLine_113f-SketchArc_94_2r-SketchLine_291f-SketchLine_112f-SketchArc_93_2r-SketchLine_290f-SketchLine_111f-SketchArc_92_2r-SketchLine_289f-SketchLine_110f-SketchArc_91_2r-SketchLine_288f-SketchLine_109f-SketchArc_90_2r-SketchLine_287f-SketchLine_108f-SketchArc_89_2r-SketchLine_286f-SketchLine_107f-SketchArc_88_2r-SketchLine_285f-SketchLine_106f-SketchArc_87_2r-SketchLine_284f-SketchLine_105f-SketchArc_86_2r-SketchLine_283f-SketchLine_104f-SketchArc_85_2r-SketchLine_282f-SketchLine_103f-SketchArc_84_2r-SketchLine_281f-SketchLine_102f-SketchArc_83_2r-SketchLine_280f-SketchLine_101f-SketchArc_82_2r-SketchLine_279f-SketchLine_100f-SketchArc_81_2r-SketchLine_278f-SketchLine_99f-SketchArc_80_2r-SketchLine_277f-SketchLine_98f-SketchArc_79_2r-SketchLine_276f-SketchLine_97f-SketchArc_78_2r-SketchLine_275f-SketchLine_96f-SketchArc_77_2r-SketchLine_274f-SketchLine_95f-SketchArc_76_2r-SketchLine_273f-SketchLine_94f-SketchArc_75_2r-SketchLine_272f-SketchLine_93f-SketchArc_74_2r-SketchLine_271f-SketchLine_92f-SketchArc_73_2r-SketchLine_270f-SketchLine_91f-SketchArc_72_2r-SketchLine_269f-SketchLine_90f-SketchArc_71_2r-SketchLine_268f-SketchLine_89f-SketchArc_70_2r-SketchLine_267f-SketchLine_88f-SketchArc_69_2r-SketchLine_266f-SketchLine_87f-SketchArc_68_2r-SketchLine_265f-SketchLine_86f-SketchArc_67_2r-SketchLine_264f-SketchLine_85f-SketchArc_66_2r-SketchLine_263f-SketchLine_84f-SketchArc_65_2r-SketchLine_262f-SketchLine_83f-SketchArc_64_2r-SketchLine_261f-SketchLine_82f-SketchArc_63_2r-SketchLine_260f-SketchLine_81f-SketchArc_62_2r-SketchLine_259f-SketchLine_80f-SketchArc_61_2r-SketchLine_258f-SketchLine_79f-SketchArc_60_2r-SketchLine_257f-SketchLine_78f-SketchArc_59_2r-SketchLine_256f-SketchLine_77f-SketchArc_58_2r-SketchLine_255f-SketchLine_76f-SketchArc_57_2r-SketchLine_254f-SketchLine_75f-SketchArc_56_2r-SketchLine_253f-SketchLine_74f-SketchArc_55_2r-SketchLine_252f-SketchLine_73f-SketchArc_54_2r-SketchLine_251f-SketchLine_72f-SketchArc_53_2r-SketchLine_250f-SketchLine_71f-SketchArc_52_2r-SketchLine_249f-SketchLine_70f-SketchArc_51_2r-SketchLine_248f-SketchLine_69f-SketchArc_50_2r-SketchLine_247f-SketchLine_68f-SketchArc_49_2r-SketchLine_246f-SketchLine_67f-SketchArc_48_2r-SketchLine_245f-SketchLine_66f-SketchArc_47_2r-SketchLine_244f-SketchLine_65f-SketchArc_46_2r-SketchLine_243f-SketchLine_64f-SketchArc_45_2r-SketchLine_242f-SketchLine_63f-SketchArc_44_2r-SketchLine_241f-SketchLine_62f-SketchArc_43_2r-SketchLine_240f-SketchLine_61f-SketchArc_42_2r-SketchLine_239f-SketchLine_60f-SketchArc_41_2r-SketchLine_238f-SketchLine_59f-SketchArc_40_2r-SketchLine_237f-SketchLine_58f-SketchArc_39_2r-SketchLine_236f-SketchLine_57f-SketchArc_38_2r-SketchLine_235f-SketchLine_56f-SketchArc_37_2r-SketchLine_234f-SketchLine_55f-SketchArc_36_2r-SketchLine_233f-SketchLine_54f-SketchArc_35_2r-SketchLine_232f-SketchLine_53f-SketchArc_34_2r-SketchLine_231f-SketchLine_52f-SketchArc_33_2r-SketchLine_230f-SketchLine_51f-SketchArc_32_2r-SketchLine_229f-SketchLine_50f-SketchArc_31_2r-SketchLine_228f-SketchLine_49f-SketchArc_30_2r-SketchLine_227f-SketchLine_48f-SketchArc_29_2r-SketchLine_226f-SketchLine_47f-SketchArc_28_2r-SketchLine_225f-SketchLine_46f-SketchArc_27_2r-SketchLine_224f-SketchLine_45f-SketchArc_26_2r-SketchLine_223f-SketchLine_44f-SketchArc_25_2r-SketchLine_222f-SketchLine_43f-SketchArc_24_2r-SketchLine_221f-SketchLine_42f-SketchArc_23_2r-SketchLine_220f-SketchLine_41f-SketchArc_22_2r-SketchLine_219f-SketchLine_40f-SketchArc_21_2r-SketchLine_218f-SketchLine_39f-SketchArc_20_2r-SketchLine_217f-SketchLine_38f-SketchArc_19_2r-SketchLine_216f-SketchLine_37f-SketchArc_18_2r-SketchLine_215f-SketchLine_36f-SketchArc_17_2r-SketchLine_214f-SketchLine_35f-SketchArc_16_2r-SketchLine_213f-SketchLine_34f-SketchArc_15_2r-SketchLine_212f-SketchLine_33f-SketchArc_14_2r-SketchLine_211f-SketchLine_32f-SketchArc_13_2r-SketchLine_210f-SketchLine_31f-SketchArc_12_2r-SketchLine_209f-SketchLine_30f-SketchArc_11_2r-SketchLine_208f-SketchLine_29f-SketchArc_10_2r-SketchLine_207f-SketchLine_28f-SketchArc_9_2r-SketchLine_206f-SketchLine_27f-SketchArc_8_2r-SketchLine_205f-SketchLine_26f-SketchArc_7_2r-SketchLine_204f-SketchLine_25f-SketchArc_6_2r-SketchLine_203f-SketchLine_24f-SketchArc_5_2r-SketchLine_202f-SketchLine_23f-SketchArc_4_2r-SketchLine_201f-SketchLine_22f-SketchArc_3_2r-SketchLine_200f-SketchLine_20f-SketchArc_2_2r-SketchLine_21f-SketchLine_382f-SketchArc_1_2r")], model.selection(), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_13"), 0, model.selection(), 0, [model.selection("SOLID", "Revolution_1_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_4_2r")], model.selection(), 30, 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) + +# Test reexecution after parameter change +Parameter_H.setValue(14) +model.do() +model.testResultsVolumes(ExtrusionCut_2, [10205.255531030932615976780653000]) +Parameter_H.setValue(12) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_2, 1) +model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/case24.py b/test.compatibility/case24.py new file mode 100644 index 000000000..7189e2cb2 --- /dev/null +++ b/test.compatibility/case24.py @@ -0,0 +1,805 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_R = model.addParameter(Part_1_doc, "R", "3") +model.addParameter(Part_1_doc, "DBody", "65") +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 89, False) +Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_1 = Sketch_1.addLine(0, 20, 17, 20) +SketchLine_1.setName("SketchLine_7") +SketchLine_1.result().setName("SketchLine_7") +SketchLine_2 = Sketch_1.addLine(20, 0, 0, 0) +SketchLine_2.setName("SketchLine_1") +SketchLine_2.result().setName("SketchLine_1") +SketchLine_3 = Sketch_1.addLine(0, 0, 0, 20) +SketchLine_3.setName("SketchLine_2") +SketchLine_3.result().setName("SketchLine_2") +SketchLine_4 = Sketch_1.addLine(20, 17, 20, 0) +SketchLine_4.setName("SketchLine_8") +SketchLine_4.result().setName("SketchLine_8") +SketchLine_5 = Sketch_1.addLine(20, 20, 20, 0) +SketchLine_5.setName("SketchLine_4") +SketchLine_5.result().setName("SketchLine_4") +SketchLine_5.setAuxiliary(True) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_2.startPoint()) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint()) +SketchLine_6 = Sketch_1.addLine(0, 20, 20, 20) +SketchLine_6.setName("SketchLine_3") +SketchLine_6.result().setName("SketchLine_3") +SketchLine_6.setAuxiliary(True) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_5.startPoint()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result()) +SketchProjection_1 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OZ")) +SketchLine_7 = SketchProjection_1.createdFeature() +SketchLine_7.setName("SketchLine_5") +SketchLine_7.result().setName("SketchLine_5") +SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OY")) +SketchLine_8 = SketchProjection_2.createdFeature() +SketchLine_8.setName("SketchLine_6") +SketchLine_8.result().setName("SketchLine_6") +SketchArc_1 = Sketch_1.addArc(17, 17, 20, 17, 17, 20, False) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_4.startPoint()) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_1.endPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_1.result()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_4.result()) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_4.endPoint()) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_6.result()) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_5.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "R") +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchAPI_Line(SketchLine_7).startPoint()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_2.startPoint(), SketchLine_3.result(), 20) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_2.result(), 20) +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_2r-SketchLine_1r-SketchLine_8r-SketchArc_1_2f-SketchLine_7r")], model.selection("EDGE", "Sketch_1/SketchLine_2"), 0, 180) +ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_2r-SketchLine_1r-SketchLine_8r-SketchArc_1_2f-SketchLine_7r")], model.selection(), 0, 25, [model.selection("SOLID", "Revolution_1_1")]) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_9 = Sketch_2.addLine(0, 20, -17, 20) +SketchLine_9.setName("SketchLine_13") +SketchLine_9.result().setName("SketchLine_13") +SketchLine_10 = Sketch_2.addLine(-20, 0, 0, 0) +SketchLine_10.setName("SketchLine_9") +SketchLine_10.result().setName("SketchLine_9") +SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_1_EndVertex")) +SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchPoint_1.result()) +SketchLine_11 = Sketch_2.addLine(0, 0, 0, 20) +SketchLine_11.setName("SketchLine_10") +SketchLine_11.result().setName("SketchLine_10") +SketchLine_12 = Sketch_2.addLine(-20, 17, -20, 0) +SketchLine_12.setName("SketchLine_14") +SketchLine_12.result().setName("SketchLine_14") +SketchLine_13 = Sketch_2.addLine(-20, 20, -20, 0) +SketchLine_13.setName("SketchLine_12") +SketchLine_13.result().setName("SketchLine_12") +SketchLine_13.setAuxiliary(True) +SketchConstraintCoincidence_13 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_14 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint()) +SketchLine_14 = Sketch_2.addLine(0, 20, -20, 20) +SketchLine_14.setName("SketchLine_11") +SketchLine_14.result().setName("SketchLine_11") +SketchLine_14.setAuxiliary(True) +SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchLine_11.endPoint(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_13.startPoint()) +SketchConstraintHorizontal_3 = Sketch_2.setHorizontal(SketchLine_10.result()) +SketchConstraintVertical_3 = Sketch_2.setVertical(SketchLine_11.result()) +SketchConstraintHorizontal_4 = Sketch_2.setHorizontal(SketchLine_14.result()) +SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_13.result()) +SketchArc_2 = Sketch_2.addArc(-17, 17, -17, 20, -20, 17, False) +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchArc_2.startPoint(), SketchLine_9.endPoint()) +SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchArc_2.endPoint(), SketchLine_12.startPoint()) +SketchConstraintTangent_3 = Sketch_2.setTangent(SketchArc_2.results()[1], SketchLine_9.result()) +SketchConstraintTangent_4 = Sketch_2.setTangent(SketchArc_2.results()[1], SketchLine_12.result()) +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_12.endPoint()) +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchLine_9.endPoint(), SketchLine_14.result()) +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_12.startPoint(), SketchLine_13.result()) +SketchConstraintRadius_2 = Sketch_2.setRadius(SketchArc_2.results()[1], 3) +SketchConstraintDistance_3 = Sketch_2.setDistance(SketchLine_10.startPoint(), SketchLine_11.result(), 20) +SketchConstraintDistance_4 = Sketch_2.setDistance(SketchLine_11.endPoint(), SketchLine_10.result(), 20) +model.do() +ExtrusionFuse_2 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_13r-SketchArc_2_2f-SketchLine_14f-SketchLine_9f-SketchLine_10f")], model.selection(), 0, 25, [model.selection("SOLID", "ExtrusionFuse_1_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionFuse_2_1/Modified_Face&ExtrusionFuse_2_1/From_Face")) +SketchLine_15 = Sketch_3.addLine(0, -20, -17.00000002635728, -20) +SketchLine_15.setName("SketchLine_19") +SketchLine_15.result().setName("SketchLine_19") +SketchLine_16 = Sketch_3.addLine(-20, 0, 0, 0) +SketchLine_16.setName("SketchLine_15") +SketchLine_16.result().setName("SketchLine_15") +SketchPoint_2 = Sketch_3.addPoint(model.selection("VERTEX", "[ExtrusionFuse_2_1/Generated_Face&Sketch_2/SketchLine_9][(ExtrusionFuse_2_1/Generated_Face&Sketch_2/SketchLine_9)(ExtrusionFuse_1_1/Generated_Face&Sketch_1/SketchLine_8)(ExtrusionFuse_2_1/Modified_Face&ExtrusionFuse_1_1/From_Face)][ExtrusionFuse_2_1/Modified_Face&ExtrusionFuse_2_1/From_Face][ExtrusionFuse_2_1/Modified_Face&ExtrusionFuse_1_1/From_Face]")) +SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchPoint_2.result()) +SketchLine_17 = Sketch_3.addLine(0, 0, 0, -20) +SketchLine_17.setName("SketchLine_16") +SketchLine_17.result().setName("SketchLine_16") +SketchLine_18 = Sketch_3.addLine(-20, -17, -20, 0) +SketchLine_18.setName("SketchLine_20") +SketchLine_18.result().setName("SketchLine_20") +SketchLine_19 = Sketch_3.addLine(-20, -20, -20, 0) +SketchLine_19.setName("SketchLine_18") +SketchLine_19.result().setName("SketchLine_18") +SketchLine_19.setAuxiliary(True) +SketchConstraintCoincidence_24 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_25 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint()) +SketchLine_20 = Sketch_3.addLine(0, -20, -20, -20) +SketchLine_20.setName("SketchLine_17") +SketchLine_20.result().setName("SketchLine_17") +SketchLine_20.setAuxiliary(True) +SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_17.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_20.endPoint(), SketchLine_19.startPoint()) +SketchConstraintHorizontal_5 = Sketch_3.setHorizontal(SketchLine_16.result()) +SketchConstraintVertical_5 = Sketch_3.setVertical(SketchLine_17.result()) +SketchConstraintHorizontal_6 = Sketch_3.setHorizontal(SketchLine_20.result()) +SketchConstraintVertical_6 = Sketch_3.setVertical(SketchLine_19.result()) +SketchArc_3 = Sketch_3.addArc(-17, -17, -20, -17, -17.00000002635728, -20, False) +SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchArc_3.startPoint(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchArc_3.endPoint(), SketchLine_15.endPoint()) +SketchConstraintTangent_5 = Sketch_3.setTangent(SketchArc_3.results()[1], SketchLine_15.result()) +SketchConstraintTangent_6 = Sketch_3.setTangent(SketchArc_3.results()[1], SketchLine_18.result()) +SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchLine_20.startPoint(), SketchLine_15.startPoint()) +SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.endPoint()) +SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_15.endPoint(), SketchLine_20.result()) +SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_18.startPoint(), SketchLine_19.result()) +SketchConstraintRadius_3 = Sketch_3.setRadius(SketchArc_3.results()[1], 3) +SketchConstraintDistance_5 = Sketch_3.setDistance(SketchLine_15.startPoint(), SketchLine_16.result(), 20) +SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_18.endPoint(), SketchLine_17.result(), 20) +SketchLine_21 = Sketch_3.addLine(-23, -0.01462093666115485, -23, -19.98755081419712) +SketchConstraintParallel_1 = Sketch_3.setParallel(SketchLine_17.result(), SketchLine_21.result()) +SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_21.startPoint(), SketchLine_18.result(), 3) +model.do() +RevolutionFuse_1 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection("EDGE", "Sketch_3/SketchLine_21"), 71, 0, [model.selection("SOLID", "ExtrusionFuse_2_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "RevolutionFuse_1_1/Modified_Face&ExtrusionFuse_1_1/From_Face")) +SketchLine_22 = Sketch_4.addLine(-3, -20, 17, -20) +SketchLine_22.setName("SketchLine_26") +SketchLine_22.result().setName("SketchLine_26") +SketchLine_23 = Sketch_4.addLine(20, 0, -3, 0) +SketchLine_23.setName("SketchLine_22") +SketchLine_23.result().setName("SketchLine_22") +SketchLine_24 = Sketch_4.addLine(-3, 0, -3, -20) +SketchLine_24.setName("SketchLine_23") +SketchLine_24.result().setName("SketchLine_23") +SketchLine_25 = Sketch_4.addLine(20, -17, 20, 0) +SketchLine_25.setName("SketchLine_27") +SketchLine_25.result().setName("SketchLine_27") +SketchLine_26 = Sketch_4.addLine(20, -20, 20, 0) +SketchLine_26.setName("SketchLine_25") +SketchLine_26.result().setName("SketchLine_25") +SketchLine_26.setAuxiliary(True) +SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_23.endPoint(), SketchLine_24.startPoint()) +SketchLine_27 = Sketch_4.addLine(-3, -20, 20, -20) +SketchLine_27.setName("SketchLine_24") +SketchLine_27.result().setName("SketchLine_24") +SketchLine_27.setAuxiliary(True) +SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchLine_27.startPoint()) +SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_26.startPoint()) +SketchConstraintHorizontal_7 = Sketch_4.setHorizontal(SketchLine_23.result()) +SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_24.result()) +SketchConstraintHorizontal_8 = Sketch_4.setHorizontal(SketchLine_27.result()) +SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_26.result()) +SketchArc_4 = Sketch_4.addArc(17, -17, 17, -20, 20, -17, False) +SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchArc_4.startPoint(), SketchLine_22.endPoint()) +SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchArc_4.endPoint(), SketchLine_25.startPoint()) +SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_4.results()[1], SketchLine_22.result()) +SketchConstraintTangent_8 = Sketch_4.setTangent(SketchArc_4.results()[1], SketchLine_25.result()) +SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_27.startPoint(), SketchLine_22.startPoint()) +SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_25.endPoint()) +SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_22.endPoint(), SketchLine_27.result()) +SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_26.result()) +SketchConstraintRadius_4 = Sketch_4.setRadius(SketchArc_4.results()[1], 3) +SketchLine_28 = Sketch_4.addLine(model.selection("EDGE", "Sketch_3/SketchLine_15")) +SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_28.result()) +SketchConstraintDistance_8 = Sketch_4.setDistance(SketchLine_22.endPoint(), SketchLine_23.result(), 20) +SketchConstraintDistance_9 = Sketch_4.setDistance(SketchLine_28.endPoint(), SketchLine_25.result(), 20) +SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_24.result(), SketchLine_28.endPoint(), 3) +SketchLine_29 = Sketch_4.addLine(23, -0.2448405100241045, 23, -19.61338093143246) +SketchConstraintParallel_2 = Sketch_4.setParallel(SketchLine_25.result(), SketchLine_29.result()) +SketchConstraintDistance_11 = Sketch_4.setDistance(SketchLine_23.startPoint(), SketchLine_29.result(), 3) +model.do() +RevolutionFuse_2 = model.addRevolutionFuse(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchLine_26r-SketchArc_4_2f-SketchLine_27f-SketchLine_22f-SketchLine_23f")], model.selection("EDGE", "Sketch_4/SketchLine_29"), 0, 71, [model.selection("SOLID", "RevolutionFuse_1_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.standardPlane("XOZ")) +SketchLine_30 = Sketch_5.addLine(0, 0, 0, 82) +SketchLine_31 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintCoincidence_45 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_31.result()) +SketchLine_32 = Sketch_5.addLine(27.41618692363446, 77, 58.99998109391454, 77) +SketchLine_32.setName("SketchLine_39") +SketchLine_32.result().setName("SketchLine_39") +SketchLine_33 = Sketch_5.addLine(0, 82, 20, 82) +SketchLine_33.setName("SketchLine_32") +SketchLine_33.result().setName("SketchLine_32") +SketchConstraintCoincidence_46 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_33.startPoint()) +SketchLine_34 = Sketch_5.addLine(65, 70.99999917134223, 65, 0) +SketchLine_34.setName("SketchLine_40") +SketchLine_34.result().setName("SketchLine_40") +SketchLine_35 = Sketch_5.addLine(27.41618692363446, 77, 65, 77) +SketchLine_35.setName("SketchLine_34") +SketchLine_35.result().setName("SketchLine_34") +SketchLine_35.setAuxiliary(True) +SketchLine_36 = Sketch_5.addLine(65, 77.00000000000001, 65, 0) +SketchLine_36.setName("SketchLine_35") +SketchLine_36.result().setName("SketchLine_35") +SketchLine_36.setAuxiliary(True) +SketchConstraintCoincidence_47 = Sketch_5.setCoincident(SketchLine_35.endPoint(), SketchLine_36.startPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_49") +SketchLine_37 = Sketch_5.addLine(65, 0, 0, 0) +SketchLine_37.setName("SketchLine_38") +SketchLine_37.result().setName("SketchLine_38") +SketchConstraintCoincidence_48 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchLine_37.endPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_53") +SketchConstraintCoincidence_49 = Sketch_5.setCoincident(SketchLine_37.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_54") +SketchConstraintHorizontal_9 = Sketch_5.setHorizontal(SketchLine_37.result()) +SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_36.result()) +SketchConstraintHorizontal_10 = Sketch_5.setHorizontal(SketchLine_33.result()) +SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_35.result()) +SketchConstraintDistance_12 = Sketch_5.setDistance(SketchLine_33.endPoint(), SketchLine_35.result(), 5) +SketchConstraintDistance_12.setName("SketchConstraintDistance_14") +SketchConstraintDistance_13 = Sketch_5.setDistance(SketchLine_30.endPoint(), SketchLine_37.result(), 82) +SketchConstraintDistance_13.setName("SketchConstraintDistance_15") +SketchArc_5 = Sketch_5.addArc(59, 70.99999999999999, 65, 70.99999917134223, 58.99998109391454, 77, False) +SketchArc_5.setName("SketchArc_6") +SketchArc_5.result().setName("SketchArc_6") +SketchArc_5.results()[1].setName("SketchArc_6_2") +SketchConstraintCoincidence_50 = Sketch_5.setCoincident(SketchArc_5.startPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_57") +SketchConstraintCoincidence_51 = Sketch_5.setCoincident(SketchArc_5.endPoint(), SketchLine_32.endPoint()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_58") +SketchConstraintTangent_9 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_32.result()) +SketchConstraintTangent_9.setName("SketchConstraintTangent_10") +SketchConstraintTangent_10 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_34.result()) +SketchConstraintTangent_10.setName("SketchConstraintTangent_11") +SketchConstraintCoincidence_52 = Sketch_5.setCoincident(SketchLine_35.startPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_59") +SketchConstraintCoincidence_53 = Sketch_5.setCoincident(SketchLine_36.endPoint(), SketchLine_34.endPoint()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_60") +SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchLine_35.result()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_61") +SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_34.startPoint(), SketchLine_36.result()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_62") +SketchConstraintRadius_5 = Sketch_5.setRadius(SketchArc_5.results()[1], 6) +SketchConstraintRadius_5.setName("SketchConstraintRadius_6") +SketchArc_6 = Sketch_5.addArc(27.41619848709567, 84.99999999999999, 27.41618692363446, 77, 20, 82, True) +SketchArc_6.setName("SketchArc_7") +SketchArc_6.result().setName("SketchArc_7") +SketchArc_6.results()[1].setName("SketchArc_7_2") +SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchArc_6.startPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_63") +SketchConstraintTangent_11 = Sketch_5.setTangent(SketchArc_6.results()[1], SketchLine_32.result()) +SketchConstraintTangent_11.setName("SketchConstraintTangent_12") +SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchLine_33.endPoint(), SketchArc_6.endPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_64") +SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_6.results()[1], 8) +SketchConstraintRadius_6.setName("SketchConstraintRadius_7") +SketchConstraintDistance_14 = Sketch_5.setDistance(SketchLine_33.endPoint(), SketchLine_30.result(), 20) +SketchConstraintDistance_14.setName("SketchConstraintDistance_17") +SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_37.startPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_66") +SketchConstraintDistance_15 = Sketch_5.setDistance(SketchLine_37.startPoint(), SketchLine_30.result(), "DBody") +SketchConstraintDistance_15.setName("SketchConstraintDistance_16") +model.do() +RevolutionFuse_3 = model.addRevolutionFuse(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_38r-SketchLine_40r-SketchArc_6_2f-SketchLine_39r-SketchArc_7_2r-SketchLine_32r-SketchLine_30r_wire")], model.selection("EDGE", "PartSet/OZ"), 45, 315, [model.selection("SOLID", "RevolutionFuse_2_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.standardPlane("YOZ")) +SketchLine_38 = Sketch_6.addLine(19.99999999999999, 60, -20, 60) +SketchLine_38.setName("SketchLine_48") +SketchLine_38.result().setName("SketchLine_48") +SketchLine_39 = Sketch_6.addLine(-20, 30, 20, 30) +SketchLine_39.setName("SketchLine_52") +SketchLine_39.result().setName("SketchLine_52") +SketchLine_40 = Sketch_6.addLine(-20, 60, -20, 30) +SketchLine_40.setName("SketchLine_51") +SketchLine_40.result().setName("SketchLine_51") +SketchLine_41 = Sketch_6.addLine(20, 30, 19.99999999999999, 60) +SketchLine_41.setName("SketchLine_50") +SketchLine_41.result().setName("SketchLine_50") +SketchLine_43 = Sketch_6.addLine(-20, 30, 20, 30) +SketchLine_43.setName("SketchLine_41") +SketchLine_43.result().setName("SketchLine_41") +SketchLine_43.setAuxiliary(True) +SketchLine_42 = Sketch_6.addLine(-20, 60, -20, 30) +SketchLine_42.setName("SketchLine_44") +SketchLine_42.result().setName("SketchLine_44") +SketchLine_42.setAuxiliary(True) +SketchConstraintCoincidence_60 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_67") +SketchLine_44 = Sketch_6.addLine(20, 30.00000000000001, 19.99999999999998, 60) +SketchLine_44.setName("SketchLine_42") +SketchLine_44.result().setName("SketchLine_42") +SketchLine_44.setAuxiliary(True) +SketchConstraintCoincidence_61 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_68") +SketchLine_45 = Sketch_6.addLine(19.99999999999998, 60, -19.99999999999999, 60) +SketchLine_45.setName("SketchLine_43") +SketchLine_45.result().setName("SketchLine_43") +SketchLine_45.setAuxiliary(True) +SketchConstraintCoincidence_62 = Sketch_6.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_69") +SketchConstraintCoincidence_63 = Sketch_6.setCoincident(SketchLine_45.endPoint(), SketchLine_42.startPoint()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_70") +SketchConstraintHorizontal_12 = Sketch_6.setHorizontal(SketchLine_43.result()) +SketchConstraintVertical_10 = Sketch_6.setVertical(SketchLine_44.result()) +SketchConstraintHorizontal_13 = Sketch_6.setHorizontal(SketchLine_45.result()) +SketchConstraintVertical_11 = Sketch_6.setVertical(SketchLine_42.result()) +SketchLine_46 = Sketch_6.addLine(19.99999999999998, 60, -20, 60) +SketchLine_46.setName("SketchLine_45") +SketchLine_46.result().setName("SketchLine_45") +SketchLine_46.setAuxiliary(True) +SketchConstraintCoincidence_64 = Sketch_6.setCoincident(SketchLine_45.startPoint(), SketchLine_46.startPoint()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_73") +SketchLine_47 = Sketch_6.addLine(-20, 60, -19.99999999999998, 30.00000000000001) +SketchLine_47.setName("SketchLine_46") +SketchLine_47.result().setName("SketchLine_46") +SketchLine_47.setAuxiliary(True) +SketchConstraintCoincidence_65 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_47.endPoint()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_74") +SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_45.result()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_75") +SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchLine_47.startPoint(), SketchLine_42.result()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_76") +SketchLine_48 = Sketch_6.addLine(20, 30.00000000000001, 19.99999999999999, 60) +SketchLine_48.setName("SketchLine_47") +SketchLine_48.result().setName("SketchLine_47") +SketchLine_48.setAuxiliary(True) +SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_44.startPoint(), SketchLine_48.startPoint()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_79") +SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_38.endPoint()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_80") +SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_44.result()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_81") +SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_46.result()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_82") +SketchLine_49 = Sketch_6.addLine(-19.99999999999998, 30.00000000000001, 20, 30) +SketchLine_49.setName("SketchLine_49") +SketchLine_49.result().setName("SketchLine_49") +SketchLine_49.setAuxiliary(True) +SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_43.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_85") +SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_41.endPoint()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_86") +SketchConstraintCoincidence_74 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_43.result()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_87") +SketchConstraintCoincidence_75 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_48.result()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_88") +SketchConstraintCoincidence_76 = Sketch_6.setCoincident(SketchLine_47.startPoint(), SketchLine_40.startPoint()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_91") +SketchConstraintCoincidence_77 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_39.endPoint()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_92") +SketchConstraintCoincidence_78 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_47.result()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_79 = Sketch_6.setCoincident(SketchLine_39.startPoint(), SketchLine_49.result()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_94") +SketchPoint_3 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchLine_30_StartVertex")) +SketchConstraintDistance_16 = Sketch_6.setDistance(SketchLine_40.result(), SketchPoint_3.coordinates(), 20) +SketchConstraintDistance_16.setName("SketchConstraintDistance_18") +SketchConstraintDistance_17 = Sketch_6.setDistance(SketchPoint_3.coordinates(), SketchLine_41.result(), 20) +SketchConstraintDistance_17.setName("SketchConstraintDistance_19") +SketchConstraintDistance_18 = Sketch_6.setDistance(SketchLine_39.result(), SketchPoint_3.coordinates(), 30) +SketchConstraintDistance_18.setName("SketchConstraintDistance_20") +SketchConstraintDistance_19 = Sketch_6.setDistance(SketchLine_39.result(), SketchLine_38.endPoint(), 30) +SketchConstraintDistance_19.setName("SketchConstraintDistance_21") +SketchConstraintCoincidence_80 = Sketch_6.setCoincident(SketchLine_40.startPoint(), SketchLine_38.endPoint()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_152") +SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_41.endPoint()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_153") +SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_39.startPoint()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_154") +SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_39.endPoint()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_156") +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), 100, 0, [model.selection("SOLID", "RevolutionFuse_3_1")]) +Sketch_7 = model.addSketch(Part_1_doc, model.standardPlane("XOZ")) +SketchLine_50 = Sketch_7.addLine(65, 23.09999999999939, 65, 23.00000523211526) +SketchLine_50.setName("SketchLine_61") +SketchLine_50.result().setName("SketchLine_61") +SketchLine_51 = Sketch_7.addLine(model.selection("EDGE", "Sketch_5/SketchLine_35")) +SketchLine_51.setName("SketchLine_54") +SketchLine_51.result().setName("SketchLine_54") +SketchLine_52 = Sketch_7.addLine(65, 23.09999999999939, 65, 20) +SketchLine_52.setName("SketchLine_53") +SketchLine_52.result().setName("SketchLine_53") +SketchLine_52.setAuxiliary(True) +SketchConstraintCoincidence_85 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_51.result()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_95") +SketchLine_53 = Sketch_7.addLine(68.00001763534438, 19.99999999999997, 68.09999999999999, 20) +SketchLine_53.setName("SketchLine_62") +SketchLine_53.result().setName("SketchLine_62") +SketchLine_54 = Sketch_7.addLine(65, 20, 68.09999999999999, 20) +SketchLine_54.setName("SketchLine_55") +SketchLine_54.result().setName("SketchLine_55") +SketchLine_54.setAuxiliary(True) +SketchConstraintCoincidence_86 = Sketch_7.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_96") +SketchLine_55 = Sketch_7.addLine(model.selection("EDGE", "[RevolutionFuse_3_1/Modified_Face&Sketch_2/SketchLine_13][RevolutionFuse_3_1/Modified_Face&Sketch_1/SketchLine_7]")) +SketchLine_55.setName("SketchLine_56") +SketchLine_55.result().setName("SketchLine_56") +SketchConstraintCoincidence_87 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_97") +SketchLine_56 = Sketch_7.addLine(68.09999999999999, 20, 68.09999999999999, 18.51336352164785) +SketchLine_56.setName("SketchLine_57") +SketchLine_56.result().setName("SketchLine_57") +SketchConstraintCoincidence_88 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_56.startPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_98") +SketchLine_57 = Sketch_7.addLine(68.09999999999999, 18.51336352164785, 63.35445204813018, 18.51336352164785) +SketchLine_57.setName("SketchLine_58") +SketchLine_57.result().setName("SketchLine_58") +SketchConstraintCoincidence_89 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_57.startPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_99") +SketchLine_58 = Sketch_7.addLine(63.35445204813018, 18.51336352164785, 63.35445204813018, 23.09999999999939) +SketchLine_58.setName("SketchLine_59") +SketchLine_58.result().setName("SketchLine_59") +SketchConstraintCoincidence_90 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_58.startPoint()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_100") +SketchLine_59 = Sketch_7.addLine(63.35445204813018, 23.09999999999939, 65, 23.09999999999939) +SketchLine_59.setName("SketchLine_60") +SketchLine_59.result().setName("SketchLine_60") +SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_58.endPoint(), SketchLine_59.startPoint()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_101") +SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_59.endPoint()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_102") +SketchConstraintVertical_12 = Sketch_7.setVertical(SketchLine_52.result()) +SketchConstraintHorizontal_14 = Sketch_7.setHorizontal(SketchLine_54.result()) +SketchConstraintHorizontal_15 = Sketch_7.setHorizontal(SketchLine_57.result()) +SketchConstraintHorizontal_16 = Sketch_7.setHorizontal(SketchLine_59.result()) +SketchConstraintVertical_13 = Sketch_7.setVertical(SketchLine_56.result()) +SketchConstraintVertical_14 = Sketch_7.setVertical(SketchLine_58.result()) +SketchArc_7 = Sketch_7.addArc(68, 22.99999999999999, 65, 23.00000523211526, 68.00001763534438, 19.99999999999997, False) +SketchArc_7.setName("SketchArc_12") +SketchArc_7.result().setName("SketchArc_12") +SketchArc_7.results()[1].setName("SketchArc_12_2") +SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchArc_7.startPoint(), SketchLine_50.endPoint()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_103") +SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchArc_7.endPoint(), SketchLine_53.startPoint()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_104") +SketchConstraintTangent_12 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_50.result()) +SketchConstraintTangent_12.setName("SketchConstraintTangent_21") +SketchConstraintTangent_13 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_53.result()) +SketchConstraintTangent_13.setName("SketchConstraintTangent_22") +SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_50.startPoint()) +SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_105") +SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_53.endPoint()) +SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_106") +SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_50.endPoint(), SketchLine_52.result()) +SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_107") +SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_53.startPoint(), SketchLine_54.result()) +SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_108") +SketchConstraintRadius_7 = Sketch_7.setRadius(SketchArc_7.results()[1], 3) +SketchConstraintRadius_7.setName("SketchConstraintRadius_12") +SketchConstraintDistance_20 = Sketch_7.setDistance(SketchLine_53.endPoint(), SketchLine_50.result(), 3.1) +SketchConstraintDistance_20.setName("SketchConstraintDistance_22") +SketchConstraintDistance_21 = Sketch_7.setDistance(SketchLine_50.startPoint(), SketchLine_53.result(), 3.1) +SketchConstraintDistance_21.setName("SketchConstraintDistance_23") +model.do() +RevolutionFuse_4 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection("EDGE", "PartSet/OZ"), 14.4, 14.4, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.standardPlane("XOZ")) +SketchCircle_1 = Sketch_8.addCircle(0, 45, 12.5) +SketchLine_60 = Sketch_8.addLine(model.selection("EDGE", "Sketch_5/SketchLine_30")) +SketchLine_60.setName("SketchLine_63") +SketchLine_60.result().setName("SketchLine_63") +SketchConstraintCoincidence_99 = Sketch_8.setCoincident(SketchCircle_1.center(), SketchLine_60.result()) +SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_109") +SketchLine_61 = Sketch_8.addLine(model.selection("EDGE", "Sketch_5/SketchLine_38")) +SketchLine_61.setName("SketchLine_64") +SketchLine_61.result().setName("SketchLine_64") +SketchConstraintDistance_22 = Sketch_8.setDistance(SketchCircle_1.center(), SketchLine_61.result(), 45) +SketchConstraintDistance_22.setName("SketchConstraintDistance_24") +SketchConstraintRadius_8 = Sketch_8.setRadius(SketchCircle_1.results()[1], 12.5) +SketchConstraintRadius_8.setName("SketchConstraintRadius_13") +model.do() +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchCircle_1_2r")], model.selection(), 100, 100, [model.selection("SOLID", "RevolutionFuse_4_1")]) +Sketch_9 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_62 = Sketch_9.addLine(0, 84, 0, -2) +SketchLine_62.setName("SketchLine_65") +SketchLine_62.result().setName("SketchLine_65") +SketchLine_63 = Sketch_9.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_63.setName("SketchLine_66") +SketchLine_63.result().setName("SketchLine_66") +SketchConstraintCoincidence_100 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_63.result()) +SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_110") +SketchConstraintCoincidence_101 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.result()) +SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_111") +SketchLine_64 = Sketch_9.addLine(50, 8, 50, 63.99999981522573) +SketchLine_64.setName("SketchLine_91") +SketchLine_64.result().setName("SketchLine_91") +SketchLine_65 = Sketch_9.addLine(0, -2, 58, -2) +SketchLine_65.setName("SketchLine_67") +SketchLine_65.result().setName("SketchLine_67") +SketchConstraintCoincidence_102 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_65.startPoint()) +SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_112") +SketchLine_66 = Sketch_9.addLine(44.0000002728486, 70, 15, 70) +SketchLine_66.setName("SketchLine_92") +SketchLine_66.result().setName("SketchLine_92") +SketchLine_67 = Sketch_9.addLine(58, -2, 58.00000000000001, 3.999997221073) +SketchLine_67.setName("SketchLine_93") +SketchLine_67.result().setName("SketchLine_93") +SketchLine_68 = Sketch_9.addLine(58, -2, 58, 8) +SketchLine_68.setName("SketchLine_68") +SketchLine_68.result().setName("SketchLine_68") +SketchLine_68.setAuxiliary(True) +SketchConstraintCoincidence_103 = Sketch_9.setCoincident(SketchLine_65.endPoint(), SketchLine_68.startPoint()) +SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_113") +SketchLine_69 = Sketch_9.addLine(53.99999482393354, 8, 50, 8) +SketchLine_69.setName("SketchLine_94") +SketchLine_69.result().setName("SketchLine_94") +SketchLine_70 = Sketch_9.addLine(58, 8, 50, 8) +SketchLine_70.setName("SketchLine_69") +SketchLine_70.result().setName("SketchLine_69") +SketchLine_70.setAuxiliary(True) +SketchConstraintCoincidence_104 = Sketch_9.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint()) +SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_114") +SketchLine_71 = Sketch_9.addLine(50, 8, 49.99999999999999, 70) +SketchLine_71.setName("SketchLine_70") +SketchLine_71.result().setName("SketchLine_70") +SketchLine_71.setAuxiliary(True) +SketchConstraintCoincidence_105 = Sketch_9.setCoincident(SketchLine_70.endPoint(), SketchLine_71.startPoint()) +SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_115") +SketchLine_72 = Sketch_9.addLine(49.99999999999999, 70, 15, 70) +SketchLine_72.setName("SketchLine_71") +SketchLine_72.result().setName("SketchLine_71") +SketchLine_72.setAuxiliary(True) +SketchConstraintCoincidence_106 = Sketch_9.setCoincident(SketchLine_71.endPoint(), SketchLine_72.startPoint()) +SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_116") +SketchLine_73 = Sketch_9.addLine(15, 70, 15, 84) +SketchLine_73.setName("SketchLine_72") +SketchLine_73.result().setName("SketchLine_72") +SketchConstraintCoincidence_107 = Sketch_9.setCoincident(SketchLine_72.endPoint(), SketchLine_73.startPoint()) +SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_117") +SketchLine_74 = Sketch_9.addLine(15, 84, 0, 84) +SketchLine_74.setName("SketchLine_73") +SketchLine_74.result().setName("SketchLine_73") +SketchConstraintCoincidence_108 = Sketch_9.setCoincident(SketchLine_73.endPoint(), SketchLine_74.startPoint()) +SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_118") +SketchConstraintCoincidence_109 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_74.endPoint()) +SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_119") +SketchLine_75 = Sketch_9.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_75.setName("SketchLine_74") +SketchLine_75.result().setName("SketchLine_74") +SketchConstraintDistance_23 = Sketch_9.setDistance(SketchLine_65.endPoint(), SketchLine_75.result(), 2) +SketchConstraintDistance_23.setName("SketchConstraintDistance_25") +SketchConstraintDistance_24 = Sketch_9.setDistance(SketchLine_65.endPoint(), SketchLine_63.result(), 58) +SketchConstraintDistance_24.setName("SketchConstraintDistance_26") +SketchConstraintHorizontal_17 = Sketch_9.setHorizontal(SketchLine_65.result()) +SketchConstraintVertical_15 = Sketch_9.setVertical(SketchLine_71.result()) +SketchConstraintVertical_16 = Sketch_9.setVertical(SketchLine_73.result()) +SketchConstraintVertical_17 = Sketch_9.setVertical(SketchLine_68.result()) +SketchConstraintHorizontal_18 = Sketch_9.setHorizontal(SketchLine_74.result()) +SketchConstraintHorizontal_19 = Sketch_9.setHorizontal(SketchLine_72.result()) +SketchConstraintHorizontal_20 = Sketch_9.setHorizontal(SketchLine_70.result()) +SketchConstraintDistance_25 = Sketch_9.setDistance(SketchLine_70.endPoint(), SketchLine_62.result(), 50) +SketchConstraintDistance_25.setName("SketchConstraintDistance_27") +SketchConstraintDistance_26 = Sketch_9.setDistance(SketchLine_71.endPoint(), SketchLine_75.result(), 70) +SketchConstraintDistance_26.setName("SketchConstraintDistance_28") +SketchConstraintDistance_27 = Sketch_9.setDistance(SketchLine_72.endPoint(), SketchLine_63.result(), 15) +SketchConstraintDistance_27.setName("SketchConstraintDistance_29") +SketchLine_76 = Sketch_9.addLine(model.selection("EDGE", "Sketch_5/SketchLine_32")) +SketchLine_76.setName("SketchLine_75") +SketchLine_76.result().setName("SketchLine_75") +SketchConstraintDistance_28 = Sketch_9.setDistance(SketchLine_62.startPoint(), SketchLine_76.result(), 2) +SketchConstraintDistance_28.setName("SketchConstraintDistance_30") +SketchConstraintDistance_29 = Sketch_9.setDistance(SketchLine_71.startPoint(), SketchLine_75.result(), 8) +SketchConstraintDistance_29.setName("SketchConstraintDistance_31") +SketchArc_8 = Sketch_9.addArc(44.00000000000001, 64.00000000000001, 50, 63.99999981522573, 44.0000002728486, 70, False) +SketchArc_8.setName("SketchArc_22") +SketchArc_8.result().setName("SketchArc_22") +SketchArc_8.results()[1].setName("SketchArc_22_2") +SketchConstraintCoincidence_110 = Sketch_9.setCoincident(SketchArc_8.startPoint(), SketchLine_64.endPoint()) +SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_140") +SketchConstraintCoincidence_111 = Sketch_9.setCoincident(SketchArc_8.endPoint(), SketchLine_66.startPoint()) +SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_141") +SketchConstraintTangent_14 = Sketch_9.setTangent(SketchArc_8.results()[1], SketchLine_64.result()) +SketchConstraintTangent_14.setName("SketchConstraintTangent_26") +SketchConstraintTangent_15 = Sketch_9.setTangent(SketchArc_8.results()[1], SketchLine_66.result()) +SketchConstraintTangent_15.setName("SketchConstraintTangent_27") +SketchConstraintCoincidence_112 = Sketch_9.setCoincident(SketchLine_71.startPoint(), SketchLine_64.startPoint()) +SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_142") +SketchConstraintCoincidence_113 = Sketch_9.setCoincident(SketchLine_72.endPoint(), SketchLine_66.endPoint()) +SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_143") +SketchConstraintCoincidence_114 = Sketch_9.setCoincident(SketchLine_64.endPoint(), SketchLine_71.result()) +SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_144") +SketchConstraintCoincidence_115 = Sketch_9.setCoincident(SketchLine_66.startPoint(), SketchLine_72.result()) +SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_145") +SketchArc_9 = Sketch_9.addArc(54, 4, 58.00000000000001, 3.999997221073, 53.99999482393354, 8, False) +SketchArc_9.setName("SketchArc_23") +SketchArc_9.result().setName("SketchArc_23") +SketchArc_9.results()[1].setName("SketchArc_23_2") +SketchConstraintCoincidence_116 = Sketch_9.setCoincident(SketchArc_9.startPoint(), SketchLine_67.endPoint()) +SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_146") +SketchConstraintCoincidence_117 = Sketch_9.setCoincident(SketchArc_9.endPoint(), SketchLine_69.startPoint()) +SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_147") +SketchConstraintTangent_16 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_67.result()) +SketchConstraintTangent_16.setName("SketchConstraintTangent_28") +SketchConstraintTangent_17 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_69.result()) +SketchConstraintTangent_17.setName("SketchConstraintTangent_29") +SketchConstraintCoincidence_118 = Sketch_9.setCoincident(SketchLine_68.startPoint(), SketchLine_67.startPoint()) +SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_148") +SketchConstraintCoincidence_119 = Sketch_9.setCoincident(SketchLine_70.endPoint(), SketchLine_69.endPoint()) +SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_149") +SketchConstraintCoincidence_120 = Sketch_9.setCoincident(SketchLine_67.endPoint(), SketchLine_68.result()) +SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_150") +SketchConstraintCoincidence_121 = Sketch_9.setCoincident(SketchLine_69.startPoint(), SketchLine_70.result()) +SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_151") +SketchConstraintRadius_9 = Sketch_9.setRadius(SketchArc_8.results()[1], 6) +SketchConstraintRadius_9.setName("SketchConstraintRadius_16") +SketchConstraintRadius_10 = Sketch_9.setRadius(SketchArc_9.results()[1], 4) +SketchConstraintRadius_10.setName("SketchConstraintRadius_17") +model.do() +Sketch_10 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchLine_77 = Sketch_10.addLine(64, 20, 89, 20) +SketchLine_77.setName("SketchLine_76") +SketchLine_77.result().setName("SketchLine_76") +SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchArc_1_2)2(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)2_ExtrusionCut_2_1][RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchArc_4_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27]")) +SketchConstraintCoincidence_122 = Sketch_10.setCoincident(SketchLine_77.startPoint(), SketchPoint_4.result()) +SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_120") +SketchPoint_5 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_1_StartVertex")) +SketchConstraintCoincidence_123 = Sketch_10.setCoincident(SketchLine_77.endPoint(), SketchPoint_5.result()) +SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_121") +SketchLine_78 = Sketch_10.addLine(64, -20, 89, -20) +SketchLine_78.setName("SketchLine_77") +SketchLine_78.result().setName("SketchLine_77") +SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchArc_2_2)2(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)2_ExtrusionCut_2_1][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14][(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchArc_3_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20]")) +SketchConstraintCoincidence_124 = Sketch_10.setCoincident(SketchLine_78.startPoint(), SketchPoint_6.result()) +SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_122") +SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "[(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchArc_1_2)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2_ExtrusionCut_2_1][ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchArc_2_2)2(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)2_ExtrusionCut_2_1][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14]")) +SketchConstraintCoincidence_125 = Sketch_10.setCoincident(SketchLine_78.endPoint(), SketchPoint_7.result()) +SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_123") +SketchArc_10 = Sketch_10.addArc(89, 0, 89, -20, 89, 20, False) +SketchArc_10.setName("SketchArc_13") +SketchArc_10.result().setName("SketchArc_13") +SketchArc_10.results()[1].setName("SketchArc_13_2") +SketchConstraintCoincidence_126 = Sketch_10.setCoincident(SketchArc_10.startPoint(), SketchLine_78.endPoint()) +SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_124") +SketchConstraintTangent_18 = Sketch_10.setTangent(SketchArc_10.results()[1], SketchLine_78.result()) +SketchConstraintTangent_18.setName("SketchConstraintTangent_23") +SketchConstraintCoincidence_127 = Sketch_10.setCoincident(SketchLine_77.endPoint(), SketchArc_10.endPoint()) +SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_125") +SketchConstraintCoincidence_128 = Sketch_10.setCoincident(SketchPoint_5.coordinates(), SketchArc_10.endPoint()) +SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_126") +SketchArc_11 = Sketch_10.addArc(63.9999997725999, -23.01134810362887, 64, -20, 61.15622559702544, -22.02080994708719, False) +SketchArc_11.setName("SketchArc_14") +SketchArc_11.result().setName("SketchArc_14") +SketchArc_11.results()[1].setName("SketchArc_14_2") +SketchConstraintCoincidence_129 = Sketch_10.setCoincident(SketchArc_11.startPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_127") +SketchConstraintTangent_19 = Sketch_10.setTangent(SketchArc_11.results()[1], SketchLine_78.result()) +SketchConstraintTangent_19.setName("SketchConstraintTangent_24") +SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchArc_3_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face]")) +SketchConstraintCoincidence_130 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchPoint_8.result()) +SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_128") +SketchArc_12 = Sketch_10.addArc(64.00001789135865, 23.01137360115889, 64, 20, 61.15622559702543, 22.02080994708722, True) +SketchArc_12.setName("SketchArc_15") +SketchArc_12.result().setName("SketchArc_15") +SketchArc_12.results()[1].setName("SketchArc_15_2") +SketchConstraintCoincidence_131 = Sketch_10.setCoincident(SketchArc_12.startPoint(), SketchLine_77.startPoint()) +SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_129") +SketchConstraintTangent_20 = Sketch_10.setTangent(SketchArc_12.results()[1], SketchLine_77.result()) +SketchConstraintTangent_20.setName("SketchConstraintTangent_25") +SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchArc_4_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face]")) +SketchConstraintCoincidence_132 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchPoint_9.result()) +SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_130") +SketchLine_79 = Sketch_10.addLine(61.15622559702543, 22.02080994708722, 59.81204392543111, 22.0208099470871) +SketchLine_79.setName("SketchLine_78") +SketchLine_79.result().setName("SketchLine_78") +SketchConstraintCoincidence_133 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchLine_79.startPoint()) +SketchConstraintCoincidence_133.setName("SketchConstraintCoincidence_131") +SketchConstraintCoincidence_134 = Sketch_10.setCoincident(SketchPoint_9.coordinates(), SketchLine_79.startPoint()) +SketchConstraintCoincidence_134.setName("SketchConstraintCoincidence_132") +SketchLine_80 = Sketch_10.addLine(59.81204392543111, 22.0208099470871, 59.81204392543111, -22.02080994708712) +SketchLine_80.setName("SketchLine_79") +SketchLine_80.result().setName("SketchLine_79") +SketchConstraintCoincidence_135 = Sketch_10.setCoincident(SketchLine_79.endPoint(), SketchLine_80.startPoint()) +SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_133") +SketchLine_81 = Sketch_10.addLine(61.15622559702544, -22.02080994708719, 59.81204392543111, -22.02080994708712) +SketchLine_81.setName("SketchLine_80") +SketchLine_81.result().setName("SketchLine_80") +SketchConstraintCoincidence_136 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchLine_81.startPoint()) +SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_134") +SketchConstraintCoincidence_137 = Sketch_10.setCoincident(SketchPoint_8.coordinates(), SketchLine_81.startPoint()) +SketchConstraintCoincidence_137.setName("SketchConstraintCoincidence_135") +SketchConstraintCoincidence_138 = Sketch_10.setCoincident(SketchLine_80.endPoint(), SketchLine_81.endPoint()) +SketchConstraintCoincidence_138.setName("SketchConstraintCoincidence_136") +SketchConstraintParallel_3 = Sketch_10.setParallel(SketchLine_78.result(), SketchLine_81.result()) +SketchConstraintParallel_4 = Sketch_10.setParallel(SketchLine_77.result(), SketchLine_79.result()) +SketchConstraintPerpendicular_1 = Sketch_10.setPerpendicular(SketchLine_80.result(), SketchLine_77.result()) +SketchPoint_10 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_6/SketchPoint_3")) +SketchMultiRotation_1_objects = [SketchArc_10.results()[1], SketchLine_77.result(), SketchLine_78.result(), SketchArc_12.results()[1], SketchLine_79.result(), SketchLine_80.result(), SketchLine_81.result(), SketchArc_11.results()[1]] +SketchMultiRotation_1 = Sketch_10.addRotation(SketchMultiRotation_1_objects, SketchPoint_10.coordinates(), 120, 3) +[SketchArc_13, SketchArc_14, SketchLine_82, SketchLine_83, SketchLine_84, SketchLine_85, SketchArc_15, SketchArc_16, SketchLine_86, SketchLine_87, SketchLine_88, SketchLine_89, SketchLine_90, SketchLine_91, SketchArc_17, SketchArc_18] = SketchMultiRotation_1.rotated() +SketchArc_18.setName("SketchArc_21") +SketchArc_18.result().setName("SketchArc_21") +SketchArc_18.results()[1].setName("SketchArc_21_2") +SketchArc_17.setName("SketchArc_18") +SketchArc_17.result().setName("SketchArc_18") +SketchArc_17.results()[1].setName("SketchArc_18_2") +SketchLine_91.setName("SketchLine_90") +SketchLine_91.result().setName("SketchLine_90") +SketchLine_90.setName("SketchLine_85") +SketchLine_90.result().setName("SketchLine_85") +SketchLine_89.setName("SketchLine_89") +SketchLine_89.result().setName("SketchLine_89") +SketchLine_88.setName("SketchLine_84") +SketchLine_88.result().setName("SketchLine_84") +SketchLine_87.setName("SketchLine_88") +SketchLine_87.result().setName("SketchLine_88") +SketchLine_86.setName("SketchLine_83") +SketchLine_86.result().setName("SketchLine_83") +SketchArc_16.setName("SketchArc_20") +SketchArc_16.result().setName("SketchArc_20") +SketchArc_16.results()[1].setName("SketchArc_20_2") +SketchArc_15.setName("SketchArc_17") +SketchArc_15.result().setName("SketchArc_17") +SketchArc_15.results()[1].setName("SketchArc_17_2") +SketchLine_85.setName("SketchLine_87") +SketchLine_85.result().setName("SketchLine_87") +SketchLine_84.setName("SketchLine_82") +SketchLine_84.result().setName("SketchLine_82") +SketchLine_83.setName("SketchLine_86") +SketchLine_83.result().setName("SketchLine_86") +SketchLine_82.setName("SketchLine_81") +SketchLine_82.result().setName("SketchLine_81") +SketchArc_14.setName("SketchArc_19") +SketchArc_14.result().setName("SketchArc_19") +SketchArc_14.results()[1].setName("SketchArc_19_2") +SketchArc_13.setName("SketchArc_16") +SketchArc_13.result().setName("SketchArc_16") +SketchArc_13.results()[1].setName("SketchArc_16_2") +model.do() +ExtrusionFuse_3 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_10/Face-SketchArc_16_2f-SketchLine_81r-SketchArc_17_2r-SketchLine_83f-SketchLine_84f-SketchLine_85r-SketchArc_18_2r-SketchLine_82f"), model.selection("FACE", "Sketch_10/Face-SketchArc_19_2f-SketchLine_86r-SketchArc_20_2r-SketchLine_88f-SketchLine_89f-SketchLine_90r-SketchArc_21_2r-SketchLine_87f")], model.selection(), 20, 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Sketch_11 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchCircle_2 = Sketch_11.addCircle(89, 0, 6) +SketchPoint_11 = Sketch_11.addPoint(model.selection("VERTEX", "Sketch_2/SketchLine_9_EndVertex")) +SketchConstraintCoincidence_139 = Sketch_11.setCoincident(SketchCircle_2.center(), SketchPoint_11.result()) +SketchConstraintCoincidence_139.setName("SketchConstraintCoincidence_137") +SketchConstraintRadius_11 = Sketch_11.setRadius(SketchCircle_2.results()[1], 6) +SketchConstraintRadius_11.setName("SketchConstraintRadius_14") +SketchCircle_3 = Sketch_11.addCircle(89, 0, 12) +SketchConstraintCoincidence_140 = Sketch_11.setCoincident(SketchCircle_2.center(), SketchCircle_3.center()) +SketchConstraintCoincidence_140.setName("SketchConstraintCoincidence_138") +SketchConstraintCoincidence_141 = Sketch_11.setCoincident(SketchPoint_11.coordinates(), SketchCircle_3.center()) +SketchConstraintCoincidence_141.setName("SketchConstraintCoincidence_139") +SketchConstraintRadius_12 = Sketch_11.setRadius(SketchCircle_3.results()[1], 12) +SketchConstraintRadius_12.setName("SketchConstraintRadius_15") +SketchPoint_12 = Sketch_11.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchMultiRotation_2 = Sketch_11.addRotation([SketchCircle_3.results()[1], SketchCircle_2.results()[1]], SketchPoint_12.coordinates(), 120, 3) +[SketchCircle_4, SketchCircle_5, SketchCircle_6, SketchCircle_7] = SketchMultiRotation_2.rotated() +model.do() +RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection("EDGE", "PartSet/OZ"), 0, 360, [model.selection("SOLID", "ExtrusionFuse_3_1")]) +ExtrusionCut_3_objects_1 = [model.selection("WIRE", "Sketch_11/Face-SketchCircle_4_2f-SketchCircle_6_2r_wire"), model.selection("WIRE", "Sketch_11/Face-SketchCircle_3_2f-SketchCircle_2_2r_wire"), model.selection("WIRE", "Sketch_11/Face-SketchCircle_5_2f-SketchCircle_7_2r_wire")] +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_3_objects_1, model.selection(), 30, -15, [model.selection("SOLID", "RevolutionCut_1_1")]) +ExtrusionCut_4_objects_1 = [model.selection("WIRE", "Sketch_11/Face-SketchCircle_2_2r_wire"), model.selection("FACE", "Sketch_11/Face-SketchCircle_6_2f"), model.selection("WIRE", "Sketch_11/Face-SketchCircle_7_2f_wire")] +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_4_objects_1, model.selection(), 30, 2, [model.selection("SOLID", "ExtrusionCut_3_1")]) + +# Test reexecution after parameter change +Parameter_R.setValue(5) +model.do() +model.testResultsVolumes(ExtrusionCut_4, [502616.749082866765093058347702026]) +Parameter_R.setValue(3) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_4, 1) +model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/clothespin.py b/test.compatibility/clothespin.py new file mode 100644 index 000000000..c073b3ede --- /dev/null +++ b/test.compatibility/clothespin.py @@ -0,0 +1,1904 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1.result().setColor(255, 85, 0) +Part_1_doc = Part_1.document() +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(0, 0, 60, 0) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchPoint_1.result()) +SketchLine_2 = Sketch_1.addLine(60, 0, 60, 1.5) +SketchLine_2.setName("SketchLine_3") +SketchLine_2.result().setName("SketchLine_3") +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchConstraintCoincidence_2.setName("SketchConstraintCoincidence_3") +SketchLine_3 = Sketch_1.addLine(60, 1.5, 57, 1.5) +SketchLine_3.setName("SketchLine_4") +SketchLine_3.result().setName("SketchLine_4") +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint()) +SketchConstraintCoincidence_3.setName("SketchConstraintCoincidence_4") +SketchLine_4 = Sketch_1.addLine(57, 1.5, 29, 7.5) +SketchLine_4.setName("SketchLine_5") +SketchLine_4.result().setName("SketchLine_5") +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchConstraintCoincidence_4.setName("SketchConstraintCoincidence_5") +SketchLine_5 = Sketch_1.addLine(28, 7.5, 28, 8) +SketchLine_5.setName("SketchLine_7") +SketchLine_5.result().setName("SketchLine_7") +SketchArc_1 = Sketch_1.addArc(25.00007393928819, 7.9789374678129, 28, 8, 22.00014787857639, 8, False) +SketchLine_6 = Sketch_1.addLine(22.00014787857639, 8, 22.00014787857639, 7.5) +SketchLine_6.setName("SketchLine_8") +SketchLine_6.result().setName("SketchLine_8") +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_8") +SketchLine_7 = Sketch_1.addLine(22.00014787857639, 7.5, 21.00014787857639, 7.5) +SketchLine_7.setName("SketchLine_9") +SketchLine_7.result().setName("SketchLine_9") +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_9") +SketchLine_8 = Sketch_1.addLine(0, 0, 0, 3.5) +SketchLine_8.setName("SketchLine_10") +SketchLine_8.result().setName("SketchLine_10") +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_10") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_11") +SketchLine_9 = Sketch_1.addLine(0, 3.5, 8, 5) +SketchLine_9.setName("SketchLine_11") +SketchLine_9.result().setName("SketchLine_11") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_13") +SketchLine_10 = Sketch_1.addLine(8, 5, 10.426976887961, 4.40018070612629) +SketchLine_10.setName("SketchLine_12") +SketchLine_10.result().setName("SketchLine_12") +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_14") +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 60) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_2.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_7.result()) +SketchConstraintHorizontal_3.setName("SketchConstraintHorizontal_4") +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_6.result()) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_15") +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_8.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_8.endPoint(), SketchLine_1.result(), 3.5, False) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_9.endPoint(), SketchLine_8.result(), 8, False) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_10.result(), 2.5) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 3) +SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_6.result(), 0.5) +SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_7.result(), 1) +SketchConstraintLength_5 = Sketch_1.setLength(SketchLine_5.result(), 0.5) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_1.result(), 7.5, False) +SketchConstraintLength_6 = Sketch_1.setLength(SketchLine_3.result(), 3) +SketchConstraintLength_6.setName("SketchConstraintLength_7") +SketchConstraintLength_7 = Sketch_1.setLength(SketchLine_2.result(), 1.5) +SketchConstraintLength_7.setName("SketchConstraintLength_8") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_9.endPoint(), SketchLine_1.result(), 5, False) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_5.startPoint(), SketchLine_1.result(), 7.5, False) +SketchLine_11 = Sketch_1.addLine(12.81710695710752, 0, 12.81710695710752, 7.765286531476907) +SketchLine_11.setName("SketchLine_13") +SketchLine_11.result().setName("SketchLine_13") +SketchLine_11.setAuxiliary(True) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_11.startPoint(), SketchLine_1.result()) +SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_16") +SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_11.result()) +SketchPoint_2 = Sketch_1.addPoint(12.81710695710752, 3) +SketchPoint_2.setAuxiliary(True) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchLine_11.result()) +SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_17") +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchPoint_2.coordinates(), SketchLine_1.result(), 3, False) +SketchLine_12 = Sketch_1.addLine(28, 7.5, 29, 7.5) +SketchLine_12.setName("SketchLine_14") +SketchLine_12.result().setName("SketchLine_14") +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_12.startPoint()) +SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_18") +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_12.endPoint()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_19") +SketchConstraintLength_8 = Sketch_1.setLength(SketchLine_12.result(), 1) +SketchConstraintLength_8.setName("SketchConstraintLength_9") +SketchArc_2 = Sketch_1.addArc(14.78851987160339, 9.105317068618911, 10.426976887961, 4.40018070612629, 21.00014787857639, 7.5, False) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_20") +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchArc_2.endPoint()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_21") +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchArc_2.results()[1]) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_22") +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_12.result()) +SketchConstraintHorizontal_4.setName("SketchConstraintHorizontal_9") +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchLine_5.startPoint(), SketchLine_2.result(), 32, False) +SketchConstraintDistance_7.setName("SketchConstraintDistance_9") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_1r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_14r-SketchLine_7f-SketchArc_1_2f-SketchLine_8f-SketchLine_9f-SketchArc_2_2r-SketchLine_12r-SketchLine_11r-SketchLine_10r_wire")], model.selection(), 12, 0) +Sketch_2 = model.addSketch(Part_1_doc, model.standardPlane("XOZ")) +SketchArc_3 = Sketch_2.addArc(54, 6, 54, 12, 54, 0, True) +SketchLine_13 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/To_Face]")) +SketchLine_13.setName("SketchLine_15") +SketchLine_13.result().setName("SketchLine_15") +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchArc_3.startPoint(), SketchLine_13.result()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_23") +SketchLine_14 = Sketch_2.addLine(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_14.setName("SketchLine_16") +SketchLine_14.result().setName("SketchLine_16") +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchArc_3.endPoint(), SketchLine_14.result()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_24") +SketchLine_15 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3]")) +SketchLine_15.setName("SketchLine_17") +SketchLine_15.result().setName("SketchLine_17") +SketchConstraintTangent_1 = Sketch_2.setTangent(SketchArc_3.results()[1], SketchLine_15.result()) +SketchConstraintDistance_8 = Sketch_2.setDistance(SketchArc_3.startPoint(), SketchLine_15.result(), 6, False) +SketchConstraintDistance_8.setName("SketchConstraintDistance_7") +SketchLine_16 = Sketch_2.addLine(54, 12, 53.10174978726379, 13.92603605930655) +SketchLine_16.setName("SketchLine_18") +SketchLine_16.result().setName("SketchLine_18") +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchArc_3.startPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_25") +SketchLine_17 = Sketch_2.addLine(53.10174978726379, 13.92603605930655, 63.82610057919769, 13.82486293862793) +SketchLine_17.setName("SketchLine_19") +SketchLine_17.result().setName("SketchLine_19") +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_26") +SketchLine_18 = Sketch_2.addLine(63.82610057919769, 13.82486293862793, 62.66260969139353, -3.07104821470189) +SketchLine_18.setName("SketchLine_20") +SketchLine_18.result().setName("SketchLine_20") +SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_17.endPoint(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_27") +SketchLine_19 = Sketch_2.addLine(62.66260969139353, -3.07104821470189, 53.10174978726379, -2.868701973344648) +SketchLine_19.setName("SketchLine_21") +SketchLine_19.result().setName("SketchLine_21") +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_28") +SketchLine_20 = Sketch_2.addLine(53.10174978726379, -2.868701973344648, 54, 0) +SketchLine_20.setName("SketchLine_22") +SketchLine_20.result().setName("SketchLine_22") +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_29") +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchArc_3.endPoint(), SketchLine_20.endPoint()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_30") +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_22r-SketchLine_21r-SketchLine_20r-SketchLine_19r-SketchLine_18r-SketchArc_3_2r")], model.selection(), 7, 15, [model.selection("SOLID", "Extrusion_1_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14")) +SketchLine_21 = Sketch_3.addLine(28, -6, -4.270492394552598, -6) +SketchLine_21.setName("SketchLine_23") +SketchLine_21.result().setName("SketchLine_23") +SketchLine_21.setAuxiliary(True) +SketchLine_22 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14]")) +SketchLine_22.setName("SketchLine_24") +SketchLine_22.result().setName("SketchLine_24") +SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_21.startPoint(), SketchLine_22.result()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_31") +SketchConstraintHorizontal_5 = Sketch_3.setHorizontal(SketchLine_21.result()) +SketchLine_23 = Sketch_3.addLine(28, -6, 63.78468475453244, -6) +SketchLine_23.setName("SketchLine_25") +SketchLine_23.result().setName("SketchLine_25") +SketchLine_23.setAuxiliary(True) +SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchLine_21.startPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_32") +SketchConstraintHorizontal_6 = Sketch_3.setHorizontal(SketchLine_23.result()) +SketchLine_24 = Sketch_3.addLine(60, -1.5, 29, -1.5) +SketchLine_24.setName("SketchLine_26") +SketchLine_24.result().setName("SketchLine_26") +SketchLine_25 = Sketch_3.addLine(29, -1.5, 29, -10.5) +SketchLine_25.setName("SketchLine_27") +SketchLine_25.result().setName("SketchLine_27") +SketchLine_26 = Sketch_3.addLine(29, -10.5, 60, -10.5) +SketchLine_26.setName("SketchLine_28") +SketchLine_26.result().setName("SketchLine_28") +SketchLine_27 = Sketch_3.addLine(60, -10.5, 60, -1.5) +SketchLine_27.setName("SketchLine_29") +SketchLine_27.result().setName("SketchLine_29") +SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchLine_27.endPoint(), SketchLine_24.startPoint()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchLine_24.endPoint(), SketchLine_25.startPoint()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_34") +SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_35") +SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_26.endPoint(), SketchLine_27.startPoint()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_36") +SketchConstraintHorizontal_7 = Sketch_3.setHorizontal(SketchLine_24.result()) +SketchConstraintVertical_6 = Sketch_3.setVertical(SketchLine_25.result()) +SketchConstraintHorizontal_8 = Sketch_3.setHorizontal(SketchLine_26.result()) +SketchConstraintVertical_7 = Sketch_3.setVertical(SketchLine_27.result()) +SketchLine_28 = Sketch_3.addLine(29, -10.5, 60, -1.5) +SketchLine_28.setName("SketchLine_30") +SketchLine_28.result().setName("SketchLine_30") +SketchLine_28.setAuxiliary(True) +SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_25.endPoint(), SketchLine_28.startPoint()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_37") +SketchConstraintCoincidence_34 = Sketch_3.setCoincident(SketchLine_26.startPoint(), SketchLine_28.startPoint()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_38") +SketchConstraintCoincidence_35 = Sketch_3.setCoincident(SketchLine_24.startPoint(), SketchLine_28.endPoint()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_39") +SketchConstraintCoincidence_36 = Sketch_3.setCoincident(SketchLine_27.endPoint(), SketchLine_28.endPoint()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_40") +SketchLine_29 = Sketch_3.addLine(29, -1.5, 60, -10.5) +SketchLine_29.setName("SketchLine_31") +SketchLine_29.result().setName("SketchLine_31") +SketchLine_29.setAuxiliary(True) +SketchConstraintCoincidence_37 = Sketch_3.setCoincident(SketchLine_24.endPoint(), SketchLine_29.startPoint()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_41") +SketchConstraintCoincidence_38 = Sketch_3.setCoincident(SketchLine_25.startPoint(), SketchLine_29.startPoint()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_42") +SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_26.endPoint(), SketchLine_29.endPoint()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_43") +SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_27.startPoint(), SketchLine_29.endPoint()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_44") +SketchPoint_3 = Sketch_3.addPoint(44.5, -6) +SketchPoint_3.setAuxiliary(True) +SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchPoint_3.coordinates(), SketchLine_29.result()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_45") +SketchConstraintMiddle_1 = Sketch_3.setMiddlePoint(SketchPoint_3.coordinates(), SketchLine_29.result()) +SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchPoint_3.coordinates(), SketchLine_23.result()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_46") +SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_22.startPoint(), SketchLine_23.result(), 6, False) +SketchConstraintDistance_9.setName("SketchConstraintDistance_8") +SketchConstraintLength_9 = Sketch_3.setLength(SketchLine_27.result(), 9) +SketchConstraintLength_9.setName("SketchConstraintLength_10") +SketchLine_30 = Sketch_3.addLine(21.00014787857639, -1.499999999999981, 12.00014787857639, -1.499999999999981) +SketchLine_30.setName("SketchLine_32") +SketchLine_30.result().setName("SketchLine_32") +SketchLine_31 = Sketch_3.addLine(12.00014787857639, -1.499999999999981, 12.00014787857639, -10.49999999999998) +SketchLine_31.setName("SketchLine_33") +SketchLine_31.result().setName("SketchLine_33") +SketchLine_32 = Sketch_3.addLine(12.00014787857639, -10.49999999999998, 21.00014787857639, -10.49999999999998) +SketchLine_32.setName("SketchLine_34") +SketchLine_32.result().setName("SketchLine_34") +SketchLine_33 = Sketch_3.addLine(21.00014787857639, -10.49999999999998, 21.00014787857639, -1.499999999999981) +SketchLine_33.setName("SketchLine_35") +SketchLine_33.result().setName("SketchLine_35") +SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_33.endPoint(), SketchLine_30.startPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_47") +SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_45 = Sketch_3.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_49") +SketchConstraintCoincidence_46 = Sketch_3.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_50") +SketchConstraintHorizontal_9 = Sketch_3.setHorizontal(SketchLine_30.result()) +SketchConstraintHorizontal_9.setName("SketchConstraintHorizontal_10") +SketchConstraintVertical_8 = Sketch_3.setVertical(SketchLine_31.result()) +SketchConstraintHorizontal_10 = Sketch_3.setHorizontal(SketchLine_32.result()) +SketchConstraintHorizontal_10.setName("SketchConstraintHorizontal_11") +SketchConstraintVertical_9 = Sketch_3.setVertical(SketchLine_33.result()) +SketchConstraintEqual_1 = Sketch_3.setEqual(SketchLine_25.result(), SketchLine_33.result()) +SketchLine_34 = Sketch_3.addLine(12.00014787857639, -10.49999999999998, 21.00014787857639, -1.499999999999981) +SketchLine_34.setName("SketchLine_36") +SketchLine_34.result().setName("SketchLine_36") +SketchLine_34.setAuxiliary(True) +SketchConstraintCoincidence_47 = Sketch_3.setCoincident(SketchLine_31.endPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_51") +SketchConstraintCoincidence_48 = Sketch_3.setCoincident(SketchLine_32.startPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_52") +SketchConstraintCoincidence_49 = Sketch_3.setCoincident(SketchLine_30.startPoint(), SketchLine_34.endPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_53") +SketchConstraintCoincidence_50 = Sketch_3.setCoincident(SketchLine_33.endPoint(), SketchLine_34.endPoint()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_54") +SketchPoint_4 = Sketch_3.addPoint(16.50014787857639, -6) +SketchPoint_4.setAuxiliary(True) +SketchConstraintCoincidence_51 = Sketch_3.setCoincident(SketchPoint_4.coordinates(), SketchLine_34.result()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_55") +SketchConstraintMiddle_2 = Sketch_3.setMiddlePoint(SketchLine_34.result(), SketchPoint_4.coordinates()) +SketchConstraintCoincidence_52 = Sketch_3.setCoincident(SketchPoint_4.coordinates(), SketchLine_21.result()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_56") +SketchLine_35 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_5]")) +SketchLine_35.setName("SketchLine_37") +SketchLine_35.result().setName("SketchLine_37") +SketchConstraintCoincidence_53 = Sketch_3.setCoincident(SketchLine_25.startPoint(), SketchLine_35.result()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_57") +SketchConstraintLength_10 = Sketch_3.setLength(SketchLine_24.result(), 31) +SketchConstraintLength_10.setName("SketchConstraintLength_11") +SketchLine_36 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_9]")) +SketchLine_36.setName("SketchLine_38") +SketchLine_36.result().setName("SketchLine_38") +SketchConstraintCoincidence_54 = Sketch_3.setCoincident(SketchLine_30.startPoint(), SketchLine_36.result()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_58") +SketchConstraintEqual_2 = Sketch_3.setEqual(SketchLine_30.result(), SketchLine_25.result()) +model.do() +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchLine_32f-SketchLine_33f-SketchLine_34f-SketchLine_35f"), model.selection("FACE", "Sketch_3/Face-SketchLine_26f-SketchLine_27f-SketchLine_28f-SketchLine_29f")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_4"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchLine_37 = Sketch_4.addLine(0.4324637622511017, 3.581086955422081, 1.55585595716119, 2.812450190483599) +SketchLine_37.setName("SketchLine_39") +SketchLine_37.result().setName("SketchLine_39") +SketchLine_38 = Sketch_4.addLine(model.selection("EDGE", "[ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_11]")) +SketchLine_38.setName("SketchLine_40") +SketchLine_38.result().setName("SketchLine_40") +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchLine_37.startPoint(), SketchLine_38.result()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_59") +SketchLine_39 = Sketch_4.addLine(1.55585595716119, 2.812450190483599, 2.324492722099671, 3.935842385393688) +SketchLine_39.setName("SketchLine_41") +SketchLine_39.result().setName("SketchLine_41") +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchLine_37.endPoint(), SketchLine_39.startPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_60") +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchLine_39.endPoint(), SketchLine_38.result()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_61") +SketchLine_40 = Sketch_4.addLine(2.324492722099671, 3.935842385393688, 0.4324637622511017, 3.581086955422081) +SketchLine_40.setName("SketchLine_42") +SketchLine_40.result().setName("SketchLine_42") +SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_62") +SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_37.startPoint(), SketchLine_40.endPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_63") +SketchConstraintLength_11 = Sketch_4.setLength(SketchLine_40.result(), 1.925) +SketchConstraintLength_11.setName("SketchConstraintLength_12") +SketchConstraintEqual_3 = Sketch_4.setEqual(SketchLine_37.result(), SketchLine_39.result()) +SketchConstraintPerpendicular_1 = Sketch_4.setPerpendicular(SketchLine_37.result(), SketchLine_39.result()) +SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_38.startPoint(), SketchLine_37.startPoint(), 0.44, False) +SketchMultiTranslation_1_objects = [SketchLine_37.result(), SketchLine_40.result(), SketchLine_39.result()] +SketchMultiTranslation_1 = Sketch_4.addTranslation(SketchMultiTranslation_1_objects, SketchLine_40.startPoint(), SketchLine_38.endPoint(), 4, True) +[SketchLine_41, SketchLine_42, SketchLine_43, SketchLine_44, SketchLine_45, SketchLine_46, SketchLine_47, SketchLine_48, SketchLine_49] = SketchMultiTranslation_1.translated() +SketchLine_49.setName("SketchLine_51") +SketchLine_49.result().setName("SketchLine_51") +SketchLine_48.setName("SketchLine_50") +SketchLine_48.result().setName("SketchLine_50") +SketchLine_47.setName("SketchLine_45") +SketchLine_47.result().setName("SketchLine_45") +SketchLine_46.setName("SketchLine_49") +SketchLine_46.result().setName("SketchLine_49") +SketchLine_45.setName("SketchLine_48") +SketchLine_45.result().setName("SketchLine_48") +SketchLine_44.setName("SketchLine_46") +SketchLine_44.result().setName("SketchLine_46") +SketchLine_43.setName("SketchLine_47") +SketchLine_43.result().setName("SketchLine_47") +SketchLine_42.setName("SketchLine_44") +SketchLine_42.result().setName("SketchLine_44") +SketchLine_41.setName("SketchLine_43") +SketchLine_41.result().setName("SketchLine_43") +model.do() +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/From_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Plane_4 = model.addPlane(Part_1_doc, model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1][ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10]"), model.selection("VERTEX", "[ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2]"), model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1)(ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face)(ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_4&ExtrusionCut_2_1/To_Face_2)][ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face]")) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchArc_4 = Sketch_5.addArc(25, -7.50002056854448, 22, -7.5, 28, -7.5, True) +SketchPoint_5 = Sketch_5.addPoint(22, -7.5) +SketchConstraintRigid_1 = Sketch_5.setFixed(SketchPoint_5.result()) +SketchConstraintRigid_1.setName("SketchConstraintRigid_10") +SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchArc_4.startPoint(), SketchPoint_5.result()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_64") +SketchPoint_6 = Sketch_5.addPoint(28, -7.5) +SketchConstraintRigid_2 = Sketch_5.setFixed(SketchPoint_6.result()) +SketchConstraintRigid_2.setName("SketchConstraintRigid_11") +SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchArc_4.endPoint(), SketchPoint_6.result()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_65") +SketchConstraintRadius_2 = Sketch_5.setRadius(SketchArc_4.results()[1], 3) +SketchLine_50 = Sketch_5.addLine(22, -7.5, 22, -11.56094005408083) +SketchLine_50.setName("SketchLine_52") +SketchLine_50.result().setName("SketchLine_52") +SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchArc_4.startPoint(), SketchLine_50.startPoint()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_66") +SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchPoint_5.coordinates(), SketchLine_50.startPoint()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_67") +SketchLine_51 = Sketch_5.addLine(22, -11.56094005408083, 28, -11.56094005408083) +SketchLine_51.setName("SketchLine_53") +SketchLine_51.result().setName("SketchLine_53") +SketchConstraintCoincidence_64 = Sketch_5.setCoincident(SketchLine_50.endPoint(), SketchLine_51.startPoint()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_68") +SketchLine_52 = Sketch_5.addLine(28, -11.56094005408083, 28, -7.5) +SketchLine_52.setName("SketchLine_54") +SketchLine_52.result().setName("SketchLine_54") +SketchConstraintCoincidence_65 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_52.startPoint()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_69") +SketchConstraintCoincidence_66 = Sketch_5.setCoincident(SketchArc_4.endPoint(), SketchLine_52.endPoint()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_70") +SketchConstraintCoincidence_67 = Sketch_5.setCoincident(SketchPoint_6.coordinates(), SketchLine_52.endPoint()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_71") +SketchConstraintVertical_10 = Sketch_5.setVertical(SketchLine_50.result()) +SketchConstraintVertical_11 = Sketch_5.setVertical(SketchLine_52.result()) +SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_51.result()) +SketchConstraintHorizontal_11.setName("SketchConstraintHorizontal_12") +model.do() +Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face"), 6, True) +Plane_6 = model.addPlane(Part_1_doc, model.selection("FACE", "Plane_2"), 3, True) +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_4_2r-SketchLine_52f-SketchLine_53f-SketchLine_54f")], model.selection(), 3, 0, [model.selection("SOLID", "ExtrusionCut_3_1")]) +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_4_2r-SketchLine_52f-SketchLine_53f-SketchLine_54f")], model.selection(), model.selection("FACE", "Plane_3"), 0, model.selection("FACE", "Plane_2"), 0, [model.selection("SOLID", "ExtrusionCut_4_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_4_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchArc_5 = Sketch_6.addArc(46, 0, 45.5, 0, 46.5, 0, False) +SketchLine_53 = Sketch_6.addLine(0, 0, 54, 0) +SketchLine_53.setName("SketchLine_55") +SketchLine_53.result().setName("SketchLine_55") +SketchConstraintRigid_3 = Sketch_6.setFixed(SketchLine_53.result()) +SketchConstraintRigid_3.setName("SketchConstraintRigid_12") +SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchArc_5.center(), SketchLine_53.result()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_72") +SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchArc_5.startPoint(), SketchLine_53.result()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_73") +SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchArc_5.endPoint(), SketchLine_53.result()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_74") +SketchLine_54 = Sketch_6.addLine(45.5, 0, 46.5, 0) +SketchLine_54.setName("SketchLine_56") +SketchLine_54.result().setName("SketchLine_56") +SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchArc_5.startPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_75") +SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchArc_5.endPoint(), SketchLine_54.endPoint()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_76") +SketchConstraintRadius_3 = Sketch_6.setRadius(SketchArc_5.results()[1], 0.5) +SketchLine_55 = Sketch_6.addLine(0, 0, 0, 3.5) +SketchLine_55.setName("SketchLine_57") +SketchLine_55.result().setName("SketchLine_57") +SketchConstraintDistance_11 = Sketch_6.setDistance(SketchArc_5.center(), SketchLine_55.result(), 46, False) +SketchConstraintRigid_4 = Sketch_6.setFixed(SketchLine_55.result()) +SketchConstraintRigid_4.setName("SketchConstraintRigid_13") +SketchPoint_7 = Sketch_6.addPoint(58, 0) +SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchPoint_7.coordinates(), SketchLine_53.result()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_77") +SketchConstraintDistance_12 = Sketch_6.setDistance(SketchArc_5.center(), SketchPoint_7.coordinates(), 12, False) +SketchMultiTranslation_2 = Sketch_6.addTranslation([SketchLine_54.result(), SketchArc_5.results()[1]], SketchArc_5.center(), SketchPoint_7.coordinates(), 9, True) +[SketchLine_56, SketchLine_57, SketchLine_58, SketchLine_59, SketchLine_60, SketchLine_61, SketchLine_62, SketchLine_63, SketchArc_6, SketchArc_7, SketchArc_8, SketchArc_9, SketchArc_10, SketchArc_11, SketchArc_12, SketchArc_13] = SketchMultiTranslation_2.translated() +SketchLine_63.setName("SketchLine_65") +SketchLine_63.result().setName("SketchLine_65") +SketchLine_62.setName("SketchLine_64") +SketchLine_62.result().setName("SketchLine_64") +SketchLine_61.setName("SketchLine_63") +SketchLine_61.result().setName("SketchLine_63") +SketchLine_60.setName("SketchLine_62") +SketchLine_60.result().setName("SketchLine_62") +SketchLine_59.setName("SketchLine_61") +SketchLine_59.result().setName("SketchLine_61") +SketchLine_58.setName("SketchLine_60") +SketchLine_58.result().setName("SketchLine_60") +SketchLine_57.setName("SketchLine_59") +SketchLine_57.result().setName("SketchLine_59") +SketchLine_56.setName("SketchLine_58") +SketchLine_56.result().setName("SketchLine_58") +model.do() +ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_14r-SketchLine_7f-SketchArc_1_2f-SketchLine_8f-SketchLine_9f-SketchArc_2_2r-SketchLine_12r-SketchLine_11r-SketchLine_10r"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_5_1")]) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_27)(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_26)(ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_4&ExtrusionCut_2_1/To_Face_2)(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_28)_ExtrusionFuse_1_1")) +SketchLine_64 = Sketch_7.addLine(50.25, -4.5, 31.25, -4.5) +SketchLine_64.setName("SketchLine_76") +SketchLine_64.result().setName("SketchLine_76") +SketchLine_65 = Sketch_7.addLine(51, -6.75, 51, -5.25) +SketchLine_65.setName("SketchLine_78") +SketchLine_65.result().setName("SketchLine_78") +SketchLine_66 = Sketch_7.addLine(31, -4.75, 31, -7.249999999978425) +SketchLine_66.setName("SketchLine_80") +SketchLine_66.result().setName("SketchLine_80") +SketchLine_67 = Sketch_7.addLine(31.25000000000632, -7.499999999999999, 50.25, -7.5) +SketchLine_67.setName("SketchLine_79") +SketchLine_67.result().setName("SketchLine_79") +SketchLine_68 = Sketch_7.addLine(51, -4.5, 31, -4.5) +SketchLine_68.setName("SketchLine_66") +SketchLine_68.result().setName("SketchLine_66") +SketchLine_68.setAuxiliary(True) +SketchLine_69 = Sketch_7.addLine(51, -7.5, 51, -4.5) +SketchLine_69.setAuxiliary(True) +SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_69.endPoint(), SketchLine_68.startPoint()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_78") +SketchLine_70 = Sketch_7.addLine(31, -4.5, 31, -7.5) +SketchLine_70.setName("SketchLine_67") +SketchLine_70.result().setName("SketchLine_67") +SketchLine_70.setAuxiliary(True) +SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_79") +SketchLine_71 = Sketch_7.addLine(31, -7.5, 51, -7.5) +SketchLine_71.setName("SketchLine_68") +SketchLine_71.result().setName("SketchLine_68") +SketchLine_71.setAuxiliary(True) +SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_70.endPoint(), SketchLine_71.startPoint()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_80") +SketchConstraintCoincidence_77 = Sketch_7.setCoincident(SketchLine_71.endPoint(), SketchLine_69.startPoint()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_81") +SketchConstraintHorizontal_12 = Sketch_7.setHorizontal(SketchLine_68.result()) +SketchConstraintHorizontal_12.setName("SketchConstraintHorizontal_13") +SketchConstraintVertical_12 = Sketch_7.setVertical(SketchLine_70.result()) +SketchConstraintHorizontal_13 = Sketch_7.setHorizontal(SketchLine_71.result()) +SketchConstraintHorizontal_13.setName("SketchConstraintHorizontal_14") +SketchConstraintVertical_13 = Sketch_7.setVertical(SketchLine_69.result()) +SketchLine_72 = Sketch_7.addLine(31, -7.5, 51, -4.5) +SketchLine_72.setName("SketchLine_70") +SketchLine_72.result().setName("SketchLine_70") +SketchLine_72.setAuxiliary(True) +SketchConstraintCoincidence_78 = Sketch_7.setCoincident(SketchLine_70.endPoint(), SketchLine_72.startPoint()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_82") +SketchConstraintCoincidence_79 = Sketch_7.setCoincident(SketchLine_71.startPoint(), SketchLine_72.startPoint()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_83") +SketchPoint_8 = Sketch_7.addPoint(51, -4.5) +SketchConstraintCoincidence_80 = Sketch_7.setCoincident(SketchLine_68.startPoint(), SketchPoint_8.coordinates()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_84") +SketchConstraintCoincidence_81 = Sketch_7.setCoincident(SketchLine_69.endPoint(), SketchPoint_8.coordinates()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_85") +SketchPoint_9 = Sketch_7.addPoint(41, -6) +SketchPoint_9.setAuxiliary(True) +SketchConstraintCoincidence_82 = Sketch_7.setCoincident(SketchPoint_9.coordinates(), SketchLine_72.result()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_86") +SketchConstraintMiddle_3 = Sketch_7.setMiddlePoint(SketchLine_72.result(), SketchPoint_9.coordinates()) +SketchPoint_10 = Sketch_7.addPoint(21, -6) +SketchPoint_10.setAuxiliary(True) +SketchLine_73 = Sketch_7.addLine(21, -10.5, 21, -1.5) +SketchLine_73.setName("SketchLine_71") +SketchLine_73.result().setName("SketchLine_71") +SketchConstraintRigid_5 = Sketch_7.setFixed(SketchLine_73.result()) +SketchConstraintRigid_5.setName("SketchConstraintRigid_14") +SketchConstraintCoincidence_83 = Sketch_7.setCoincident(SketchPoint_10.coordinates(), SketchLine_73.result()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_87") +SketchConstraintMiddle_4 = Sketch_7.setMiddlePoint(SketchPoint_10.coordinates(), SketchLine_73.result()) +SketchLine_74 = Sketch_7.addLine(21, -6, 41, -6) +SketchLine_74.setName("SketchLine_72") +SketchLine_74.result().setName("SketchLine_72") +SketchLine_74.setAuxiliary(True) +SketchConstraintCoincidence_84 = Sketch_7.setCoincident(SketchPoint_10.coordinates(), SketchLine_74.startPoint()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_88") +SketchConstraintCoincidence_85 = Sketch_7.setCoincident(SketchPoint_9.coordinates(), SketchLine_74.endPoint()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_89") +SketchConstraintHorizontal_14 = Sketch_7.setHorizontal(SketchLine_74.result()) +SketchConstraintHorizontal_14.setName("SketchConstraintHorizontal_15") +SketchConstraintCoincidence_86 = Sketch_7.setCoincident(SketchLine_72.endPoint(), SketchLine_68.startPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_90") +SketchConstraintLength_12 = Sketch_7.setLength(SketchLine_69.result(), 3) +SketchConstraintLength_12.setName("SketchConstraintLength_13") +SketchConstraintLength_13 = Sketch_7.setLength(SketchLine_68.result(), 20) +SketchConstraintLength_13.setName("SketchConstraintLength_14") +SketchPoint_11 = Sketch_7.addPoint(29, -10.5) +SketchConstraintDistance_13 = Sketch_7.setDistance(SketchPoint_11.coordinates(), SketchLine_70.result(), 2, False) +SketchConstraintRigid_6 = Sketch_7.setFixed(SketchPoint_11.result()) +SketchConstraintRigid_6.setName("SketchConstraintRigid_15") +SketchArc_14 = Sketch_7.addArc(50.25, -5.25, 51, -5.25, 50.25, -4.5, False) +SketchLine_75 = Sketch_7.addLine(51, -7.5, 51, -5.25) +SketchLine_75.setName("SketchLine_74") +SketchLine_75.result().setName("SketchLine_74") +SketchLine_75.setAuxiliary(True) +SketchConstraintCoincidence_87 = Sketch_7.setCoincident(SketchArc_14.startPoint(), SketchLine_75.endPoint()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_91") +SketchLine_76 = Sketch_7.addLine(50.25, -4.5, 31, -4.5) +SketchLine_76.setName("SketchLine_73") +SketchLine_76.result().setName("SketchLine_73") +SketchLine_76.setAuxiliary(True) +SketchConstraintCoincidence_88 = Sketch_7.setCoincident(SketchArc_14.endPoint(), SketchLine_76.startPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_92") +SketchConstraintTangent_2 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_76.result()) +SketchConstraintTangent_3 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_75.result()) +SketchConstraintCoincidence_89 = Sketch_7.setCoincident(SketchLine_68.endPoint(), SketchLine_76.endPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_90 = Sketch_7.setCoincident(SketchLine_69.startPoint(), SketchLine_75.startPoint()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_94") +SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_76.startPoint(), SketchLine_68.result()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_95") +SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_75.endPoint(), SketchLine_69.result()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_96") +SketchArc_15 = Sketch_7.addArc(31.25, -4.750000000010547, 31.24999999999071, -4.5, 31, -4.750000000010547, False) +SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchArc_15.startPoint(), SketchLine_64.endPoint()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_97") +SketchLine_77 = Sketch_7.addLine(31, -4.75, 31, -7.5) +SketchLine_77.setName("SketchLine_75") +SketchLine_77.result().setName("SketchLine_75") +SketchLine_77.setAuxiliary(True) +SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchArc_15.endPoint(), SketchLine_77.startPoint()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_98") +SketchConstraintTangent_4 = Sketch_7.setTangent(SketchArc_15.results()[1], SketchLine_77.result()) +SketchConstraintTangent_5 = Sketch_7.setTangent(SketchArc_15.results()[1], SketchLine_64.result()) +SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_70.endPoint(), SketchLine_77.endPoint()) +SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_99") +SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_76.startPoint(), SketchLine_64.startPoint()) +SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_100") +SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_77.startPoint(), SketchLine_70.result()) +SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_101") +SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_64.endPoint(), SketchLine_76.result()) +SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_102") +SketchArc_16 = Sketch_7.addArc(50.25, -6.75, 50.25, -7.5, 51, -6.75, False) +SketchLine_78 = Sketch_7.addLine(31, -7.5, 50.25, -7.5) +SketchLine_78.setName("SketchLine_77") +SketchLine_78.result().setName("SketchLine_77") +SketchLine_78.setAuxiliary(True) +SketchConstraintCoincidence_99 = Sketch_7.setCoincident(SketchArc_16.startPoint(), SketchLine_78.endPoint()) +SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_103") +SketchConstraintCoincidence_100 = Sketch_7.setCoincident(SketchArc_16.endPoint(), SketchLine_65.startPoint()) +SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_104") +SketchConstraintTangent_6 = Sketch_7.setTangent(SketchArc_16.results()[1], SketchLine_78.result()) +SketchConstraintTangent_7 = Sketch_7.setTangent(SketchArc_16.results()[1], SketchLine_65.result()) +SketchConstraintCoincidence_101 = Sketch_7.setCoincident(SketchLine_71.startPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_105") +SketchConstraintCoincidence_102 = Sketch_7.setCoincident(SketchLine_75.endPoint(), SketchLine_65.endPoint()) +SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_106") +SketchConstraintCoincidence_103 = Sketch_7.setCoincident(SketchLine_78.endPoint(), SketchLine_71.result()) +SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_107") +SketchConstraintCoincidence_104 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_75.result()) +SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_108") +SketchArc_17 = Sketch_7.addArc(31.25000000000166, -7.249999999978784, 31, -7.249999999978425, 31.25000000000632, -7.499999999999999, False) +SketchConstraintCoincidence_105 = Sketch_7.setCoincident(SketchArc_17.startPoint(), SketchLine_66.endPoint()) +SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_109") +SketchConstraintCoincidence_106 = Sketch_7.setCoincident(SketchArc_17.endPoint(), SketchLine_67.startPoint()) +SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_110") +SketchConstraintCoincidence_107 = Sketch_7.setCoincident(SketchLine_78.endPoint(), SketchLine_67.endPoint()) +SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_111") +SketchConstraintCoincidence_108 = Sketch_7.setCoincident(SketchLine_77.startPoint(), SketchLine_66.startPoint()) +SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_112") +SketchConstraintCoincidence_109 = Sketch_7.setCoincident(SketchLine_67.startPoint(), SketchLine_78.result()) +SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_113") +SketchConstraintCoincidence_110 = Sketch_7.setCoincident(SketchLine_66.endPoint(), SketchLine_77.result()) +SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_114") +SketchConstraintRadius_4 = Sketch_7.setRadius(SketchArc_14.results()[1], 0.75) +SketchConstraintRadius_5 = Sketch_7.setRadius(SketchArc_16.results()[1], 0.75) +SketchConstraintRadius_6 = Sketch_7.setRadius(SketchArc_15.results()[1], 0.25) +SketchConstraintTangent_8 = Sketch_7.setTangent(SketchArc_17.results()[1], SketchLine_67.result()) +SketchConstraintTangent_8.setName("SketchConstraintTangent_16") +SketchConstraintTangent_9 = Sketch_7.setTangent(SketchArc_17.results()[1], SketchLine_66.result()) +SketchConstraintTangent_9.setName("SketchConstraintTangent_17") +SketchConstraintRadius_7 = Sketch_7.setRadius(SketchArc_17.results()[1], 0.25) +SketchConstraintRadius_7.setName("SketchConstraintRadius_10") +model.do() +ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection(), 0, 20, [model.selection("SOLID", "ExtrusionFuse_1_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "(ExtrusionFuse_1_1/Modified_Face&Extrusion_1_1/From_Face)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_76)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchArc_15_2)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_80)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchArc_17_2)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_79)(ExtrusionFuse_1_1/Modified_Face&Extrusion_1_1/To_Face)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10)")) +SketchPoint_12 = Sketch_8.addPoint(54, 0) +SketchPoint_13 = Sketch_8.addPoint(54, 0) +SketchConstraintRigid_7 = Sketch_8.setFixed(SketchPoint_13.result()) +SketchConstraintRigid_7.setName("SketchConstraintRigid_16") +SketchConstraintCoincidence_111 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchPoint_13.result()) +SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_115") +SketchPoint_14 = Sketch_8.addPoint(54, 12) +SketchLine_79 = Sketch_8.addLine(54, 12, 54, 0) +SketchLine_79.setName("SketchLine_81") +SketchLine_79.result().setName("SketchLine_81") +SketchLine_79.setAuxiliary(True) +SketchConstraintCoincidence_112 = Sketch_8.setCoincident(SketchPoint_14.coordinates(), SketchLine_79.startPoint()) +SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_116") +SketchConstraintCoincidence_113 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_79.endPoint()) +SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_117") +SketchConstraintCoincidence_114 = Sketch_8.setCoincident(SketchPoint_13.coordinates(), SketchLine_79.endPoint()) +SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_118") +SketchPoint_15 = Sketch_8.addPoint(54, 11) +SketchConstraintCoincidence_115 = Sketch_8.setCoincident(SketchPoint_15.coordinates(), SketchLine_79.result()) +SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_119") +SketchPoint_16 = Sketch_8.addPoint(54, 1) +SketchConstraintCoincidence_116 = Sketch_8.setCoincident(SketchPoint_16.coordinates(), SketchLine_79.result()) +SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_120") +SketchConstraintDistance_14 = Sketch_8.setDistance(SketchPoint_12.coordinates(), SketchPoint_16.coordinates(), 1, False) +SketchConstraintDistance_15 = Sketch_8.setDistance(SketchPoint_14.coordinates(), SketchPoint_15.coordinates(), 1, False) +SketchPoint_17 = Sketch_8.addPoint(54, 12) +SketchConstraintCoincidence_117 = Sketch_8.setCoincident(SketchPoint_14.coordinates(), SketchPoint_17.coordinates()) +SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_121") +SketchConstraintRigid_8 = Sketch_8.setFixed(SketchPoint_17.result()) +SketchConstraintRigid_8.setName("SketchConstraintRigid_17") +SketchLine_80 = Sketch_8.addLine(54, 11, 43.82041221793113, 11) +SketchLine_80.setName("SketchLine_82") +SketchLine_80.result().setName("SketchLine_82") +SketchConstraintCoincidence_118 = Sketch_8.setCoincident(SketchPoint_15.coordinates(), SketchLine_80.startPoint()) +SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_122") +SketchLine_81 = Sketch_8.addLine(43.82041221793113, 11, 43.82041221793113, 13.36310636658867) +SketchLine_81.setName("SketchLine_83") +SketchLine_81.result().setName("SketchLine_83") +SketchConstraintCoincidence_119 = Sketch_8.setCoincident(SketchLine_80.endPoint(), SketchLine_81.startPoint()) +SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_123") +SketchLine_82 = Sketch_8.addLine(43.82041221793113, 13.36310636658867, 63.09515214070713, 13.47539228785809) +SketchLine_82.setName("SketchLine_84") +SketchLine_82.result().setName("SketchLine_84") +SketchConstraintCoincidence_120 = Sketch_8.setCoincident(SketchLine_81.endPoint(), SketchLine_82.startPoint()) +SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_124") +SketchLine_83 = Sketch_8.addLine(63.09515214070713, 13.47539228785809, 63.12349734647592, -1.774328415749978) +SketchLine_83.setName("SketchLine_85") +SketchLine_83.result().setName("SketchLine_85") +SketchConstraintCoincidence_121 = Sketch_8.setCoincident(SketchLine_82.endPoint(), SketchLine_83.startPoint()) +SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_125") +SketchLine_84 = Sketch_8.addLine(63.12349734647592, -1.774328415749978, 43.82041221793113, -1.802673621518767) +SketchLine_84.setName("SketchLine_86") +SketchLine_84.result().setName("SketchLine_86") +SketchConstraintCoincidence_122 = Sketch_8.setCoincident(SketchLine_83.endPoint(), SketchLine_84.startPoint()) +SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_126") +SketchLine_85 = Sketch_8.addLine(43.82041221793113, -1.802673621518767, 43.79206701216234, 1) +SketchLine_85.setName("SketchLine_87") +SketchLine_85.result().setName("SketchLine_87") +SketchConstraintCoincidence_123 = Sketch_8.setCoincident(SketchLine_84.endPoint(), SketchLine_85.startPoint()) +SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_127") +SketchLine_86 = Sketch_8.addLine(54, 1, 43.79206701216234, 1) +SketchLine_86.setName("SketchLine_88") +SketchLine_86.result().setName("SketchLine_88") +SketchConstraintCoincidence_124 = Sketch_8.setCoincident(SketchPoint_16.coordinates(), SketchLine_86.startPoint()) +SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_128") +SketchConstraintHorizontal_15 = Sketch_8.setHorizontal(SketchLine_86.result()) +SketchConstraintHorizontal_15.setName("SketchConstraintHorizontal_16") +SketchConstraintHorizontal_16 = Sketch_8.setHorizontal(SketchLine_80.result()) +SketchConstraintHorizontal_16.setName("SketchConstraintHorizontal_17") +SketchConstraintCoincidence_125 = Sketch_8.setCoincident(SketchLine_85.endPoint(), SketchLine_86.endPoint()) +SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_129") +SketchArc_18 = Sketch_8.addArc(54, 6, 54, 11, 54, 1, True) +SketchConstraintCoincidence_126 = Sketch_8.setCoincident(SketchArc_18.center(), SketchLine_79.result()) +SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_130") +SketchConstraintCoincidence_127 = Sketch_8.setCoincident(SketchPoint_15.coordinates(), SketchArc_18.startPoint()) +SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_130_") +SketchConstraintCoincidence_128 = Sketch_8.setCoincident(SketchLine_80.startPoint(), SketchArc_18.startPoint()) +SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_131") +SketchConstraintCoincidence_129 = Sketch_8.setCoincident(SketchPoint_16.coordinates(), SketchArc_18.endPoint()) +SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_132") +SketchConstraintCoincidence_130 = Sketch_8.setCoincident(SketchLine_86.startPoint(), SketchArc_18.endPoint()) +SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_133") +SketchLine_87 = Sketch_8.addLine(43.50261344273609, 8.25, 43.50261344273609, 3.75) +SketchLine_87.setName("SketchLine_90") +SketchLine_87.result().setName("SketchLine_90") +SketchConstraintVertical_14 = Sketch_8.setVertical(SketchLine_87.result()) +SketchConstraintLength_14 = Sketch_8.setLength(SketchLine_87.result(), 4.5) +SketchConstraintLength_14.setName("SketchConstraintLength_15") +SketchPoint_18 = Sketch_8.addPoint(43.50261344273609, 6) +SketchConstraintMiddle_5 = Sketch_8.setMiddlePoint(SketchPoint_18.coordinates(), SketchLine_87.result()) +SketchPoint_19 = Sketch_8.addPoint(0, 6) +SketchPoint_19.setAuxiliary(True) +SketchLine_88 = Sketch_8.addLine(0, 0, 0, 12) +SketchLine_88.setName("SketchLine_94") +SketchLine_88.result().setName("SketchLine_94") +SketchConstraintRigid_9 = Sketch_8.setFixed(SketchLine_88.result()) +SketchConstraintRigid_9.setName("SketchConstraintRigid_19") +SketchConstraintCoincidence_131 = Sketch_8.setCoincident(SketchPoint_19.coordinates(), SketchLine_88.result()) +SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_139") +SketchConstraintMiddle_6 = Sketch_8.setMiddlePoint(SketchLine_88.result(), SketchPoint_19.coordinates()) +SketchLine_89 = Sketch_8.addLine(0, 6, 68.8619738308997, 6) +SketchLine_89.setName("SketchLine_95") +SketchLine_89.result().setName("SketchLine_95") +SketchLine_89.setAuxiliary(True) +SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchPoint_19.coordinates(), SketchLine_89.startPoint()) +SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_140") +SketchConstraintHorizontal_17 = Sketch_8.setHorizontal(SketchLine_89.result()) +SketchConstraintHorizontal_17.setName("SketchConstraintHorizontal_20") +SketchPoint_20 = Sketch_8.addPoint(48.00130672136804, 6) +SketchConstraintCoincidence_133 = Sketch_8.setCoincident(SketchPoint_20.coordinates(), SketchLine_89.result()) +SketchConstraintCoincidence_133.setName("SketchConstraintCoincidence_146") +SketchLine_90 = Sketch_8.addLine(43.50261344273609, 8.25, 51.26978940411676, 8.25) +SketchLine_90.setName("SketchLine_92") +SketchLine_90.result().setName("SketchLine_92") +SketchConstraintCoincidence_134 = Sketch_8.setCoincident(SketchLine_87.startPoint(), SketchLine_90.startPoint()) +SketchConstraintCoincidence_134.setName("SketchConstraintCoincidence_135") +SketchLine_91 = Sketch_8.addLine(51.26978940411676, 8.25, 51.26978940411676, 3.75) +SketchLine_91.setName("SketchLine_97") +SketchLine_91.result().setName("SketchLine_97") +SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchLine_90.endPoint(), SketchLine_91.startPoint()) +SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_136") +SketchLine_92 = Sketch_8.addLine(51.26978940411676, 3.75, 43.50261344273609, 3.75) +SketchLine_92.setName("SketchLine_98") +SketchLine_92.result().setName("SketchLine_98") +SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchLine_91.endPoint(), SketchLine_92.startPoint()) +SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_137") +SketchConstraintCoincidence_137 = Sketch_8.setCoincident(SketchLine_87.endPoint(), SketchLine_92.endPoint()) +SketchConstraintCoincidence_137.setName("SketchConstraintCoincidence_138") +SketchConstraintHorizontal_18 = Sketch_8.setHorizontal(SketchLine_92.result()) +SketchConstraintHorizontal_19 = Sketch_8.setHorizontal(SketchLine_90.result()) +SketchConstraintVertical_15 = Sketch_8.setVertical(SketchLine_91.result()) +SketchLine_93 = Sketch_8.addLine(43.50261344273609, 3.75, 51.26978940411676, 8.25) +SketchLine_93.setAuxiliary(True) +SketchConstraintCoincidence_138 = Sketch_8.setCoincident(SketchLine_87.endPoint(), SketchLine_93.startPoint()) +SketchConstraintCoincidence_138.setName("SketchConstraintCoincidence_141") +SketchConstraintCoincidence_139 = Sketch_8.setCoincident(SketchLine_92.endPoint(), SketchLine_93.startPoint()) +SketchConstraintCoincidence_139.setName("SketchConstraintCoincidence_142") +SketchConstraintCoincidence_140 = Sketch_8.setCoincident(SketchLine_91.startPoint(), SketchLine_93.endPoint()) +SketchConstraintCoincidence_140.setName("SketchConstraintCoincidence_143") +SketchPoint_21 = Sketch_8.addPoint(47.38620142342643, 6) +SketchPoint_21.setAuxiliary(True) +SketchConstraintCoincidence_141 = Sketch_8.setCoincident(SketchPoint_21.coordinates(), SketchLine_93.result()) +SketchConstraintCoincidence_141.setName("SketchConstraintCoincidence_144") +SketchConstraintMiddle_7 = Sketch_8.setMiddlePoint(SketchPoint_21.coordinates(), SketchLine_93.result()) +SketchConstraintCoincidence_142 = Sketch_8.setCoincident(SketchPoint_21.coordinates(), SketchLine_89.result()) +SketchConstraintCoincidence_142.setName("SketchConstraintCoincidence_145") +model.do() +ExtrusionCut_7 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_8")], model.selection(), 10, 0, [model.selection("SOLID", "ExtrusionCut_6_1")]) +Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_7_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchLine_94 = Sketch_9.addLine(21, 4.163450069699051, 21, 0) +SketchLine_94.setName("SketchLine_107") +SketchLine_94.result().setName("SketchLine_107") +SketchLine_95 = Sketch_9.addLine(29, 5, 21, 5) +SketchLine_95.setName("SketchLine_96") +SketchLine_95.result().setName("SketchLine_96") +SketchLine_95.setAuxiliary(True) +SketchArc_19 = Sketch_9.addArc(25, 8, 21.53774043054522, 4.392679848735523, 28.46225956945478, 4.392679848735522, False) +SketchArc_19.setName("SketchArc_22") +SketchArc_19.result().setName("SketchArc_22") +SketchArc_19.results()[1].setName("SketchArc_22_2") +SketchLine_96 = Sketch_9.addLine(21, 0, 29, 0) +SketchLine_96.setName("SketchLine_100") +SketchLine_96.result().setName("SketchLine_100") +SketchLine_97 = Sketch_9.addLine(29, 0, 29, 4.163450069699049) +SketchLine_97.setName("SketchLine_108") +SketchLine_97.result().setName("SketchLine_108") +SketchLine_98 = Sketch_9.addLine(29, 0, 29, 5) +SketchLine_98.setName("SketchLine_101") +SketchLine_98.result().setName("SketchLine_101") +SketchLine_98.setAuxiliary(True) +SketchConstraintCoincidence_143 = Sketch_9.setCoincident(SketchLine_98.endPoint(), SketchLine_95.startPoint()) +SketchConstraintCoincidence_143.setName("SketchConstraintCoincidence_147") +SketchLine_99 = Sketch_9.addLine(21, 5, 21, 0) +SketchLine_99.setAuxiliary(True) +SketchConstraintCoincidence_144 = Sketch_9.setCoincident(SketchLine_95.endPoint(), SketchLine_99.startPoint()) +SketchConstraintCoincidence_144.setName("SketchConstraintCoincidence_148") +SketchConstraintCoincidence_145 = Sketch_9.setCoincident(SketchLine_99.endPoint(), SketchLine_96.startPoint()) +SketchConstraintCoincidence_145.setName("SketchConstraintCoincidence_149") +SketchConstraintCoincidence_146 = Sketch_9.setCoincident(SketchLine_96.endPoint(), SketchLine_98.startPoint()) +SketchConstraintCoincidence_146.setName("SketchConstraintCoincidence_150") +SketchConstraintHorizontal_20 = Sketch_9.setHorizontal(SketchLine_95.result()) +SketchConstraintHorizontal_20.setName("SketchConstraintHorizontal_21") +SketchConstraintVertical_16 = Sketch_9.setVertical(SketchLine_99.result()) +SketchConstraintHorizontal_21 = Sketch_9.setHorizontal(SketchLine_96.result()) +SketchConstraintHorizontal_21.setName("SketchConstraintHorizontal_22") +SketchConstraintVertical_17 = Sketch_9.setVertical(SketchLine_98.result()) +SketchPoint_22 = Sketch_9.addPoint(21, 7.5) +SketchConstraintCoincidence_147 = Sketch_9.setCoincident(SketchLine_99.result(), SketchPoint_22.coordinates()) +SketchConstraintCoincidence_147.setName("SketchConstraintCoincidence_151") +SketchConstraintRigid_10 = Sketch_9.setFixed(SketchPoint_22.result()) +SketchConstraintRigid_10.setName("SketchConstraintRigid_18") +SketchPoint_23 = Sketch_9.addPoint(29, 7.5) +SketchConstraintCoincidence_148 = Sketch_9.setCoincident(SketchLine_98.result(), SketchPoint_23.coordinates()) +SketchConstraintCoincidence_148.setName("SketchConstraintCoincidence_152") +SketchConstraintRigid_11 = Sketch_9.setFixed(SketchPoint_23.result()) +SketchConstraintRigid_11.setName("SketchConstraintRigid_20") +SketchConstraintLength_15 = Sketch_9.setLength(SketchLine_99.result(), 5) +SketchConstraintLength_15.setName("SketchConstraintLength_16") +SketchLine_100 = Sketch_9.addLine(0, 0, 45.5, 0) +SketchLine_100.setName("SketchLine_102") +SketchLine_100.result().setName("SketchLine_102") +SketchConstraintCoincidence_149 = Sketch_9.setCoincident(SketchLine_99.endPoint(), SketchLine_100.result()) +SketchConstraintCoincidence_149.setName("SketchConstraintCoincidence_153") +SketchConstraintRigid_12 = Sketch_9.setFixed(SketchLine_100.result()) +SketchConstraintRigid_12.setName("SketchConstraintRigid_21") +SketchArc_20 = Sketch_9.addArc(25, 8, 21, 5, 29, 5, False) +SketchArc_20.setName("SketchArc_19") +SketchArc_20.result().setName("SketchArc_19") +SketchArc_20.results()[1].setName("SketchArc_19_2") +SketchArc_20.setAuxiliary(True) +SketchConstraintCoincidence_150 = Sketch_9.setCoincident(SketchLine_95.endPoint(), SketchArc_20.startPoint()) +SketchConstraintCoincidence_150.setName("SketchConstraintCoincidence_154") +SketchConstraintCoincidence_151 = Sketch_9.setCoincident(SketchLine_99.startPoint(), SketchArc_20.startPoint()) +SketchConstraintCoincidence_151.setName("SketchConstraintCoincidence_155") +SketchConstraintCoincidence_152 = Sketch_9.setCoincident(SketchLine_95.startPoint(), SketchArc_20.endPoint()) +SketchConstraintCoincidence_152.setName("SketchConstraintCoincidence_156") +SketchConstraintCoincidence_153 = Sketch_9.setCoincident(SketchLine_98.endPoint(), SketchArc_20.endPoint()) +SketchConstraintCoincidence_153.setName("SketchConstraintCoincidence_157") +SketchConstraintRadius_8 = Sketch_9.setRadius(SketchArc_20.results()[1], 5) +SketchLine_101 = Sketch_9.addLine(1, 0, 1, 1.8) +SketchLine_101.setName("SketchLine_103") +SketchLine_101.result().setName("SketchLine_103") +SketchConstraintCoincidence_154 = Sketch_9.setCoincident(SketchLine_101.startPoint(), SketchLine_100.result()) +SketchConstraintCoincidence_154.setName("SketchConstraintCoincidence_158") +SketchLine_102 = Sketch_9.addLine(1, 1.8, 8, 3.389761862250954) +SketchLine_102.setName("SketchLine_104") +SketchLine_102.result().setName("SketchLine_104") +SketchConstraintCoincidence_155 = Sketch_9.setCoincident(SketchLine_101.endPoint(), SketchLine_102.startPoint()) +SketchConstraintCoincidence_155.setName("SketchConstraintCoincidence_159") +SketchLine_103 = Sketch_9.addLine(8, 3.389761862250954, 8, 0) +SketchLine_103.setName("SketchLine_105") +SketchLine_103.result().setName("SketchLine_105") +SketchConstraintCoincidence_156 = Sketch_9.setCoincident(SketchLine_102.endPoint(), SketchLine_103.startPoint()) +SketchConstraintCoincidence_156.setName("SketchConstraintCoincidence_160") +SketchLine_104 = Sketch_9.addLine(8, 0, 1, 0) +SketchLine_104.setName("SketchLine_106") +SketchLine_104.result().setName("SketchLine_106") +SketchConstraintCoincidence_157 = Sketch_9.setCoincident(SketchLine_103.endPoint(), SketchLine_104.startPoint()) +SketchConstraintCoincidence_157.setName("SketchConstraintCoincidence_161") +SketchConstraintCoincidence_158 = Sketch_9.setCoincident(SketchLine_101.startPoint(), SketchLine_104.endPoint()) +SketchConstraintCoincidence_158.setName("SketchConstraintCoincidence_162") +SketchConstraintCoincidence_159 = Sketch_9.setCoincident(SketchLine_104.startPoint(), SketchLine_100.result()) +SketchConstraintCoincidence_159.setName("SketchConstraintCoincidence_163") +SketchConstraintVertical_18 = Sketch_9.setVertical(SketchLine_103.result()) +SketchConstraintVertical_19 = Sketch_9.setVertical(SketchLine_101.result()) +SketchConstraintLength_16 = Sketch_9.setLength(SketchLine_104.result(), 7) +SketchConstraintLength_16.setName("SketchConstraintLength_17") +SketchConstraintDistance_16 = Sketch_9.setDistance(SketchLine_101.result(), SketchLine_100.startPoint(), 1, False) +SketchConstraintLength_17 = Sketch_9.setLength(SketchLine_101.result(), 1.8) +SketchConstraintLength_17.setName("SketchConstraintLength_18") +SketchArc_21 = Sketch_9.addArc(21.31772863153846, 4.163450069699051, 21.53774043054522, 4.392679848735523, 21, 4.163450069699051, False) +SketchArc_22 = Sketch_9.addArc(25, 8, 21.53774043054522, 4.392679848735523, 29, 5, False) +SketchArc_22.setName("SketchArc_20") +SketchArc_22.result().setName("SketchArc_20") +SketchArc_22.results()[1].setName("SketchArc_20_2") +SketchArc_22.setAuxiliary(True) +SketchConstraintCoincidence_160 = Sketch_9.setCoincident(SketchArc_21.startPoint(), SketchArc_22.startPoint()) +SketchConstraintCoincidence_160.setName("SketchConstraintCoincidence_164") +SketchConstraintCoincidence_161 = Sketch_9.setCoincident(SketchArc_21.endPoint(), SketchLine_94.startPoint()) +SketchConstraintCoincidence_161.setName("SketchConstraintCoincidence_165") +SketchConstraintTangent_10 = Sketch_9.setTangent(SketchArc_21.results()[1], SketchLine_94.result()) +SketchConstraintTangent_11 = Sketch_9.setTangent(SketchArc_21.results()[1], SketchArc_22.results()[1]) +SketchConstraintCoincidence_162 = Sketch_9.setCoincident(SketchLine_99.endPoint(), SketchLine_94.endPoint()) +SketchConstraintCoincidence_162.setName("SketchConstraintCoincidence_166") +SketchConstraintCoincidence_163 = Sketch_9.setCoincident(SketchArc_20.endPoint(), SketchArc_22.endPoint()) +SketchConstraintCoincidence_163.setName("SketchConstraintCoincidence_167") +SketchConstraintTangent_12 = Sketch_9.setTangent(SketchArc_20.results()[1], SketchArc_22.results()[1]) +SketchConstraintCoincidence_164 = Sketch_9.setCoincident(SketchLine_94.startPoint(), SketchLine_99.result()) +SketchConstraintCoincidence_164.setName("SketchConstraintCoincidence_168") +SketchConstraintCoincidence_165 = Sketch_9.setCoincident(SketchArc_22.startPoint(), SketchArc_20.results()[1]) +SketchConstraintCoincidence_165.setName("SketchConstraintCoincidence_169") +SketchArc_23 = Sketch_9.addArc(28.68227136846154, 4.163450069699049, 29, 4.163450069699049, 28.46225956945478, 4.392679848735522, False) +SketchConstraintCoincidence_166 = Sketch_9.setCoincident(SketchArc_23.startPoint(), SketchLine_97.endPoint()) +SketchConstraintCoincidence_166.setName("SketchConstraintCoincidence_170") +SketchConstraintCoincidence_167 = Sketch_9.setCoincident(SketchArc_23.endPoint(), SketchArc_19.endPoint()) +SketchConstraintCoincidence_167.setName("SketchConstraintCoincidence_171") +SketchConstraintTangent_13 = Sketch_9.setTangent(SketchArc_23.results()[1], SketchArc_19.results()[1]) +SketchConstraintTangent_14 = Sketch_9.setTangent(SketchArc_23.results()[1], SketchLine_97.result()) +SketchConstraintCoincidence_168 = Sketch_9.setCoincident(SketchArc_22.startPoint(), SketchArc_19.startPoint()) +SketchConstraintCoincidence_168.setName("SketchConstraintCoincidence_172") +SketchConstraintCoincidence_169 = Sketch_9.setCoincident(SketchLine_98.startPoint(), SketchLine_97.startPoint()) +SketchConstraintCoincidence_169.setName("SketchConstraintCoincidence_173") +SketchConstraintTangent_15 = Sketch_9.setTangent(SketchArc_22.results()[1], SketchArc_19.results()[1]) +SketchConstraintCoincidence_170 = Sketch_9.setCoincident(SketchArc_19.endPoint(), SketchArc_22.results()[1]) +SketchConstraintCoincidence_170.setName("SketchConstraintCoincidence_174") +SketchConstraintCoincidence_171 = Sketch_9.setCoincident(SketchLine_97.endPoint(), SketchLine_98.result()) +SketchConstraintCoincidence_171.setName("SketchConstraintCoincidence_175") +model.do() +Plane_7 = model.addPlane(Part_1_doc, model.selection("FACE", "Plane_2"), 4, False) +Plane_8 = model.addPlane(Part_1_doc, model.selection("FACE", "Plane_2"), 4, True) +ExtrusionCut_8 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection(), model.selection("FACE", "Plane_5"), 0, model.selection("FACE", "Plane_4"), 0, [model.selection("SOLID", "ExtrusionCut_7_1")]) +Sketch_10 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_8_1/Modified_Face&Sketch_1/SketchLine_1")) +SketchCircle_1 = Sketch_10.addCircle(12, 6, 1) +SketchConstraintRadius_9 = Sketch_10.setRadius(SketchCircle_1.results()[1], 1) +SketchPoint_24 = Sketch_10.addPoint(0, 6) +SketchPoint_24.setAuxiliary(True) +SketchLine_105 = Sketch_10.addLine(0, 0, 0, 12) +SketchLine_105.setName("SketchLine_109") +SketchLine_105.result().setName("SketchLine_109") +SketchConstraintRigid_13 = Sketch_10.setFixed(SketchLine_105.result()) +SketchConstraintRigid_13.setName("SketchConstraintRigid_22") +SketchConstraintCoincidence_172 = Sketch_10.setCoincident(SketchPoint_24.coordinates(), SketchLine_105.result()) +SketchConstraintCoincidence_172.setName("SketchConstraintCoincidence_176") +SketchConstraintMiddle_8 = Sketch_10.setMiddlePoint(SketchLine_105.result(), SketchPoint_24.coordinates()) +SketchLine_106 = Sketch_10.addLine(0, 6, 17.31036191565843, 6) +SketchLine_106.setName("SketchLine_110") +SketchLine_106.result().setName("SketchLine_110") +SketchLine_106.setAuxiliary(True) +SketchConstraintCoincidence_173 = Sketch_10.setCoincident(SketchPoint_24.coordinates(), SketchLine_106.startPoint()) +SketchConstraintCoincidence_173.setName("SketchConstraintCoincidence_177") +SketchConstraintHorizontal_22 = Sketch_10.setHorizontal(SketchLine_106.result()) +SketchConstraintHorizontal_22.setName("SketchConstraintHorizontal_23") +SketchConstraintCoincidence_174 = Sketch_10.setCoincident(SketchCircle_1.center(), SketchLine_106.result()) +SketchConstraintCoincidence_174.setName("SketchConstraintCoincidence_178") +SketchConstraintDistance_17 = Sketch_10.setDistance(SketchLine_105.result(), SketchCircle_1.center(), 12, False) +model.do() +ExtrusionCut_9 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_10/Face-SketchCircle_1_2r_wire")], model.selection(), 0, 0.75, [model.selection("SOLID", "ExtrusionCut_8_1")]) +model.do() +Part_2 = model.addPart(partSet) +Part_2_doc = Part_2.document() +Sketch_11 = model.addSketch(Part_2_doc, model.defaultPlane("XOY")) +SketchLine_107 = Sketch_11.addLine(0, 0, 60, 0) +SketchPoint_25 = Sketch_11.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_175 = Sketch_11.setCoincident(SketchLine_107.startPoint(), SketchPoint_25.result()) +SketchLine_108 = Sketch_11.addLine(60, 0, 60, 1.5) +SketchLine_108.setName("SketchLine_3") +SketchLine_108.result().setName("SketchLine_3") +SketchConstraintCoincidence_176 = Sketch_11.setCoincident(SketchLine_107.endPoint(), SketchLine_108.startPoint()) +SketchConstraintCoincidence_176.setName("SketchConstraintCoincidence_3") +SketchLine_109 = Sketch_11.addLine(60, 1.5, 57, 1.5) +SketchLine_109.setName("SketchLine_4") +SketchLine_109.result().setName("SketchLine_4") +SketchConstraintCoincidence_177 = Sketch_11.setCoincident(SketchLine_108.endPoint(), SketchLine_109.startPoint()) +SketchConstraintCoincidence_177.setName("SketchConstraintCoincidence_4") +SketchLine_110 = Sketch_11.addLine(57, 1.5, 29, 7.5) +SketchLine_110.setName("SketchLine_5") +SketchLine_110.result().setName("SketchLine_5") +SketchConstraintCoincidence_178 = Sketch_11.setCoincident(SketchLine_109.endPoint(), SketchLine_110.startPoint()) +SketchConstraintCoincidence_178.setName("SketchConstraintCoincidence_5") +SketchLine_111 = Sketch_11.addLine(28, 7.5, 28, 8) +SketchLine_111.setName("SketchLine_7") +SketchLine_111.result().setName("SketchLine_7") +SketchArc_24 = Sketch_11.addArc(25.00007393928819, 7.9789374678129, 28, 8, 22.00014787857639, 8, False) +SketchLine_112 = Sketch_11.addLine(22.00014787857639, 8, 22.00014787857639, 7.5) +SketchLine_112.setName("SketchLine_8") +SketchLine_112.result().setName("SketchLine_8") +SketchConstraintCoincidence_179 = Sketch_11.setCoincident(SketchArc_24.endPoint(), SketchLine_112.startPoint()) +SketchConstraintCoincidence_179.setName("SketchConstraintCoincidence_8") +SketchLine_113 = Sketch_11.addLine(22.00014787857639, 7.5, 21.00014787857639, 7.5) +SketchLine_113.setName("SketchLine_9") +SketchLine_113.result().setName("SketchLine_9") +SketchConstraintCoincidence_180 = Sketch_11.setCoincident(SketchLine_112.endPoint(), SketchLine_113.startPoint()) +SketchConstraintCoincidence_180.setName("SketchConstraintCoincidence_9") +SketchLine_114 = Sketch_11.addLine(0, 0, 0, 3.5) +SketchLine_114.setName("SketchLine_10") +SketchLine_114.result().setName("SketchLine_10") +SketchConstraintCoincidence_181 = Sketch_11.setCoincident(SketchLine_107.startPoint(), SketchLine_114.startPoint()) +SketchConstraintCoincidence_181.setName("SketchConstraintCoincidence_10") +SketchConstraintCoincidence_182 = Sketch_11.setCoincident(SketchPoint_25.coordinates(), SketchLine_114.startPoint()) +SketchConstraintCoincidence_182.setName("SketchConstraintCoincidence_11") +SketchLine_115 = Sketch_11.addLine(0, 3.5, 8, 5) +SketchLine_115.setName("SketchLine_11") +SketchLine_115.result().setName("SketchLine_11") +SketchConstraintCoincidence_183 = Sketch_11.setCoincident(SketchLine_114.endPoint(), SketchLine_115.startPoint()) +SketchConstraintCoincidence_183.setName("SketchConstraintCoincidence_13") +SketchLine_116 = Sketch_11.addLine(8, 5, 10.426976887961, 4.40018070612629) +SketchLine_116.setName("SketchLine_12") +SketchLine_116.result().setName("SketchLine_12") +SketchConstraintCoincidence_184 = Sketch_11.setCoincident(SketchLine_115.endPoint(), SketchLine_116.startPoint()) +SketchConstraintCoincidence_184.setName("SketchConstraintCoincidence_14") +SketchConstraintLength_18 = Sketch_11.setLength(SketchLine_107.result(), 60) +SketchConstraintHorizontal_23 = Sketch_11.setHorizontal(SketchLine_107.result()) +SketchConstraintVertical_20 = Sketch_11.setVertical(SketchLine_108.result()) +SketchConstraintHorizontal_24 = Sketch_11.setHorizontal(SketchLine_109.result()) +SketchConstraintHorizontal_25 = Sketch_11.setHorizontal(SketchLine_113.result()) +SketchConstraintHorizontal_25.setName("SketchConstraintHorizontal_4") +SketchConstraintVertical_21 = Sketch_11.setVertical(SketchLine_111.result()) +SketchConstraintVertical_22 = Sketch_11.setVertical(SketchLine_112.result()) +SketchConstraintCoincidence_185 = Sketch_11.setCoincident(SketchLine_111.endPoint(), SketchArc_24.startPoint()) +SketchConstraintCoincidence_185.setName("SketchConstraintCoincidence_15") +SketchConstraintVertical_23 = Sketch_11.setVertical(SketchLine_114.result()) +SketchConstraintDistance_18 = Sketch_11.setDistance(SketchLine_114.endPoint(), SketchLine_107.result(), 3.5, False) +SketchConstraintDistance_19 = Sketch_11.setDistance(SketchLine_115.endPoint(), SketchLine_114.result(), 8, False) +SketchConstraintLength_19 = Sketch_11.setLength(SketchLine_116.result(), 2.5) +SketchConstraintRadius_10 = Sketch_11.setRadius(SketchArc_24.results()[1], 3) +SketchConstraintLength_20 = Sketch_11.setLength(SketchLine_112.result(), 0.5) +SketchConstraintLength_21 = Sketch_11.setLength(SketchLine_113.result(), 1) +SketchConstraintLength_22 = Sketch_11.setLength(SketchLine_111.result(), 0.5) +SketchConstraintDistance_20 = Sketch_11.setDistance(SketchLine_112.endPoint(), SketchLine_107.result(), 7.5, False) +SketchConstraintLength_23 = Sketch_11.setLength(SketchLine_109.result(), 3) +SketchConstraintLength_23.setName("SketchConstraintLength_7") +SketchConstraintLength_24 = Sketch_11.setLength(SketchLine_108.result(), 1.5) +SketchConstraintLength_24.setName("SketchConstraintLength_8") +SketchConstraintDistance_21 = Sketch_11.setDistance(SketchLine_115.endPoint(), SketchLine_107.result(), 5, False) +SketchConstraintDistance_22 = Sketch_11.setDistance(SketchLine_111.startPoint(), SketchLine_107.result(), 7.5, False) +SketchLine_117 = Sketch_11.addLine(12.81710695710752, 0, 12.81710695710752, 7.765286531476907) +SketchLine_117.setName("SketchLine_13") +SketchLine_117.result().setName("SketchLine_13") +SketchLine_117.setAuxiliary(True) +SketchConstraintCoincidence_186 = Sketch_11.setCoincident(SketchLine_117.startPoint(), SketchLine_107.result()) +SketchConstraintCoincidence_186.setName("SketchConstraintCoincidence_16") +SketchConstraintVertical_24 = Sketch_11.setVertical(SketchLine_117.result()) +SketchPoint_26 = Sketch_11.addPoint(12.81710695710752, 3) +SketchPoint_26.setAuxiliary(True) +SketchConstraintCoincidence_187 = Sketch_11.setCoincident(SketchPoint_26.coordinates(), SketchLine_117.result()) +SketchConstraintCoincidence_187.setName("SketchConstraintCoincidence_17") +SketchConstraintDistance_23 = Sketch_11.setDistance(SketchPoint_26.coordinates(), SketchLine_107.result(), 3, False) +SketchLine_118 = Sketch_11.addLine(28, 7.5, 29, 7.5) +SketchLine_118.setName("SketchLine_14") +SketchLine_118.result().setName("SketchLine_14") +SketchConstraintCoincidence_188 = Sketch_11.setCoincident(SketchLine_111.startPoint(), SketchLine_118.startPoint()) +SketchConstraintCoincidence_188.setName("SketchConstraintCoincidence_18") +SketchConstraintCoincidence_189 = Sketch_11.setCoincident(SketchLine_110.endPoint(), SketchLine_118.endPoint()) +SketchConstraintCoincidence_189.setName("SketchConstraintCoincidence_19") +SketchConstraintLength_25 = Sketch_11.setLength(SketchLine_118.result(), 1) +SketchConstraintLength_25.setName("SketchConstraintLength_9") +SketchArc_25 = Sketch_11.addArc(14.78851987160339, 9.105317068618911, 10.426976887961, 4.40018070612629, 21.00014787857639, 7.5, False) +SketchConstraintCoincidence_190 = Sketch_11.setCoincident(SketchLine_116.endPoint(), SketchArc_25.startPoint()) +SketchConstraintCoincidence_190.setName("SketchConstraintCoincidence_20") +SketchConstraintCoincidence_191 = Sketch_11.setCoincident(SketchLine_113.endPoint(), SketchArc_25.endPoint()) +SketchConstraintCoincidence_191.setName("SketchConstraintCoincidence_21") +SketchConstraintCoincidence_192 = Sketch_11.setCoincident(SketchPoint_26.coordinates(), SketchArc_25.results()[1]) +SketchConstraintCoincidence_192.setName("SketchConstraintCoincidence_22") +SketchConstraintHorizontal_26 = Sketch_11.setHorizontal(SketchLine_118.result()) +SketchConstraintHorizontal_26.setName("SketchConstraintHorizontal_9") +SketchConstraintDistance_24 = Sketch_11.setDistance(SketchLine_111.startPoint(), SketchLine_108.result(), 32, False) +SketchConstraintDistance_24.setName("SketchConstraintDistance_9") +model.do() +Extrusion_2 = model.addExtrusion(Part_2_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_1r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_14r-SketchLine_7f-SketchArc_1_2f-SketchLine_8f-SketchLine_9f-SketchArc_2_2r-SketchLine_12r-SketchLine_11r-SketchLine_10r_wire")], model.selection(), 12, 0) +Sketch_12 = model.addSketch(Part_2_doc, model.standardPlane("XOZ")) +SketchArc_26 = Sketch_12.addArc(54, 6, 54, 12, 54, 0, True) +SketchLine_119 = Sketch_12.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/To_Face]")) +SketchLine_119.setName("SketchLine_15") +SketchLine_119.result().setName("SketchLine_15") +SketchConstraintCoincidence_193 = Sketch_12.setCoincident(SketchArc_26.startPoint(), SketchLine_119.result()) +SketchConstraintCoincidence_193.setName("SketchConstraintCoincidence_23") +SketchLine_120 = Sketch_12.addLine(model.selection("EDGE", "Sketch_1/SketchLine_1")) +SketchLine_120.setName("SketchLine_16") +SketchLine_120.result().setName("SketchLine_16") +SketchConstraintCoincidence_194 = Sketch_12.setCoincident(SketchArc_26.endPoint(), SketchLine_120.result()) +SketchConstraintCoincidence_194.setName("SketchConstraintCoincidence_24") +SketchLine_121 = Sketch_12.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3]")) +SketchLine_121.setName("SketchLine_17") +SketchLine_121.result().setName("SketchLine_17") +SketchConstraintTangent_16 = Sketch_12.setTangent(SketchArc_26.results()[1], SketchLine_121.result()) +SketchConstraintDistance_25 = Sketch_12.setDistance(SketchArc_26.startPoint(), SketchLine_121.result(), 6, False) +SketchConstraintDistance_25.setName("SketchConstraintDistance_7") +SketchLine_122 = Sketch_12.addLine(54, 12, 53.10174978726379, 13.92603605930655) +SketchLine_122.setName("SketchLine_18") +SketchLine_122.result().setName("SketchLine_18") +SketchConstraintCoincidence_195 = Sketch_12.setCoincident(SketchArc_26.startPoint(), SketchLine_122.startPoint()) +SketchConstraintCoincidence_195.setName("SketchConstraintCoincidence_25") +SketchLine_123 = Sketch_12.addLine(53.10174978726379, 13.92603605930655, 63.82610057919769, 13.82486293862793) +SketchLine_123.setName("SketchLine_19") +SketchLine_123.result().setName("SketchLine_19") +SketchConstraintCoincidence_196 = Sketch_12.setCoincident(SketchLine_122.endPoint(), SketchLine_123.startPoint()) +SketchConstraintCoincidence_196.setName("SketchConstraintCoincidence_26") +SketchLine_124 = Sketch_12.addLine(63.82610057919769, 13.82486293862793, 62.66260969139353, -3.07104821470189) +SketchLine_124.setName("SketchLine_20") +SketchLine_124.result().setName("SketchLine_20") +SketchConstraintCoincidence_197 = Sketch_12.setCoincident(SketchLine_123.endPoint(), SketchLine_124.startPoint()) +SketchConstraintCoincidence_197.setName("SketchConstraintCoincidence_27") +SketchLine_125 = Sketch_12.addLine(62.66260969139353, -3.07104821470189, 53.10174978726379, -2.868701973344648) +SketchLine_125.setName("SketchLine_21") +SketchLine_125.result().setName("SketchLine_21") +SketchConstraintCoincidence_198 = Sketch_12.setCoincident(SketchLine_124.endPoint(), SketchLine_125.startPoint()) +SketchConstraintCoincidence_198.setName("SketchConstraintCoincidence_28") +SketchLine_126 = Sketch_12.addLine(53.10174978726379, -2.868701973344648, 54, 0) +SketchLine_126.setName("SketchLine_22") +SketchLine_126.result().setName("SketchLine_22") +SketchConstraintCoincidence_199 = Sketch_12.setCoincident(SketchLine_125.endPoint(), SketchLine_126.startPoint()) +SketchConstraintCoincidence_199.setName("SketchConstraintCoincidence_29") +SketchConstraintCoincidence_200 = Sketch_12.setCoincident(SketchArc_26.endPoint(), SketchLine_126.endPoint()) +SketchConstraintCoincidence_200.setName("SketchConstraintCoincidence_30") +model.do() +ExtrusionCut_10 = model.addExtrusionCut(Part_2_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_22r-SketchLine_21r-SketchLine_20r-SketchLine_19r-SketchLine_18r-SketchArc_3_2r")], model.selection(), 7, 15, [model.selection("SOLID", "Extrusion_1_1")]) +Sketch_13 = model.addSketch(Part_2_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14")) +SketchLine_127 = Sketch_13.addLine(28, -6, -4.270492394552598, -6) +SketchLine_127.setName("SketchLine_23") +SketchLine_127.result().setName("SketchLine_23") +SketchLine_127.setAuxiliary(True) +SketchLine_128 = Sketch_13.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14]")) +SketchLine_128.setName("SketchLine_24") +SketchLine_128.result().setName("SketchLine_24") +SketchConstraintCoincidence_201 = Sketch_13.setCoincident(SketchLine_127.startPoint(), SketchLine_128.result()) +SketchConstraintCoincidence_201.setName("SketchConstraintCoincidence_31") +SketchConstraintHorizontal_27 = Sketch_13.setHorizontal(SketchLine_127.result()) +SketchLine_129 = Sketch_13.addLine(28, -6, 63.78468475453244, -6) +SketchLine_129.setName("SketchLine_25") +SketchLine_129.result().setName("SketchLine_25") +SketchLine_129.setAuxiliary(True) +SketchConstraintCoincidence_202 = Sketch_13.setCoincident(SketchLine_127.startPoint(), SketchLine_129.startPoint()) +SketchConstraintCoincidence_202.setName("SketchConstraintCoincidence_32") +SketchConstraintHorizontal_28 = Sketch_13.setHorizontal(SketchLine_129.result()) +SketchLine_130 = Sketch_13.addLine(60, -1.5, 29, -1.5) +SketchLine_130.setName("SketchLine_26") +SketchLine_130.result().setName("SketchLine_26") +SketchLine_131 = Sketch_13.addLine(29, -1.5, 29, -10.5) +SketchLine_131.setName("SketchLine_27") +SketchLine_131.result().setName("SketchLine_27") +SketchLine_132 = Sketch_13.addLine(29, -10.5, 60, -10.5) +SketchLine_132.setName("SketchLine_28") +SketchLine_132.result().setName("SketchLine_28") +SketchLine_133 = Sketch_13.addLine(60, -10.5, 60, -1.5) +SketchLine_133.setName("SketchLine_29") +SketchLine_133.result().setName("SketchLine_29") +SketchConstraintCoincidence_203 = Sketch_13.setCoincident(SketchLine_133.endPoint(), SketchLine_130.startPoint()) +SketchConstraintCoincidence_203.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_204 = Sketch_13.setCoincident(SketchLine_130.endPoint(), SketchLine_131.startPoint()) +SketchConstraintCoincidence_204.setName("SketchConstraintCoincidence_34") +SketchConstraintCoincidence_205 = Sketch_13.setCoincident(SketchLine_131.endPoint(), SketchLine_132.startPoint()) +SketchConstraintCoincidence_205.setName("SketchConstraintCoincidence_35") +SketchConstraintCoincidence_206 = Sketch_13.setCoincident(SketchLine_132.endPoint(), SketchLine_133.startPoint()) +SketchConstraintCoincidence_206.setName("SketchConstraintCoincidence_36") +SketchConstraintHorizontal_29 = Sketch_13.setHorizontal(SketchLine_130.result()) +SketchConstraintVertical_25 = Sketch_13.setVertical(SketchLine_131.result()) +SketchConstraintHorizontal_30 = Sketch_13.setHorizontal(SketchLine_132.result()) +SketchConstraintVertical_26 = Sketch_13.setVertical(SketchLine_133.result()) +SketchLine_134 = Sketch_13.addLine(29, -10.5, 60, -1.5) +SketchLine_134.setName("SketchLine_30") +SketchLine_134.result().setName("SketchLine_30") +SketchLine_134.setAuxiliary(True) +SketchConstraintCoincidence_207 = Sketch_13.setCoincident(SketchLine_131.endPoint(), SketchLine_134.startPoint()) +SketchConstraintCoincidence_207.setName("SketchConstraintCoincidence_37") +SketchConstraintCoincidence_208 = Sketch_13.setCoincident(SketchLine_132.startPoint(), SketchLine_134.startPoint()) +SketchConstraintCoincidence_208.setName("SketchConstraintCoincidence_38") +SketchConstraintCoincidence_209 = Sketch_13.setCoincident(SketchLine_130.startPoint(), SketchLine_134.endPoint()) +SketchConstraintCoincidence_209.setName("SketchConstraintCoincidence_39") +SketchConstraintCoincidence_210 = Sketch_13.setCoincident(SketchLine_133.endPoint(), SketchLine_134.endPoint()) +SketchConstraintCoincidence_210.setName("SketchConstraintCoincidence_40") +SketchLine_135 = Sketch_13.addLine(29, -1.5, 60, -10.5) +SketchLine_135.setName("SketchLine_31") +SketchLine_135.result().setName("SketchLine_31") +SketchLine_135.setAuxiliary(True) +SketchConstraintCoincidence_211 = Sketch_13.setCoincident(SketchLine_130.endPoint(), SketchLine_135.startPoint()) +SketchConstraintCoincidence_211.setName("SketchConstraintCoincidence_41") +SketchConstraintCoincidence_212 = Sketch_13.setCoincident(SketchLine_131.startPoint(), SketchLine_135.startPoint()) +SketchConstraintCoincidence_212.setName("SketchConstraintCoincidence_42") +SketchConstraintCoincidence_213 = Sketch_13.setCoincident(SketchLine_132.endPoint(), SketchLine_135.endPoint()) +SketchConstraintCoincidence_213.setName("SketchConstraintCoincidence_43") +SketchConstraintCoincidence_214 = Sketch_13.setCoincident(SketchLine_133.startPoint(), SketchLine_135.endPoint()) +SketchConstraintCoincidence_214.setName("SketchConstraintCoincidence_44") +SketchPoint_27 = Sketch_13.addPoint(44.5, -6) +SketchPoint_27.setAuxiliary(True) +SketchConstraintCoincidence_215 = Sketch_13.setCoincident(SketchPoint_27.coordinates(), SketchLine_135.result()) +SketchConstraintCoincidence_215.setName("SketchConstraintCoincidence_45") +SketchConstraintMiddle_9 = Sketch_13.setMiddlePoint(SketchPoint_27.coordinates(), SketchLine_135.result()) +SketchConstraintCoincidence_216 = Sketch_13.setCoincident(SketchPoint_27.coordinates(), SketchLine_129.result()) +SketchConstraintCoincidence_216.setName("SketchConstraintCoincidence_46") +SketchConstraintDistance_26 = Sketch_13.setDistance(SketchLine_128.startPoint(), SketchLine_129.result(), 6, False) +SketchConstraintDistance_26.setName("SketchConstraintDistance_8") +SketchConstraintLength_26 = Sketch_13.setLength(SketchLine_133.result(), 9) +SketchConstraintLength_26.setName("SketchConstraintLength_10") +SketchLine_136 = Sketch_13.addLine(21.00014787857639, -1.499999999999981, 12.00014787857639, -1.499999999999981) +SketchLine_136.setName("SketchLine_32") +SketchLine_136.result().setName("SketchLine_32") +SketchLine_137 = Sketch_13.addLine(12.00014787857639, -1.499999999999981, 12.00014787857639, -10.49999999999998) +SketchLine_137.setName("SketchLine_33") +SketchLine_137.result().setName("SketchLine_33") +SketchLine_138 = Sketch_13.addLine(12.00014787857639, -10.49999999999998, 21.00014787857639, -10.49999999999998) +SketchLine_138.setName("SketchLine_34") +SketchLine_138.result().setName("SketchLine_34") +SketchLine_139 = Sketch_13.addLine(21.00014787857639, -10.49999999999998, 21.00014787857639, -1.499999999999981) +SketchLine_139.setName("SketchLine_35") +SketchLine_139.result().setName("SketchLine_35") +SketchConstraintCoincidence_217 = Sketch_13.setCoincident(SketchLine_139.endPoint(), SketchLine_136.startPoint()) +SketchConstraintCoincidence_217.setName("SketchConstraintCoincidence_47") +SketchConstraintCoincidence_218 = Sketch_13.setCoincident(SketchLine_136.endPoint(), SketchLine_137.startPoint()) +SketchConstraintCoincidence_218.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_219 = Sketch_13.setCoincident(SketchLine_137.endPoint(), SketchLine_138.startPoint()) +SketchConstraintCoincidence_219.setName("SketchConstraintCoincidence_49") +SketchConstraintCoincidence_220 = Sketch_13.setCoincident(SketchLine_138.endPoint(), SketchLine_139.startPoint()) +SketchConstraintCoincidence_220.setName("SketchConstraintCoincidence_50") +SketchConstraintHorizontal_31 = Sketch_13.setHorizontal(SketchLine_136.result()) +SketchConstraintHorizontal_31.setName("SketchConstraintHorizontal_10") +SketchConstraintVertical_27 = Sketch_13.setVertical(SketchLine_137.result()) +SketchConstraintHorizontal_32 = Sketch_13.setHorizontal(SketchLine_138.result()) +SketchConstraintHorizontal_32.setName("SketchConstraintHorizontal_11") +SketchConstraintVertical_28 = Sketch_13.setVertical(SketchLine_139.result()) +SketchConstraintEqual_4 = Sketch_13.setEqual(SketchLine_131.result(), SketchLine_139.result()) +SketchLine_140 = Sketch_13.addLine(12.00014787857639, -10.49999999999998, 21.00014787857639, -1.499999999999981) +SketchLine_140.setName("SketchLine_36") +SketchLine_140.result().setName("SketchLine_36") +SketchLine_140.setAuxiliary(True) +SketchConstraintCoincidence_221 = Sketch_13.setCoincident(SketchLine_137.endPoint(), SketchLine_140.startPoint()) +SketchConstraintCoincidence_221.setName("SketchConstraintCoincidence_51") +SketchConstraintCoincidence_222 = Sketch_13.setCoincident(SketchLine_138.startPoint(), SketchLine_140.startPoint()) +SketchConstraintCoincidence_222.setName("SketchConstraintCoincidence_52") +SketchConstraintCoincidence_223 = Sketch_13.setCoincident(SketchLine_136.startPoint(), SketchLine_140.endPoint()) +SketchConstraintCoincidence_223.setName("SketchConstraintCoincidence_53") +SketchConstraintCoincidence_224 = Sketch_13.setCoincident(SketchLine_139.endPoint(), SketchLine_140.endPoint()) +SketchConstraintCoincidence_224.setName("SketchConstraintCoincidence_54") +SketchPoint_28 = Sketch_13.addPoint(16.50014787857639, -6) +SketchPoint_28.setAuxiliary(True) +SketchConstraintCoincidence_225 = Sketch_13.setCoincident(SketchPoint_28.coordinates(), SketchLine_140.result()) +SketchConstraintCoincidence_225.setName("SketchConstraintCoincidence_55") +SketchConstraintMiddle_10 = Sketch_13.setMiddlePoint(SketchLine_140.result(), SketchPoint_28.coordinates()) +SketchConstraintCoincidence_226 = Sketch_13.setCoincident(SketchPoint_28.coordinates(), SketchLine_127.result()) +SketchConstraintCoincidence_226.setName("SketchConstraintCoincidence_56") +SketchLine_141 = Sketch_13.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_14][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_5]")) +SketchLine_141.setName("SketchLine_37") +SketchLine_141.result().setName("SketchLine_37") +SketchConstraintCoincidence_227 = Sketch_13.setCoincident(SketchLine_131.startPoint(), SketchLine_141.result()) +SketchConstraintCoincidence_227.setName("SketchConstraintCoincidence_57") +SketchConstraintLength_27 = Sketch_13.setLength(SketchLine_130.result(), 31) +SketchConstraintLength_27.setName("SketchConstraintLength_11") +SketchLine_142 = Sketch_13.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_9]")) +SketchLine_142.setName("SketchLine_38") +SketchLine_142.result().setName("SketchLine_38") +SketchConstraintCoincidence_228 = Sketch_13.setCoincident(SketchLine_136.startPoint(), SketchLine_142.result()) +SketchConstraintCoincidence_228.setName("SketchConstraintCoincidence_58") +SketchConstraintEqual_5 = Sketch_13.setEqual(SketchLine_136.result(), SketchLine_131.result()) +model.do() +ExtrusionCut_11 = model.addExtrusionCut(Part_2_doc, [model.selection("FACE", "Sketch_3/Face-SketchLine_32f-SketchLine_33f-SketchLine_34f-SketchLine_35f"), model.selection("FACE", "Sketch_3/Face-SketchLine_26f-SketchLine_27f-SketchLine_28f-SketchLine_29f")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_4"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_14 = model.addSketch(Part_2_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchLine_143 = Sketch_14.addLine(0.4324637622511017, 3.581086955422081, 1.55585595716119, 2.812450190483599) +SketchLine_143.setName("SketchLine_39") +SketchLine_143.result().setName("SketchLine_39") +SketchLine_144 = Sketch_14.addLine(model.selection("EDGE", "[ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_11]")) +SketchLine_144.setName("SketchLine_40") +SketchLine_144.result().setName("SketchLine_40") +SketchConstraintCoincidence_229 = Sketch_14.setCoincident(SketchLine_143.startPoint(), SketchLine_144.result()) +SketchConstraintCoincidence_229.setName("SketchConstraintCoincidence_59") +SketchLine_145 = Sketch_14.addLine(1.55585595716119, 2.812450190483599, 2.324492722099671, 3.935842385393688) +SketchLine_145.setName("SketchLine_41") +SketchLine_145.result().setName("SketchLine_41") +SketchConstraintCoincidence_230 = Sketch_14.setCoincident(SketchLine_143.endPoint(), SketchLine_145.startPoint()) +SketchConstraintCoincidence_230.setName("SketchConstraintCoincidence_60") +SketchConstraintCoincidence_231 = Sketch_14.setCoincident(SketchLine_145.endPoint(), SketchLine_144.result()) +SketchConstraintCoincidence_231.setName("SketchConstraintCoincidence_61") +SketchLine_146 = Sketch_14.addLine(2.324492722099671, 3.935842385393688, 0.4324637622511017, 3.581086955422081) +SketchLine_146.setName("SketchLine_42") +SketchLine_146.result().setName("SketchLine_42") +SketchConstraintCoincidence_232 = Sketch_14.setCoincident(SketchLine_145.endPoint(), SketchLine_146.startPoint()) +SketchConstraintCoincidence_232.setName("SketchConstraintCoincidence_62") +SketchConstraintCoincidence_233 = Sketch_14.setCoincident(SketchLine_143.startPoint(), SketchLine_146.endPoint()) +SketchConstraintCoincidence_233.setName("SketchConstraintCoincidence_63") +SketchConstraintLength_28 = Sketch_14.setLength(SketchLine_146.result(), 1.925) +SketchConstraintLength_28.setName("SketchConstraintLength_12") +SketchConstraintEqual_6 = Sketch_14.setEqual(SketchLine_143.result(), SketchLine_145.result()) +SketchConstraintPerpendicular_2 = Sketch_14.setPerpendicular(SketchLine_143.result(), SketchLine_145.result()) +SketchConstraintDistance_27 = Sketch_14.setDistance(SketchLine_144.startPoint(), SketchLine_143.startPoint(), 0.44, False) +SketchMultiTranslation_3_objects = [SketchLine_143.result(), SketchLine_146.result(), SketchLine_145.result()] +SketchMultiTranslation_3 = Sketch_14.addTranslation(SketchMultiTranslation_3_objects, SketchLine_146.startPoint(), SketchLine_144.endPoint(), 4, True) +[SketchLine_147, SketchLine_148, SketchLine_149, SketchLine_150, SketchLine_151, SketchLine_152, SketchLine_153, SketchLine_154, SketchLine_155] = SketchMultiTranslation_3.translated() +SketchLine_155.setName("SketchLine_51") +SketchLine_155.result().setName("SketchLine_51") +SketchLine_154.setName("SketchLine_50") +SketchLine_154.result().setName("SketchLine_50") +SketchLine_153.setName("SketchLine_45") +SketchLine_153.result().setName("SketchLine_45") +SketchLine_152.setName("SketchLine_49") +SketchLine_152.result().setName("SketchLine_49") +SketchLine_151.setName("SketchLine_48") +SketchLine_151.result().setName("SketchLine_48") +SketchLine_150.setName("SketchLine_46") +SketchLine_150.result().setName("SketchLine_46") +SketchLine_149.setName("SketchLine_47") +SketchLine_149.result().setName("SketchLine_47") +SketchLine_148.setName("SketchLine_44") +SketchLine_148.result().setName("SketchLine_44") +SketchLine_147.setName("SketchLine_43") +SketchLine_147.result().setName("SketchLine_43") +model.do() +ExtrusionCut_12 = model.addExtrusionCut(Part_2_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/From_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Plane_9 = model.addPlane(Part_2_doc, model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1][ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10]"), model.selection("VERTEX", "[ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2]"), model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_1)(ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face)(ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_4&ExtrusionCut_2_1/To_Face_2)][ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face]")) +Sketch_15 = model.addSketch(Part_2_doc, model.selection("FACE", "Plane_1")) +SketchArc_27 = Sketch_15.addArc(25, -7.50002056854448, 22, -7.5, 28, -7.5, True) +SketchPoint_29 = Sketch_15.addPoint(22, -7.5) +SketchConstraintRigid_14 = Sketch_15.setFixed(SketchPoint_29.result()) +SketchConstraintRigid_14.setName("SketchConstraintRigid_10") +SketchConstraintCoincidence_234 = Sketch_15.setCoincident(SketchArc_27.startPoint(), SketchPoint_29.result()) +SketchConstraintCoincidence_234.setName("SketchConstraintCoincidence_64") +SketchPoint_30 = Sketch_15.addPoint(28, -7.5) +SketchConstraintRigid_15 = Sketch_15.setFixed(SketchPoint_30.result()) +SketchConstraintRigid_15.setName("SketchConstraintRigid_11") +SketchConstraintCoincidence_235 = Sketch_15.setCoincident(SketchArc_27.endPoint(), SketchPoint_30.result()) +SketchConstraintCoincidence_235.setName("SketchConstraintCoincidence_65") +SketchConstraintRadius_11 = Sketch_15.setRadius(SketchArc_27.results()[1], 3) +SketchLine_156 = Sketch_15.addLine(22, -7.5, 22, -11.56094005408083) +SketchLine_156.setName("SketchLine_52") +SketchLine_156.result().setName("SketchLine_52") +SketchConstraintCoincidence_236 = Sketch_15.setCoincident(SketchArc_27.startPoint(), SketchLine_156.startPoint()) +SketchConstraintCoincidence_236.setName("SketchConstraintCoincidence_66") +SketchConstraintCoincidence_237 = Sketch_15.setCoincident(SketchPoint_29.coordinates(), SketchLine_156.startPoint()) +SketchConstraintCoincidence_237.setName("SketchConstraintCoincidence_67") +SketchLine_157 = Sketch_15.addLine(22, -11.56094005408083, 28, -11.56094005408083) +SketchLine_157.setName("SketchLine_53") +SketchLine_157.result().setName("SketchLine_53") +SketchConstraintCoincidence_238 = Sketch_15.setCoincident(SketchLine_156.endPoint(), SketchLine_157.startPoint()) +SketchConstraintCoincidence_238.setName("SketchConstraintCoincidence_68") +SketchLine_158 = Sketch_15.addLine(28, -11.56094005408083, 28, -7.5) +SketchLine_158.setName("SketchLine_54") +SketchLine_158.result().setName("SketchLine_54") +SketchConstraintCoincidence_239 = Sketch_15.setCoincident(SketchLine_157.endPoint(), SketchLine_158.startPoint()) +SketchConstraintCoincidence_239.setName("SketchConstraintCoincidence_69") +SketchConstraintCoincidence_240 = Sketch_15.setCoincident(SketchArc_27.endPoint(), SketchLine_158.endPoint()) +SketchConstraintCoincidence_240.setName("SketchConstraintCoincidence_70") +SketchConstraintCoincidence_241 = Sketch_15.setCoincident(SketchPoint_30.coordinates(), SketchLine_158.endPoint()) +SketchConstraintCoincidence_241.setName("SketchConstraintCoincidence_71") +SketchConstraintVertical_29 = Sketch_15.setVertical(SketchLine_156.result()) +SketchConstraintVertical_30 = Sketch_15.setVertical(SketchLine_158.result()) +SketchConstraintHorizontal_33 = Sketch_15.setHorizontal(SketchLine_157.result()) +SketchConstraintHorizontal_33.setName("SketchConstraintHorizontal_12") +model.do() +Plane_10 = model.addPlane(Part_2_doc, model.selection("FACE", "ExtrusionCut_3_1/Modified_Face&Extrusion_1_1/To_Face"), 6, True) +Plane_11 = model.addPlane(Part_2_doc, model.selection("FACE", "Plane_2"), 3, True) +ExtrusionCut_13 = model.addExtrusionCut(Part_2_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_4_2r-SketchLine_52f-SketchLine_53f-SketchLine_54f")], model.selection(), 3, 0, [model.selection("SOLID", "ExtrusionCut_3_1")]) +ExtrusionCut_14 = model.addExtrusionCut(Part_2_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_4_2r-SketchLine_52f-SketchLine_53f-SketchLine_54f")], model.selection(), model.selection("FACE", "Plane_3"), 0, model.selection("FACE", "Plane_2"), 0, [model.selection("SOLID", "ExtrusionCut_4_1")]) +Sketch_16 = model.addSketch(Part_2_doc, model.selection("FACE", "ExtrusionCut_4_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchArc_28 = Sketch_16.addArc(46, 0, 45.5, 0, 46.5, 0, False) +SketchLine_159 = Sketch_16.addLine(0, 0, 54, 0) +SketchLine_159.setName("SketchLine_55") +SketchLine_159.result().setName("SketchLine_55") +SketchConstraintRigid_16 = Sketch_16.setFixed(SketchLine_159.result()) +SketchConstraintRigid_16.setName("SketchConstraintRigid_12") +SketchConstraintCoincidence_242 = Sketch_16.setCoincident(SketchArc_28.center(), SketchLine_159.result()) +SketchConstraintCoincidence_242.setName("SketchConstraintCoincidence_72") +SketchConstraintCoincidence_243 = Sketch_16.setCoincident(SketchArc_28.startPoint(), SketchLine_159.result()) +SketchConstraintCoincidence_243.setName("SketchConstraintCoincidence_73") +SketchConstraintCoincidence_244 = Sketch_16.setCoincident(SketchArc_28.endPoint(), SketchLine_159.result()) +SketchConstraintCoincidence_244.setName("SketchConstraintCoincidence_74") +SketchLine_160 = Sketch_16.addLine(45.5, 0, 46.5, 0) +SketchLine_160.setName("SketchLine_56") +SketchLine_160.result().setName("SketchLine_56") +SketchConstraintCoincidence_245 = Sketch_16.setCoincident(SketchArc_28.startPoint(), SketchLine_160.startPoint()) +SketchConstraintCoincidence_245.setName("SketchConstraintCoincidence_75") +SketchConstraintCoincidence_246 = Sketch_16.setCoincident(SketchArc_28.endPoint(), SketchLine_160.endPoint()) +SketchConstraintCoincidence_246.setName("SketchConstraintCoincidence_76") +SketchConstraintRadius_12 = Sketch_16.setRadius(SketchArc_28.results()[1], 0.5) +SketchLine_161 = Sketch_16.addLine(0, 0, 0, 3.5) +SketchLine_161.setName("SketchLine_57") +SketchLine_161.result().setName("SketchLine_57") +SketchConstraintDistance_28 = Sketch_16.setDistance(SketchArc_28.center(), SketchLine_161.result(), 46, False) +SketchConstraintRigid_17 = Sketch_16.setFixed(SketchLine_161.result()) +SketchConstraintRigid_17.setName("SketchConstraintRigid_13") +SketchPoint_31 = Sketch_16.addPoint(58, 0) +SketchConstraintCoincidence_247 = Sketch_16.setCoincident(SketchPoint_31.coordinates(), SketchLine_159.result()) +SketchConstraintCoincidence_247.setName("SketchConstraintCoincidence_77") +SketchConstraintDistance_29 = Sketch_16.setDistance(SketchArc_28.center(), SketchPoint_31.coordinates(), 12, False) +SketchMultiTranslation_4 = Sketch_16.addTranslation([SketchLine_160.result(), SketchArc_28.results()[1]], SketchArc_28.center(), SketchPoint_31.coordinates(), 9, True) +[SketchLine_162, SketchLine_163, SketchLine_164, SketchLine_165, SketchLine_166, SketchLine_167, SketchLine_168, SketchLine_169, SketchArc_29, SketchArc_30, SketchArc_31, SketchArc_32, SketchArc_33, SketchArc_34, SketchArc_35, SketchArc_36] = SketchMultiTranslation_4.translated() +SketchLine_169.setName("SketchLine_65") +SketchLine_169.result().setName("SketchLine_65") +SketchLine_168.setName("SketchLine_64") +SketchLine_168.result().setName("SketchLine_64") +SketchLine_167.setName("SketchLine_63") +SketchLine_167.result().setName("SketchLine_63") +SketchLine_166.setName("SketchLine_62") +SketchLine_166.result().setName("SketchLine_62") +SketchLine_165.setName("SketchLine_61") +SketchLine_165.result().setName("SketchLine_61") +SketchLine_164.setName("SketchLine_60") +SketchLine_164.result().setName("SketchLine_60") +SketchLine_163.setName("SketchLine_59") +SketchLine_163.result().setName("SketchLine_59") +SketchLine_162.setName("SketchLine_58") +SketchLine_162.result().setName("SketchLine_58") +model.do() +ExtrusionFuse_2 = model.addExtrusionFuse(Part_2_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_14r-SketchLine_7f-SketchArc_1_2f-SketchLine_8f-SketchLine_9f-SketchArc_2_2r-SketchLine_12r-SketchLine_11r-SketchLine_10r"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_5_1")]) +Sketch_17 = model.addSketch(Part_2_doc, model.selection("FACE", "(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_27)(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_26)(ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_4&ExtrusionCut_2_1/To_Face_2)(ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_28)_ExtrusionFuse_1_1")) +SketchLine_170 = Sketch_17.addLine(50.25, -4.5, 31.25, -4.5) +SketchLine_170.setName("SketchLine_76") +SketchLine_170.result().setName("SketchLine_76") +SketchLine_171 = Sketch_17.addLine(51, -6.75, 51, -5.25) +SketchLine_171.setName("SketchLine_78") +SketchLine_171.result().setName("SketchLine_78") +SketchLine_172 = Sketch_17.addLine(31, -4.75, 31, -7.249999999999651) +SketchLine_172.setName("SketchLine_80") +SketchLine_172.result().setName("SketchLine_80") +SketchLine_173 = Sketch_17.addLine(31.25, -7.499999999999998, 50.25, -7.5) +SketchLine_173.setName("SketchLine_79") +SketchLine_173.result().setName("SketchLine_79") +SketchLine_174 = Sketch_17.addLine(51, -4.5, 31, -4.5) +SketchLine_174.setName("SketchLine_66") +SketchLine_174.result().setName("SketchLine_66") +SketchLine_174.setAuxiliary(True) +SketchLine_175 = Sketch_17.addLine(51, -7.5, 51, -4.5) +SketchLine_175.setAuxiliary(True) +SketchConstraintCoincidence_248 = Sketch_17.setCoincident(SketchLine_175.endPoint(), SketchLine_174.startPoint()) +SketchConstraintCoincidence_248.setName("SketchConstraintCoincidence_78") +SketchLine_176 = Sketch_17.addLine(31, -4.5, 31, -7.5) +SketchLine_176.setName("SketchLine_67") +SketchLine_176.result().setName("SketchLine_67") +SketchLine_176.setAuxiliary(True) +SketchConstraintCoincidence_249 = Sketch_17.setCoincident(SketchLine_174.endPoint(), SketchLine_176.startPoint()) +SketchConstraintCoincidence_249.setName("SketchConstraintCoincidence_79") +SketchLine_177 = Sketch_17.addLine(31, -7.5, 51, -7.5) +SketchLine_177.setName("SketchLine_68") +SketchLine_177.result().setName("SketchLine_68") +SketchLine_177.setAuxiliary(True) +SketchConstraintCoincidence_250 = Sketch_17.setCoincident(SketchLine_176.endPoint(), SketchLine_177.startPoint()) +SketchConstraintCoincidence_250.setName("SketchConstraintCoincidence_80") +SketchConstraintCoincidence_251 = Sketch_17.setCoincident(SketchLine_177.endPoint(), SketchLine_175.startPoint()) +SketchConstraintCoincidence_251.setName("SketchConstraintCoincidence_81") +SketchConstraintHorizontal_34 = Sketch_17.setHorizontal(SketchLine_174.result()) +SketchConstraintHorizontal_34.setName("SketchConstraintHorizontal_13") +SketchConstraintVertical_31 = Sketch_17.setVertical(SketchLine_176.result()) +SketchConstraintHorizontal_35 = Sketch_17.setHorizontal(SketchLine_177.result()) +SketchConstraintHorizontal_35.setName("SketchConstraintHorizontal_14") +SketchConstraintVertical_32 = Sketch_17.setVertical(SketchLine_175.result()) +SketchLine_178 = Sketch_17.addLine(31, -7.5, 51, -4.5) +SketchLine_178.setName("SketchLine_70") +SketchLine_178.result().setName("SketchLine_70") +SketchLine_178.setAuxiliary(True) +SketchConstraintCoincidence_252 = Sketch_17.setCoincident(SketchLine_176.endPoint(), SketchLine_178.startPoint()) +SketchConstraintCoincidence_252.setName("SketchConstraintCoincidence_82") +SketchConstraintCoincidence_253 = Sketch_17.setCoincident(SketchLine_177.startPoint(), SketchLine_178.startPoint()) +SketchConstraintCoincidence_253.setName("SketchConstraintCoincidence_83") +SketchPoint_32 = Sketch_17.addPoint(51, -4.5) +SketchConstraintCoincidence_254 = Sketch_17.setCoincident(SketchLine_174.startPoint(), SketchPoint_32.coordinates()) +SketchConstraintCoincidence_254.setName("SketchConstraintCoincidence_84") +SketchConstraintCoincidence_255 = Sketch_17.setCoincident(SketchLine_175.endPoint(), SketchPoint_32.coordinates()) +SketchConstraintCoincidence_255.setName("SketchConstraintCoincidence_85") +SketchPoint_33 = Sketch_17.addPoint(41, -6) +SketchPoint_33.setAuxiliary(True) +SketchConstraintCoincidence_256 = Sketch_17.setCoincident(SketchPoint_33.coordinates(), SketchLine_178.result()) +SketchConstraintCoincidence_256.setName("SketchConstraintCoincidence_86") +SketchConstraintMiddle_11 = Sketch_17.setMiddlePoint(SketchLine_178.result(), SketchPoint_33.coordinates()) +SketchPoint_34 = Sketch_17.addPoint(21, -6) +SketchPoint_34.setAuxiliary(True) +SketchLine_179 = Sketch_17.addLine(21, -10.5, 21, -1.5) +SketchLine_179.setName("SketchLine_71") +SketchLine_179.result().setName("SketchLine_71") +SketchConstraintRigid_18 = Sketch_17.setFixed(SketchLine_179.result()) +SketchConstraintRigid_18.setName("SketchConstraintRigid_14") +SketchConstraintCoincidence_257 = Sketch_17.setCoincident(SketchPoint_34.coordinates(), SketchLine_179.result()) +SketchConstraintCoincidence_257.setName("SketchConstraintCoincidence_87") +SketchConstraintMiddle_12 = Sketch_17.setMiddlePoint(SketchPoint_34.coordinates(), SketchLine_179.result()) +SketchLine_180 = Sketch_17.addLine(21, -6, 41, -6) +SketchLine_180.setName("SketchLine_72") +SketchLine_180.result().setName("SketchLine_72") +SketchLine_180.setAuxiliary(True) +SketchConstraintCoincidence_258 = Sketch_17.setCoincident(SketchPoint_34.coordinates(), SketchLine_180.startPoint()) +SketchConstraintCoincidence_258.setName("SketchConstraintCoincidence_88") +SketchConstraintCoincidence_259 = Sketch_17.setCoincident(SketchPoint_33.coordinates(), SketchLine_180.endPoint()) +SketchConstraintCoincidence_259.setName("SketchConstraintCoincidence_89") +SketchConstraintHorizontal_36 = Sketch_17.setHorizontal(SketchLine_180.result()) +SketchConstraintHorizontal_36.setName("SketchConstraintHorizontal_15") +SketchConstraintCoincidence_260 = Sketch_17.setCoincident(SketchLine_178.endPoint(), SketchLine_174.startPoint()) +SketchConstraintCoincidence_260.setName("SketchConstraintCoincidence_90") +SketchConstraintLength_29 = Sketch_17.setLength(SketchLine_175.result(), 3) +SketchConstraintLength_29.setName("SketchConstraintLength_13") +SketchConstraintLength_30 = Sketch_17.setLength(SketchLine_174.result(), 20) +SketchConstraintLength_30.setName("SketchConstraintLength_14") +SketchPoint_35 = Sketch_17.addPoint(29, -10.5) +SketchConstraintDistance_30 = Sketch_17.setDistance(SketchPoint_35.coordinates(), SketchLine_176.result(), 2, False) +SketchConstraintRigid_19 = Sketch_17.setFixed(SketchPoint_35.result()) +SketchConstraintRigid_19.setName("SketchConstraintRigid_15") +SketchArc_37 = Sketch_17.addArc(50.25, -5.25, 51, -5.25, 50.25, -4.5, False) +SketchLine_181 = Sketch_17.addLine(51, -7.5, 51, -5.25) +SketchLine_181.setName("SketchLine_74") +SketchLine_181.result().setName("SketchLine_74") +SketchLine_181.setAuxiliary(True) +SketchConstraintCoincidence_261 = Sketch_17.setCoincident(SketchArc_37.startPoint(), SketchLine_181.endPoint()) +SketchConstraintCoincidence_261.setName("SketchConstraintCoincidence_91") +SketchLine_182 = Sketch_17.addLine(50.25, -4.5, 31, -4.5) +SketchLine_182.setName("SketchLine_73") +SketchLine_182.result().setName("SketchLine_73") +SketchLine_182.setAuxiliary(True) +SketchConstraintCoincidence_262 = Sketch_17.setCoincident(SketchArc_37.endPoint(), SketchLine_182.startPoint()) +SketchConstraintCoincidence_262.setName("SketchConstraintCoincidence_92") +SketchConstraintTangent_17 = Sketch_17.setTangent(SketchArc_37.results()[1], SketchLine_182.result()) +SketchConstraintTangent_18 = Sketch_17.setTangent(SketchArc_37.results()[1], SketchLine_181.result()) +SketchConstraintCoincidence_263 = Sketch_17.setCoincident(SketchLine_174.endPoint(), SketchLine_182.endPoint()) +SketchConstraintCoincidence_263.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_264 = Sketch_17.setCoincident(SketchLine_175.startPoint(), SketchLine_181.startPoint()) +SketchConstraintCoincidence_264.setName("SketchConstraintCoincidence_94") +SketchConstraintCoincidence_265 = Sketch_17.setCoincident(SketchLine_182.startPoint(), SketchLine_174.result()) +SketchConstraintCoincidence_265.setName("SketchConstraintCoincidence_95") +SketchConstraintCoincidence_266 = Sketch_17.setCoincident(SketchLine_181.endPoint(), SketchLine_175.result()) +SketchConstraintCoincidence_266.setName("SketchConstraintCoincidence_96") +SketchArc_38 = Sketch_17.addArc(31.25, -4.75, 31.25, -4.5, 31, -4.75, False) +SketchConstraintCoincidence_267 = Sketch_17.setCoincident(SketchArc_38.startPoint(), SketchLine_170.endPoint()) +SketchConstraintCoincidence_267.setName("SketchConstraintCoincidence_97") +SketchLine_183 = Sketch_17.addLine(31, -4.75, 31, -7.5) +SketchLine_183.setName("SketchLine_75") +SketchLine_183.result().setName("SketchLine_75") +SketchLine_183.setAuxiliary(True) +SketchConstraintCoincidence_268 = Sketch_17.setCoincident(SketchArc_38.endPoint(), SketchLine_183.startPoint()) +SketchConstraintCoincidence_268.setName("SketchConstraintCoincidence_98") +SketchConstraintTangent_19 = Sketch_17.setTangent(SketchArc_38.results()[1], SketchLine_183.result()) +SketchConstraintTangent_20 = Sketch_17.setTangent(SketchArc_38.results()[1], SketchLine_170.result()) +SketchConstraintCoincidence_269 = Sketch_17.setCoincident(SketchLine_176.endPoint(), SketchLine_183.endPoint()) +SketchConstraintCoincidence_269.setName("SketchConstraintCoincidence_99") +SketchConstraintCoincidence_270 = Sketch_17.setCoincident(SketchLine_182.startPoint(), SketchLine_170.startPoint()) +SketchConstraintCoincidence_270.setName("SketchConstraintCoincidence_100") +SketchConstraintCoincidence_271 = Sketch_17.setCoincident(SketchLine_183.startPoint(), SketchLine_176.result()) +SketchConstraintCoincidence_271.setName("SketchConstraintCoincidence_101") +SketchConstraintCoincidence_272 = Sketch_17.setCoincident(SketchLine_170.endPoint(), SketchLine_182.result()) +SketchConstraintCoincidence_272.setName("SketchConstraintCoincidence_102") +SketchArc_39 = Sketch_17.addArc(50.25, -6.75, 50.25, -7.5, 51, -6.75, False) +SketchLine_184 = Sketch_17.addLine(31, -7.5, 50.25, -7.5) +SketchLine_184.setName("SketchLine_77") +SketchLine_184.result().setName("SketchLine_77") +SketchLine_184.setAuxiliary(True) +SketchConstraintCoincidence_273 = Sketch_17.setCoincident(SketchArc_39.startPoint(), SketchLine_184.endPoint()) +SketchConstraintCoincidence_273.setName("SketchConstraintCoincidence_103") +SketchConstraintCoincidence_274 = Sketch_17.setCoincident(SketchArc_39.endPoint(), SketchLine_171.startPoint()) +SketchConstraintCoincidence_274.setName("SketchConstraintCoincidence_104") +SketchConstraintTangent_21 = Sketch_17.setTangent(SketchArc_39.results()[1], SketchLine_184.result()) +SketchConstraintTangent_22 = Sketch_17.setTangent(SketchArc_39.results()[1], SketchLine_171.result()) +SketchConstraintCoincidence_275 = Sketch_17.setCoincident(SketchLine_177.startPoint(), SketchLine_184.startPoint()) +SketchConstraintCoincidence_275.setName("SketchConstraintCoincidence_105") +SketchConstraintCoincidence_276 = Sketch_17.setCoincident(SketchLine_181.endPoint(), SketchLine_171.endPoint()) +SketchConstraintCoincidence_276.setName("SketchConstraintCoincidence_106") +SketchConstraintCoincidence_277 = Sketch_17.setCoincident(SketchLine_184.endPoint(), SketchLine_177.result()) +SketchConstraintCoincidence_277.setName("SketchConstraintCoincidence_107") +SketchConstraintCoincidence_278 = Sketch_17.setCoincident(SketchLine_171.startPoint(), SketchLine_181.result()) +SketchConstraintCoincidence_278.setName("SketchConstraintCoincidence_108") +SketchArc_40 = Sketch_17.addArc(31.25, -7.249999999999998, 31, -7.249999999999651, 31.25, -7.499999999999998, False) +SketchConstraintCoincidence_279 = Sketch_17.setCoincident(SketchArc_40.startPoint(), SketchLine_172.endPoint()) +SketchConstraintCoincidence_279.setName("SketchConstraintCoincidence_109") +SketchConstraintCoincidence_280 = Sketch_17.setCoincident(SketchArc_40.endPoint(), SketchLine_173.startPoint()) +SketchConstraintCoincidence_280.setName("SketchConstraintCoincidence_110") +SketchConstraintCoincidence_281 = Sketch_17.setCoincident(SketchLine_184.endPoint(), SketchLine_173.endPoint()) +SketchConstraintCoincidence_281.setName("SketchConstraintCoincidence_111") +SketchConstraintCoincidence_282 = Sketch_17.setCoincident(SketchLine_183.startPoint(), SketchLine_172.startPoint()) +SketchConstraintCoincidence_282.setName("SketchConstraintCoincidence_112") +SketchConstraintCoincidence_283 = Sketch_17.setCoincident(SketchLine_173.startPoint(), SketchLine_184.result()) +SketchConstraintCoincidence_283.setName("SketchConstraintCoincidence_113") +SketchConstraintCoincidence_284 = Sketch_17.setCoincident(SketchLine_172.endPoint(), SketchLine_183.result()) +SketchConstraintCoincidence_284.setName("SketchConstraintCoincidence_114") +SketchConstraintRadius_13 = Sketch_17.setRadius(SketchArc_37.results()[1], 0.75) +SketchConstraintRadius_14 = Sketch_17.setRadius(SketchArc_39.results()[1], 0.75) +SketchConstraintRadius_15 = Sketch_17.setRadius(SketchArc_38.results()[1], 0.25) +SketchConstraintTangent_23 = Sketch_17.setTangent(SketchArc_40.results()[1], SketchLine_173.result()) +SketchConstraintTangent_23.setName("SketchConstraintTangent_16") +SketchConstraintTangent_24 = Sketch_17.setTangent(SketchLine_172.result(), SketchArc_40.results()[1]) +SketchConstraintTangent_24.setName("SketchConstraintTangent_17") +SketchConstraintRadius_16 = Sketch_17.setRadius(SketchArc_40.results()[1], 0.25) +SketchConstraintRadius_16.setName("SketchConstraintRadius_10") +model.do() +ExtrusionCut_15 = model.addExtrusionCut(Part_2_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection(), 0, 20, [model.selection("SOLID", "ExtrusionFuse_1_1")]) +Sketch_18 = model.addSketch(Part_2_doc, model.selection("FACE", "(ExtrusionFuse_1_1/Modified_Face&Extrusion_1_1/From_Face)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_76)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchArc_15_2)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_80)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchArc_17_2)(ExtrusionCut_6_1/Generated_Face&Sketch_7/SketchLine_79)(ExtrusionFuse_1_1/Modified_Face&Extrusion_1_1/To_Face)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10)")) +SketchPoint_36 = Sketch_18.addPoint(54, 0) +SketchPoint_37 = Sketch_18.addPoint(54, 0) +SketchConstraintRigid_20 = Sketch_18.setFixed(SketchPoint_37.result()) +SketchConstraintRigid_20.setName("SketchConstraintRigid_16") +SketchConstraintCoincidence_285 = Sketch_18.setCoincident(SketchPoint_36.coordinates(), SketchPoint_37.result()) +SketchConstraintCoincidence_285.setName("SketchConstraintCoincidence_115") +SketchPoint_38 = Sketch_18.addPoint(54, 12) +SketchLine_185 = Sketch_18.addLine(54, 12, 54, 0) +SketchLine_185.setName("SketchLine_81") +SketchLine_185.result().setName("SketchLine_81") +SketchLine_185.setAuxiliary(True) +SketchConstraintCoincidence_286 = Sketch_18.setCoincident(SketchPoint_38.coordinates(), SketchLine_185.startPoint()) +SketchConstraintCoincidence_286.setName("SketchConstraintCoincidence_116") +SketchConstraintCoincidence_287 = Sketch_18.setCoincident(SketchPoint_36.coordinates(), SketchLine_185.endPoint()) +SketchConstraintCoincidence_287.setName("SketchConstraintCoincidence_117") +SketchConstraintCoincidence_288 = Sketch_18.setCoincident(SketchPoint_37.coordinates(), SketchLine_185.endPoint()) +SketchConstraintCoincidence_288.setName("SketchConstraintCoincidence_118") +SketchPoint_39 = Sketch_18.addPoint(54, 11) +SketchConstraintCoincidence_289 = Sketch_18.setCoincident(SketchPoint_39.coordinates(), SketchLine_185.result()) +SketchConstraintCoincidence_289.setName("SketchConstraintCoincidence_119") +SketchPoint_40 = Sketch_18.addPoint(54, 1) +SketchConstraintCoincidence_290 = Sketch_18.setCoincident(SketchPoint_40.coordinates(), SketchLine_185.result()) +SketchConstraintCoincidence_290.setName("SketchConstraintCoincidence_120") +SketchConstraintDistance_31 = Sketch_18.setDistance(SketchPoint_36.coordinates(), SketchPoint_40.coordinates(), 1, False) +SketchConstraintDistance_32 = Sketch_18.setDistance(SketchPoint_38.coordinates(), SketchPoint_39.coordinates(), 1, False) +SketchPoint_41 = Sketch_18.addPoint(54, 12) +SketchConstraintCoincidence_291 = Sketch_18.setCoincident(SketchPoint_38.coordinates(), SketchPoint_41.coordinates()) +SketchConstraintCoincidence_291.setName("SketchConstraintCoincidence_121") +SketchConstraintRigid_21 = Sketch_18.setFixed(SketchPoint_41.result()) +SketchConstraintRigid_21.setName("SketchConstraintRigid_17") +SketchLine_186 = Sketch_18.addLine(54, 11, 43.82041221793113, 11) +SketchLine_186.setName("SketchLine_82") +SketchLine_186.result().setName("SketchLine_82") +SketchConstraintCoincidence_292 = Sketch_18.setCoincident(SketchPoint_39.coordinates(), SketchLine_186.startPoint()) +SketchConstraintCoincidence_292.setName("SketchConstraintCoincidence_122") +SketchLine_187 = Sketch_18.addLine(43.82041221793113, 11, 43.82041221793113, 13.36310636658867) +SketchLine_187.setName("SketchLine_83") +SketchLine_187.result().setName("SketchLine_83") +SketchConstraintCoincidence_293 = Sketch_18.setCoincident(SketchLine_186.endPoint(), SketchLine_187.startPoint()) +SketchConstraintCoincidence_293.setName("SketchConstraintCoincidence_123") +SketchLine_188 = Sketch_18.addLine(43.82041221793113, 13.36310636658867, 63.09515214070713, 13.47539228785809) +SketchLine_188.setName("SketchLine_84") +SketchLine_188.result().setName("SketchLine_84") +SketchConstraintCoincidence_294 = Sketch_18.setCoincident(SketchLine_187.endPoint(), SketchLine_188.startPoint()) +SketchConstraintCoincidence_294.setName("SketchConstraintCoincidence_124") +SketchLine_189 = Sketch_18.addLine(63.09515214070713, 13.47539228785809, 63.12349734647592, -1.774328415749978) +SketchLine_189.setName("SketchLine_85") +SketchLine_189.result().setName("SketchLine_85") +SketchConstraintCoincidence_295 = Sketch_18.setCoincident(SketchLine_188.endPoint(), SketchLine_189.startPoint()) +SketchConstraintCoincidence_295.setName("SketchConstraintCoincidence_125") +SketchLine_190 = Sketch_18.addLine(63.12349734647592, -1.774328415749978, 43.82041221793113, -1.802673621518767) +SketchLine_190.setName("SketchLine_86") +SketchLine_190.result().setName("SketchLine_86") +SketchConstraintCoincidence_296 = Sketch_18.setCoincident(SketchLine_189.endPoint(), SketchLine_190.startPoint()) +SketchConstraintCoincidence_296.setName("SketchConstraintCoincidence_126") +SketchLine_191 = Sketch_18.addLine(43.82041221793113, -1.802673621518767, 43.79206701216234, 1) +SketchLine_191.setName("SketchLine_87") +SketchLine_191.result().setName("SketchLine_87") +SketchConstraintCoincidence_297 = Sketch_18.setCoincident(SketchLine_190.endPoint(), SketchLine_191.startPoint()) +SketchConstraintCoincidence_297.setName("SketchConstraintCoincidence_127") +SketchLine_192 = Sketch_18.addLine(54, 1, 43.79206701216234, 1) +SketchLine_192.setName("SketchLine_88") +SketchLine_192.result().setName("SketchLine_88") +SketchConstraintCoincidence_298 = Sketch_18.setCoincident(SketchPoint_40.coordinates(), SketchLine_192.startPoint()) +SketchConstraintCoincidence_298.setName("SketchConstraintCoincidence_128") +SketchConstraintHorizontal_37 = Sketch_18.setHorizontal(SketchLine_192.result()) +SketchConstraintHorizontal_37.setName("SketchConstraintHorizontal_16") +SketchConstraintHorizontal_38 = Sketch_18.setHorizontal(SketchLine_186.result()) +SketchConstraintHorizontal_38.setName("SketchConstraintHorizontal_17") +SketchConstraintCoincidence_299 = Sketch_18.setCoincident(SketchLine_191.endPoint(), SketchLine_192.endPoint()) +SketchConstraintCoincidence_299.setName("SketchConstraintCoincidence_129") +SketchArc_41 = Sketch_18.addArc(54, 6, 54, 11, 54, 1, True) +SketchConstraintCoincidence_300 = Sketch_18.setCoincident(SketchArc_41.center(), SketchLine_185.result()) +SketchConstraintCoincidence_300.setName("SketchConstraintCoincidence_130") +SketchConstraintCoincidence_301 = Sketch_18.setCoincident(SketchPoint_39.coordinates(), SketchArc_41.startPoint()) +SketchConstraintCoincidence_301.setName("SketchConstraintCoincidence_130_") +SketchConstraintCoincidence_302 = Sketch_18.setCoincident(SketchLine_186.startPoint(), SketchArc_41.startPoint()) +SketchConstraintCoincidence_302.setName("SketchConstraintCoincidence_131") +SketchConstraintCoincidence_303 = Sketch_18.setCoincident(SketchPoint_40.coordinates(), SketchArc_41.endPoint()) +SketchConstraintCoincidence_303.setName("SketchConstraintCoincidence_132") +SketchConstraintCoincidence_304 = Sketch_18.setCoincident(SketchLine_192.startPoint(), SketchArc_41.endPoint()) +SketchConstraintCoincidence_304.setName("SketchConstraintCoincidence_133") +SketchLine_193 = Sketch_18.addLine(43.50261344273609, 8.25, 43.50261344273609, 3.75) +SketchLine_193.setName("SketchLine_90") +SketchLine_193.result().setName("SketchLine_90") +SketchConstraintVertical_33 = Sketch_18.setVertical(SketchLine_193.result()) +SketchConstraintLength_31 = Sketch_18.setLength(SketchLine_193.result(), 4.5) +SketchConstraintLength_31.setName("SketchConstraintLength_15") +SketchPoint_42 = Sketch_18.addPoint(43.50261344273609, 6) +SketchConstraintMiddle_13 = Sketch_18.setMiddlePoint(SketchPoint_42.coordinates(), SketchLine_193.result()) +SketchPoint_43 = Sketch_18.addPoint(0, 6) +SketchPoint_43.setAuxiliary(True) +SketchLine_194 = Sketch_18.addLine(0, 0, 0, 12) +SketchLine_194.setName("SketchLine_94") +SketchLine_194.result().setName("SketchLine_94") +SketchConstraintRigid_22 = Sketch_18.setFixed(SketchLine_194.result()) +SketchConstraintRigid_22.setName("SketchConstraintRigid_19") +SketchConstraintCoincidence_305 = Sketch_18.setCoincident(SketchPoint_43.coordinates(), SketchLine_194.result()) +SketchConstraintCoincidence_305.setName("SketchConstraintCoincidence_139") +SketchConstraintMiddle_14 = Sketch_18.setMiddlePoint(SketchLine_194.result(), SketchPoint_43.coordinates()) +SketchLine_195 = Sketch_18.addLine(0, 6, 68.8619738308997, 6) +SketchLine_195.setName("SketchLine_95") +SketchLine_195.result().setName("SketchLine_95") +SketchLine_195.setAuxiliary(True) +SketchConstraintCoincidence_306 = Sketch_18.setCoincident(SketchPoint_43.coordinates(), SketchLine_195.startPoint()) +SketchConstraintCoincidence_306.setName("SketchConstraintCoincidence_140") +SketchConstraintHorizontal_39 = Sketch_18.setHorizontal(SketchLine_195.result()) +SketchConstraintHorizontal_39.setName("SketchConstraintHorizontal_20") +SketchPoint_44 = Sketch_18.addPoint(48.00130672136804, 6) +SketchConstraintCoincidence_307 = Sketch_18.setCoincident(SketchPoint_44.coordinates(), SketchLine_195.result()) +SketchConstraintCoincidence_307.setName("SketchConstraintCoincidence_146") +SketchLine_196 = Sketch_18.addLine(43.50261344273609, 8.25, 51.26978940411676, 8.25) +SketchLine_196.setName("SketchLine_92") +SketchLine_196.result().setName("SketchLine_92") +SketchConstraintCoincidence_308 = Sketch_18.setCoincident(SketchLine_193.startPoint(), SketchLine_196.startPoint()) +SketchConstraintCoincidence_308.setName("SketchConstraintCoincidence_135") +SketchLine_197 = Sketch_18.addLine(51.26978940411676, 8.25, 51.26978940411676, 3.75) +SketchLine_197.setName("SketchLine_97") +SketchLine_197.result().setName("SketchLine_97") +SketchConstraintCoincidence_309 = Sketch_18.setCoincident(SketchLine_196.endPoint(), SketchLine_197.startPoint()) +SketchConstraintCoincidence_309.setName("SketchConstraintCoincidence_136") +SketchLine_198 = Sketch_18.addLine(51.26978940411676, 3.75, 43.50261344273609, 3.75) +SketchLine_198.setName("SketchLine_98") +SketchLine_198.result().setName("SketchLine_98") +SketchConstraintCoincidence_310 = Sketch_18.setCoincident(SketchLine_197.endPoint(), SketchLine_198.startPoint()) +SketchConstraintCoincidence_310.setName("SketchConstraintCoincidence_137") +SketchConstraintCoincidence_311 = Sketch_18.setCoincident(SketchLine_193.endPoint(), SketchLine_198.endPoint()) +SketchConstraintCoincidence_311.setName("SketchConstraintCoincidence_138") +SketchConstraintHorizontal_40 = Sketch_18.setHorizontal(SketchLine_198.result()) +SketchConstraintHorizontal_41 = Sketch_18.setHorizontal(SketchLine_196.result()) +SketchConstraintVertical_34 = Sketch_18.setVertical(SketchLine_197.result()) +SketchLine_199 = Sketch_18.addLine(43.50261344273609, 3.75, 51.26978940411676, 8.25) +SketchLine_199.setAuxiliary(True) +SketchConstraintCoincidence_312 = Sketch_18.setCoincident(SketchLine_193.endPoint(), SketchLine_199.startPoint()) +SketchConstraintCoincidence_312.setName("SketchConstraintCoincidence_141") +SketchConstraintCoincidence_313 = Sketch_18.setCoincident(SketchLine_198.endPoint(), SketchLine_199.startPoint()) +SketchConstraintCoincidence_313.setName("SketchConstraintCoincidence_142") +SketchConstraintCoincidence_314 = Sketch_18.setCoincident(SketchLine_197.startPoint(), SketchLine_199.endPoint()) +SketchConstraintCoincidence_314.setName("SketchConstraintCoincidence_143") +SketchPoint_45 = Sketch_18.addPoint(47.38620142342643, 6) +SketchPoint_45.setAuxiliary(True) +SketchConstraintCoincidence_315 = Sketch_18.setCoincident(SketchPoint_45.coordinates(), SketchLine_199.result()) +SketchConstraintCoincidence_315.setName("SketchConstraintCoincidence_144") +SketchConstraintMiddle_15 = Sketch_18.setMiddlePoint(SketchPoint_45.coordinates(), SketchLine_199.result()) +SketchConstraintCoincidence_316 = Sketch_18.setCoincident(SketchPoint_45.coordinates(), SketchLine_195.result()) +SketchConstraintCoincidence_316.setName("SketchConstraintCoincidence_145") +model.do() +ExtrusionCut_16 = model.addExtrusionCut(Part_2_doc, [model.selection("COMPOUND", "Sketch_8")], model.selection(), 10, 0, [model.selection("SOLID", "ExtrusionCut_6_1")]) +Sketch_19 = model.addSketch(Part_2_doc, model.selection("FACE", "ExtrusionCut_7_1/Modified_Face&Extrusion_1_1/To_Face")) +SketchLine_200 = Sketch_19.addLine(21, 4.163450069699051, 21, 0) +SketchLine_200.setName("SketchLine_107") +SketchLine_200.result().setName("SketchLine_107") +SketchLine_201 = Sketch_19.addLine(29, 5, 21, 5) +SketchLine_201.setName("SketchLine_96") +SketchLine_201.result().setName("SketchLine_96") +SketchLine_201.setAuxiliary(True) +SketchArc_42 = Sketch_19.addArc(25, 8, 21.53774043054522, 4.392679848735523, 28.46225956945478, 4.392679848735522, False) +SketchArc_42.setName("SketchArc_22") +SketchArc_42.result().setName("SketchArc_22") +SketchArc_42.results()[1].setName("SketchArc_22_2") +SketchLine_202 = Sketch_19.addLine(21, 0, 29, 0) +SketchLine_202.setName("SketchLine_100") +SketchLine_202.result().setName("SketchLine_100") +SketchLine_203 = Sketch_19.addLine(29, 0, 29, 4.163450069699049) +SketchLine_203.setName("SketchLine_108") +SketchLine_203.result().setName("SketchLine_108") +SketchLine_204 = Sketch_19.addLine(29, 0, 29, 5) +SketchLine_204.setName("SketchLine_101") +SketchLine_204.result().setName("SketchLine_101") +SketchLine_204.setAuxiliary(True) +SketchConstraintCoincidence_317 = Sketch_19.setCoincident(SketchLine_204.endPoint(), SketchLine_201.startPoint()) +SketchConstraintCoincidence_317.setName("SketchConstraintCoincidence_147") +SketchLine_205 = Sketch_19.addLine(21, 5, 21, 0) +SketchLine_205.setAuxiliary(True) +SketchConstraintCoincidence_318 = Sketch_19.setCoincident(SketchLine_201.endPoint(), SketchLine_205.startPoint()) +SketchConstraintCoincidence_318.setName("SketchConstraintCoincidence_148") +SketchConstraintCoincidence_319 = Sketch_19.setCoincident(SketchLine_205.endPoint(), SketchLine_202.startPoint()) +SketchConstraintCoincidence_319.setName("SketchConstraintCoincidence_149") +SketchConstraintCoincidence_320 = Sketch_19.setCoincident(SketchLine_202.endPoint(), SketchLine_204.startPoint()) +SketchConstraintCoincidence_320.setName("SketchConstraintCoincidence_150") +SketchConstraintHorizontal_42 = Sketch_19.setHorizontal(SketchLine_201.result()) +SketchConstraintHorizontal_42.setName("SketchConstraintHorizontal_21") +SketchConstraintVertical_35 = Sketch_19.setVertical(SketchLine_205.result()) +SketchConstraintHorizontal_43 = Sketch_19.setHorizontal(SketchLine_202.result()) +SketchConstraintHorizontal_43.setName("SketchConstraintHorizontal_22") +SketchConstraintVertical_36 = Sketch_19.setVertical(SketchLine_204.result()) +SketchPoint_46 = Sketch_19.addPoint(21, 7.5) +SketchConstraintCoincidence_321 = Sketch_19.setCoincident(SketchLine_205.result(), SketchPoint_46.coordinates()) +SketchConstraintCoincidence_321.setName("SketchConstraintCoincidence_151") +SketchConstraintRigid_23 = Sketch_19.setFixed(SketchPoint_46.result()) +SketchConstraintRigid_23.setName("SketchConstraintRigid_18") +SketchPoint_47 = Sketch_19.addPoint(29, 7.5) +SketchConstraintCoincidence_322 = Sketch_19.setCoincident(SketchLine_204.result(), SketchPoint_47.coordinates()) +SketchConstraintCoincidence_322.setName("SketchConstraintCoincidence_152") +SketchConstraintRigid_24 = Sketch_19.setFixed(SketchPoint_47.result()) +SketchConstraintRigid_24.setName("SketchConstraintRigid_20") +SketchConstraintLength_32 = Sketch_19.setLength(SketchLine_205.result(), 5) +SketchConstraintLength_32.setName("SketchConstraintLength_16") +SketchLine_206 = Sketch_19.addLine(0, 0, 45.5, 0) +SketchLine_206.setName("SketchLine_102") +SketchLine_206.result().setName("SketchLine_102") +SketchConstraintCoincidence_323 = Sketch_19.setCoincident(SketchLine_205.endPoint(), SketchLine_206.result()) +SketchConstraintCoincidence_323.setName("SketchConstraintCoincidence_153") +SketchConstraintRigid_25 = Sketch_19.setFixed(SketchLine_206.result()) +SketchConstraintRigid_25.setName("SketchConstraintRigid_21") +SketchArc_43 = Sketch_19.addArc(25, 8, 21, 5, 29, 5, False) +SketchArc_43.setName("SketchArc_19") +SketchArc_43.result().setName("SketchArc_19") +SketchArc_43.results()[1].setName("SketchArc_19_2") +SketchArc_43.setAuxiliary(True) +SketchConstraintCoincidence_324 = Sketch_19.setCoincident(SketchLine_201.endPoint(), SketchArc_43.startPoint()) +SketchConstraintCoincidence_324.setName("SketchConstraintCoincidence_154") +SketchConstraintCoincidence_325 = Sketch_19.setCoincident(SketchLine_205.startPoint(), SketchArc_43.startPoint()) +SketchConstraintCoincidence_325.setName("SketchConstraintCoincidence_155") +SketchConstraintCoincidence_326 = Sketch_19.setCoincident(SketchLine_201.startPoint(), SketchArc_43.endPoint()) +SketchConstraintCoincidence_326.setName("SketchConstraintCoincidence_156") +SketchConstraintCoincidence_327 = Sketch_19.setCoincident(SketchLine_204.endPoint(), SketchArc_43.endPoint()) +SketchConstraintCoincidence_327.setName("SketchConstraintCoincidence_157") +SketchConstraintRadius_17 = Sketch_19.setRadius(SketchArc_43.results()[1], 5) +SketchLine_207 = Sketch_19.addLine(1, 0, 1, 1.8) +SketchLine_207.setName("SketchLine_103") +SketchLine_207.result().setName("SketchLine_103") +SketchConstraintCoincidence_328 = Sketch_19.setCoincident(SketchLine_207.startPoint(), SketchLine_206.result()) +SketchConstraintCoincidence_328.setName("SketchConstraintCoincidence_158") +SketchLine_208 = Sketch_19.addLine(1, 1.8, 8, 3.389761862250954) +SketchLine_208.setName("SketchLine_104") +SketchLine_208.result().setName("SketchLine_104") +SketchConstraintCoincidence_329 = Sketch_19.setCoincident(SketchLine_207.endPoint(), SketchLine_208.startPoint()) +SketchConstraintCoincidence_329.setName("SketchConstraintCoincidence_159") +SketchLine_209 = Sketch_19.addLine(8, 3.389761862250954, 8, 0) +SketchLine_209.setName("SketchLine_105") +SketchLine_209.result().setName("SketchLine_105") +SketchConstraintCoincidence_330 = Sketch_19.setCoincident(SketchLine_208.endPoint(), SketchLine_209.startPoint()) +SketchConstraintCoincidence_330.setName("SketchConstraintCoincidence_160") +SketchLine_210 = Sketch_19.addLine(8, 0, 1, 0) +SketchLine_210.setName("SketchLine_106") +SketchLine_210.result().setName("SketchLine_106") +SketchConstraintCoincidence_331 = Sketch_19.setCoincident(SketchLine_209.endPoint(), SketchLine_210.startPoint()) +SketchConstraintCoincidence_331.setName("SketchConstraintCoincidence_161") +SketchConstraintCoincidence_332 = Sketch_19.setCoincident(SketchLine_207.startPoint(), SketchLine_210.endPoint()) +SketchConstraintCoincidence_332.setName("SketchConstraintCoincidence_162") +SketchConstraintCoincidence_333 = Sketch_19.setCoincident(SketchLine_210.startPoint(), SketchLine_206.result()) +SketchConstraintCoincidence_333.setName("SketchConstraintCoincidence_163") +SketchConstraintVertical_37 = Sketch_19.setVertical(SketchLine_209.result()) +SketchConstraintVertical_38 = Sketch_19.setVertical(SketchLine_207.result()) +SketchConstraintLength_33 = Sketch_19.setLength(SketchLine_210.result(), 7) +SketchConstraintLength_33.setName("SketchConstraintLength_17") +SketchConstraintDistance_33 = Sketch_19.setDistance(SketchLine_207.result(), SketchLine_206.startPoint(), 1, False) +SketchConstraintLength_34 = Sketch_19.setLength(SketchLine_207.result(), 1.8) +SketchConstraintLength_34.setName("SketchConstraintLength_18") +SketchArc_44 = Sketch_19.addArc(21.31772863153846, 4.163450069699051, 21.53774043054522, 4.392679848735523, 21, 4.163450069699051, False) +SketchArc_45 = Sketch_19.addArc(25, 8, 21.53774043054522, 4.392679848735523, 29, 5, False) +SketchArc_45.setName("SketchArc_20") +SketchArc_45.result().setName("SketchArc_20") +SketchArc_45.results()[1].setName("SketchArc_20_2") +SketchArc_45.setAuxiliary(True) +SketchConstraintCoincidence_334 = Sketch_19.setCoincident(SketchArc_44.startPoint(), SketchArc_45.startPoint()) +SketchConstraintCoincidence_334.setName("SketchConstraintCoincidence_164") +SketchConstraintCoincidence_335 = Sketch_19.setCoincident(SketchArc_44.endPoint(), SketchLine_200.startPoint()) +SketchConstraintCoincidence_335.setName("SketchConstraintCoincidence_165") +SketchConstraintTangent_25 = Sketch_19.setTangent(SketchArc_44.results()[1], SketchLine_200.result()) +SketchConstraintTangent_26 = Sketch_19.setTangent(SketchArc_44.results()[1], SketchArc_45.results()[1]) +SketchConstraintCoincidence_336 = Sketch_19.setCoincident(SketchLine_205.endPoint(), SketchLine_200.endPoint()) +SketchConstraintCoincidence_336.setName("SketchConstraintCoincidence_166") +SketchConstraintCoincidence_337 = Sketch_19.setCoincident(SketchArc_43.endPoint(), SketchArc_45.endPoint()) +SketchConstraintCoincidence_337.setName("SketchConstraintCoincidence_167") +SketchConstraintTangent_27 = Sketch_19.setTangent(SketchArc_43.results()[1], SketchArc_45.results()[1]) +SketchConstraintCoincidence_338 = Sketch_19.setCoincident(SketchLine_200.startPoint(), SketchLine_205.result()) +SketchConstraintCoincidence_338.setName("SketchConstraintCoincidence_168") +SketchConstraintCoincidence_339 = Sketch_19.setCoincident(SketchArc_45.startPoint(), SketchArc_43.results()[1]) +SketchConstraintCoincidence_339.setName("SketchConstraintCoincidence_169") +SketchArc_46 = Sketch_19.addArc(28.68227136846154, 4.163450069699049, 29, 4.163450069699049, 28.46225956945478, 4.392679848735522, False) +SketchConstraintCoincidence_340 = Sketch_19.setCoincident(SketchArc_46.startPoint(), SketchLine_203.endPoint()) +SketchConstraintCoincidence_340.setName("SketchConstraintCoincidence_170") +SketchConstraintCoincidence_341 = Sketch_19.setCoincident(SketchArc_46.endPoint(), SketchArc_42.endPoint()) +SketchConstraintCoincidence_341.setName("SketchConstraintCoincidence_171") +SketchConstraintTangent_28 = Sketch_19.setTangent(SketchArc_46.results()[1], SketchArc_42.results()[1]) +SketchConstraintTangent_29 = Sketch_19.setTangent(SketchArc_46.results()[1], SketchLine_203.result()) +SketchConstraintCoincidence_342 = Sketch_19.setCoincident(SketchArc_45.startPoint(), SketchArc_42.startPoint()) +SketchConstraintCoincidence_342.setName("SketchConstraintCoincidence_172") +SketchConstraintCoincidence_343 = Sketch_19.setCoincident(SketchLine_204.startPoint(), SketchLine_203.startPoint()) +SketchConstraintCoincidence_343.setName("SketchConstraintCoincidence_173") +SketchConstraintTangent_30 = Sketch_19.setTangent(SketchArc_45.results()[1], SketchArc_42.results()[1]) +SketchConstraintCoincidence_344 = Sketch_19.setCoincident(SketchArc_42.endPoint(), SketchArc_45.results()[1]) +SketchConstraintCoincidence_344.setName("SketchConstraintCoincidence_174") +SketchConstraintCoincidence_345 = Sketch_19.setCoincident(SketchLine_203.endPoint(), SketchLine_204.result()) +SketchConstraintCoincidence_345.setName("SketchConstraintCoincidence_175") +model.do() +Plane_12 = model.addPlane(Part_2_doc, model.selection("FACE", "Plane_2"), 4, False) +Plane_13 = model.addPlane(Part_2_doc, model.selection("FACE", "Plane_2"), 4, True) +ExtrusionCut_17 = model.addExtrusionCut(Part_2_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection(), model.selection("FACE", "Plane_5"), 0, model.selection("FACE", "Plane_4"), 0, [model.selection("SOLID", "ExtrusionCut_7_1")]) +Sketch_20 = model.addSketch(Part_2_doc, model.selection("FACE", "ExtrusionCut_8_1/Modified_Face&Sketch_1/SketchLine_1")) +SketchCircle_2 = Sketch_20.addCircle(12, 6, 1) +SketchConstraintRadius_18 = Sketch_20.setRadius(SketchCircle_2.results()[1], 1) +SketchPoint_48 = Sketch_20.addPoint(0, 6) +SketchPoint_48.setAuxiliary(True) +SketchLine_211 = Sketch_20.addLine(0, 0, 0, 12) +SketchLine_211.setName("SketchLine_109") +SketchLine_211.result().setName("SketchLine_109") +SketchConstraintRigid_26 = Sketch_20.setFixed(SketchLine_211.result()) +SketchConstraintRigid_26.setName("SketchConstraintRigid_22") +SketchConstraintCoincidence_346 = Sketch_20.setCoincident(SketchPoint_48.coordinates(), SketchLine_211.result()) +SketchConstraintCoincidence_346.setName("SketchConstraintCoincidence_176") +SketchConstraintMiddle_16 = Sketch_20.setMiddlePoint(SketchLine_211.result(), SketchPoint_48.coordinates()) +SketchLine_212 = Sketch_20.addLine(0, 6, 17.31036191565843, 6) +SketchLine_212.setName("SketchLine_110") +SketchLine_212.result().setName("SketchLine_110") +SketchLine_212.setAuxiliary(True) +SketchConstraintCoincidence_347 = Sketch_20.setCoincident(SketchPoint_48.coordinates(), SketchLine_212.startPoint()) +SketchConstraintCoincidence_347.setName("SketchConstraintCoincidence_177") +SketchConstraintHorizontal_44 = Sketch_20.setHorizontal(SketchLine_212.result()) +SketchConstraintHorizontal_44.setName("SketchConstraintHorizontal_23") +SketchConstraintCoincidence_348 = Sketch_20.setCoincident(SketchCircle_2.center(), SketchLine_212.result()) +SketchConstraintCoincidence_348.setName("SketchConstraintCoincidence_178") +SketchConstraintDistance_34 = Sketch_20.setDistance(SketchLine_211.result(), SketchCircle_2.center(), 12, False) +model.do() +ExtrusionCut_18 = model.addExtrusionCut(Part_2_doc, [model.selection("WIRE", "Sketch_10/Face-SketchCircle_1_2r_wire")], model.selection(), 0, 0.75, [model.selection("SOLID", "ExtrusionCut_8_1")]) +model.do() +Rotation_1 = model.addRotation(partSet, [model.selection("COMPOUND", "Part_2/")], model.selection("EDGE", "Part_1/[ExtrusionCut_9_1/Modified_Face&Sketch_1/SketchLine_1][ExtrusionCut_7_1/Modified_Face&Extrusion_1_1/From_Face]"), 180) +Placement_1 = model.addPlacement(partSet, [model.selection("COMPOUND", "Rotation_1/")], model.selection("FACE", "Rotation_1/ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_9"), model.selection("FACE", "Part_1/ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_9"), False, True) +Rotation_2 = model.addRotation(partSet, [model.selection("COMPOUND", "Placement_1/")], model.selection("EDGE", "Part_1/[ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_9][ExtrusionCut_8_1/Modified_Face&Sketch_3/SketchLine_35]"), 7) +Rotation_2.result().setColor(255, 85, 0) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Part_1, 1) +model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/ecran.py b/test.compatibility/ecran.py new file mode 100644 index 000000000..b55d1466d --- /dev/null +++ b/test.compatibility/ecran.py @@ -0,0 +1,1078 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_H = model.addParameter(Part_1_doc, "H", "0.3") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchLine_1 = Sketch_1.addLine(55.1, 10.3, 55.1, 0.3) +SketchLine_2 = Sketch_1.addLine(55.1, 0.3, 2.3, 0.3) +SketchLine_2.setName("SketchLine_10") +SketchLine_2.result().setName("SketchLine_10") +SketchLine_3 = Sketch_1.addLine(55.1, 0.3, 0.3, 0.3) +SketchLine_3.setName("SketchLine_2") +SketchLine_3.result().setName("SketchLine_2") +SketchLine_3.setAuxiliary(True) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.startPoint()) +SketchLine_4 = Sketch_1.addLine(0.3, 2.3, 0.3, 10.3) +SketchLine_4.setName("SketchLine_11") +SketchLine_4.result().setName("SketchLine_11") +SketchLine_5 = Sketch_1.addLine(2.3, 0, 55.4, 0) +SketchLine_5.setName("SketchLine_12") +SketchLine_5.result().setName("SketchLine_12") +SketchLine_6 = Sketch_1.addLine(0.3, 0.3, 0.3, 10.3) +SketchLine_6.setName("SketchLine_3") +SketchLine_6.result().setName("SketchLine_3") +SketchLine_6.setAuxiliary(True) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(0, 10.3, 0, 2.3) +SketchLine_7.setName("SketchLine_13") +SketchLine_7.result().setName("SketchLine_13") +SketchLine_8 = Sketch_1.addLine(0.3, 10.3, 0, 10.3) +SketchLine_8.setName("SketchLine_4") +SketchLine_8.result().setName("SketchLine_4") +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_8.startPoint()) +SketchLine_9 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_9.setName("SketchLine_5") +SketchLine_9.result().setName("SketchLine_5") +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.result()) +SketchLine_10 = Sketch_1.addLine(0, 10.3, 0, 0) +SketchLine_10.setName("SketchLine_6") +SketchLine_10.result().setName("SketchLine_6") +SketchLine_10.setAuxiliary(True) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_10.startPoint()) +SketchLine_11 = Sketch_1.addLine(0, 0, 55.4, 0) +SketchLine_11.setName("SketchLine_7") +SketchLine_11.result().setName("SketchLine_7") +SketchLine_11.setAuxiliary(True) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint()) +SketchLine_12 = Sketch_1.addLine(55.4, 0, 55.4, 10.3) +SketchLine_12.setName("SketchLine_8") +SketchLine_12.result().setName("SketchLine_8") +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint()) +SketchLine_13 = Sketch_1.addLine(55.4, 10.3, 55.1, 10.3) +SketchLine_13.setName("SketchLine_9") +SketchLine_13.result().setName("SketchLine_9") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_13.endPoint()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_13.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_8.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_11.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_12.result()) +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_6.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 10) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_13.result(), 0.3) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.result(), SketchLine_11.endPoint(), 0.3) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_8.result(), SketchLine_1.startPoint()) +SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_11.result(), 55.4) +SketchConstraintLength_3.setName("SketchConstraintLength_5") +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_10.result()) +SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_8.result(), "H") +SketchArc_1 = Sketch_1.addArc(2.3, 2.3, 0.3, 2.3, 2.3, 0.3, False) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_4.startPoint()) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_2.endPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_2.result()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_4.result()) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_2.startPoint()) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_4.endPoint()) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.result()) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_6.result()) +SketchArc_2 = Sketch_1.addArc(2.3, 2.3, 0, 2.3, 2.3, 0, False) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_7.endPoint()) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_5.startPoint()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_5.result()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_7.result()) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_5.endPoint()) +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_10.startPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_11.result()) +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_10.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 2) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], 2.3) +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_5.result(), SketchLine_9.startPoint()) +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_1r-SketchLine_10f-SketchArc_1_2r-SketchLine_11f-SketchLine_4f-SketchLine_13f-SketchArc_2_2f-SketchLine_12f-SketchLine_8f-SketchLine_9f_wire")], model.selection(), "307/2.", "307/2.") +Extrusion_1.setName("Profil") +Extrusion_1.result().setName("Extrusion_1_1") +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_12")) +SketchLine_14 = Sketch_2.addLine(149.5, -2.3, 153.5, -2.3) +SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_12][Extrusion_1_1/To_Face]")) +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchPoint_1.result()) +SketchLine_15 = Sketch_2.addLine(153.5, -2.3, 153.5, 7.7) +SketchLine_16 = Sketch_2.addLine(153.5, 7.7, 149.5, 7.7) +SketchLine_17 = Sketch_2.addLine(149.5, 7.7, 149.5, -2.3) +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_17.endPoint(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint()) +SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint()) +SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint()) +SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_14.result()) +SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_15.result()) +SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_16.result()) +SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_17.result()) +SketchLine_18 = Sketch_2.addLine(-149.5, -2.3142, -153.5, -2.3142) +SketchLine_19 = Sketch_2.addLine(-153.5, -2.3142, -153.5, 7.7) +SketchLine_20 = Sketch_2.addLine(-153.5, 7.7, -149.5, 7.7) +SketchLine_21 = Sketch_2.addLine(-149.5, 7.7, -149.5, -2.3142) +SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchLine_21.endPoint(), SketchLine_18.startPoint()) +SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint()) +SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_32 = Sketch_2.setCoincident(SketchLine_20.endPoint(), SketchLine_21.startPoint()) +SketchConstraintHorizontal_7 = Sketch_2.setHorizontal(SketchLine_18.result()) +SketchConstraintVertical_7 = Sketch_2.setVertical(SketchLine_19.result()) +SketchConstraintHorizontal_8 = Sketch_2.setHorizontal(SketchLine_20.result()) +SketchConstraintVertical_8 = Sketch_2.setVertical(SketchLine_21.result()) +SketchConstraintCoincidence_33 = Sketch_2.setCoincident(SketchLine_16.endPoint(), SketchLine_20.result()) +SketchConstraintLength_5 = Sketch_2.setLength(SketchLine_21.result(), 10) +SketchConstraintLength_5.setName("SketchConstraintLength_6") +SketchConstraintDistance_2 = Sketch_2.setDistance(SketchLine_16.endPoint(), SketchLine_21.result(), 299) +SketchConstraintEqual_1 = Sketch_2.setEqual(SketchLine_16.result(), SketchLine_20.result()) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_12][Extrusion_1_1/From_Face]")) +SketchPoint_2.setName("SketchPoint_4") +SketchPoint_2.result().setName("SketchPoint_4") +SketchConstraintCoincidence_34 = Sketch_2.setCoincident(SketchLine_19.startPoint(), SketchPoint_2.coordinates()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_39") +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_4"), 0, model.selection(), 0, [model.selection("SOLID", "Extrusion_1_1")]) +ExtrusionCut_1.setName("Decoupe_Angle") +ExtrusionCut_1.result().setName("ExtrusionCut_1_1") +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8")) +SketchLine_22 = Sketch_3.addLine(153.5, -10.3, 153.5, -8.3) +SketchLine_22.setName("SketchLine_29") +SketchLine_22.result().setName("SketchLine_29") +SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_9][ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8]")) +SketchPoint_3.setName("SketchPoint_5") +SketchPoint_3.result().setName("SketchPoint_5") +SketchConstraintCoincidence_35 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchPoint_3.result()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_40") +SketchLine_23 = Sketch_3.addLine(model.selection("EDGE", "[ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8]")) +SketchLine_23.setName("SketchLine_30") +SketchLine_23.result().setName("SketchLine_30") +SketchConstraintCoincidence_36 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.result()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_41") +SketchLine_24 = Sketch_3.addLine(153.5, -8.3, 151.5, -10.3) +SketchLine_24.setName("SketchLine_31") +SketchLine_24.result().setName("SketchLine_31") +SketchConstraintCoincidence_37 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_24.startPoint()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_42") +SketchLine_25 = Sketch_3.addLine(151.5, -10.3, 153.5, -10.3) +SketchLine_25.setName("SketchLine_33") +SketchLine_25.result().setName("SketchLine_33") +SketchConstraintCoincidence_38 = Sketch_3.setCoincident(SketchLine_24.endPoint(), SketchLine_25.startPoint()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_44") +SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_25.endPoint()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_45") +SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchPoint_3.coordinates(), SketchLine_25.endPoint()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_23.endPoint(), SketchLine_25.endPoint()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_47") +SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_25.result(), 2) +SketchConstraintLength_6.setName("SketchConstraintLength_8") +SketchConstraintAngle_1 = Sketch_3.setAngleBackward(SketchLine_24.result(), SketchLine_25.result(), 45) +SketchConstraintAngle_1.setName("SketchConstraintAngle_2") +SketchLine_26 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_8")) +SketchLine_26.setName("SketchLine_34") +SketchLine_26.result().setName("SketchLine_34") +SketchConstraintMirror_1_objects = [SketchLine_22.result(), SketchLine_25.result(), SketchLine_24.result()] +SketchConstraintMirror_1 = Sketch_3.addMirror(SketchLine_26.result(), SketchConstraintMirror_1_objects) +[SketchLine_27, SketchLine_28, SketchLine_29] = SketchConstraintMirror_1.mirrored() +SketchLine_29.setName("SketchLine_32") +SketchLine_29.result().setName("SketchLine_32") +model.do() +Sketch_3.setName("Sketch_4") +Sketch_3.result().setName("Sketch_4") +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")]) +ExtrusionCut_2.setName("Chamfrein_1") +ExtrusionCut_2.result().setName("ExtrusionCut_2_1") +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_13")) +SketchLine_30 = Sketch_4.addLine(-149.5, 10.3, -149.5, 8.3) +SketchLine_30.setName("SketchLine_35") +SketchLine_30.result().setName("SketchLine_35") +SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Generated_Face&Sketch_2/SketchLine_21][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_13][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_4]")) +SketchPoint_4.setName("SketchPoint_6") +SketchPoint_4.result().setName("SketchPoint_6") +SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchPoint_4.result()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43") +SketchLine_31 = Sketch_4.addLine(model.selection("EDGE", "[ExtrusionCut_1_1/Generated_Face&Sketch_2/SketchLine_21][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_13]")) +SketchLine_31.setName("SketchLine_36") +SketchLine_31.result().setName("SketchLine_36") +SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.result()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_48") +SketchLine_32 = Sketch_4.addLine(-149.5, 8.3, -147.5, 10.3) +SketchLine_32.setName("SketchLine_37") +SketchLine_32.result().setName("SketchLine_37") +SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_49") +SketchLine_33 = Sketch_4.addLine(-147.5, 10.3, -149.5, 10.3) +SketchLine_33.setName("SketchLine_38") +SketchLine_33.result().setName("SketchLine_38") +SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_50") +SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_33.endPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_51") +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchPoint_4.coordinates(), SketchLine_33.endPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_52") +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_33.endPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_53") +SketchConstraintHorizontal_9 = Sketch_4.setHorizontal(SketchLine_33.result()) +SketchConstraintAngle_2 = Sketch_4.setAngleBackward(SketchLine_30.result(), SketchLine_32.result(), 45) +SketchConstraintAngle_2.setName("SketchConstraintAngle_3") +SketchConstraintLength_7 = Sketch_4.setLength(SketchLine_33.result(), 2) +SketchLine_34 = Sketch_4.addLine(0, 0, 0, 100) +SketchLine_34.setName("SketchLine_39") +SketchLine_34.result().setName("SketchLine_39") +SketchConstraintMirror_2_objects = [SketchLine_32.result(), SketchLine_33.result(), SketchLine_30.result()] +SketchConstraintMirror_2 = Sketch_4.addMirror(SketchLine_34.result(), SketchConstraintMirror_2_objects) +[SketchLine_35, SketchLine_36, SketchLine_37] = SketchConstraintMirror_2.mirrored() +SketchLine_37.setName("SketchLine_42") +SketchLine_37.result().setName("SketchLine_42") +SketchLine_36.setName("SketchLine_41") +SketchLine_36.result().setName("SketchLine_41") +SketchLine_35.setName("SketchLine_40") +SketchLine_35.result().setName("SketchLine_40") +SketchConstraintRigid_1 = Sketch_4.setFixed(SketchLine_34.result()) +SketchConstraintRigid_1.setName("SketchConstraintRigid_12") +SketchLine_38 = Sketch_4.addLine(153.5, 5.5, -100.5, 5.5) +SketchLine_38.setName("SketchLine_43") +SketchLine_38.result().setName("SketchLine_43") +SketchLine_38.setAuxiliary(True) +SketchConstraintHorizontal_10 = Sketch_4.setHorizontal(SketchLine_38.result()) +SketchProjection_1 = Sketch_4.addProjection(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_1][ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/To_Face]"), False) +SketchLine_39 = SketchProjection_1.createdFeature() +SketchLine_39.setName("SketchLine_44") +SketchLine_39.result().setName("SketchLine_44") +SketchConstraintDistance_3 = Sketch_4.setDistance(SketchLine_38.result(), SketchAPI_Line(SketchLine_39).endPoint(), 5.5) +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_38.startPoint(), SketchLine_39.result()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_54") +SketchCircle_1 = Sketch_4.addCircle(100.5, 5.5, 1.5) +SketchConstraintRadius_3 = Sketch_4.setRadius(SketchCircle_1.results()[1], 1.5) +SketchCircle_2 = Sketch_4.addCircle(33.5, 5.5, 1.5) +SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchCircle_2.center(), SketchLine_38.result()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_55") +SketchCircle_3 = Sketch_4.addCircle(-33.5, 5.5, 1.506545921898) +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchCircle_3.center(), SketchLine_38.result()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_56") +SketchCircle_4 = Sketch_4.addCircle(-100.5, 5.5, 1.506545921898) +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchCircle_4.center(), SketchLine_38.result()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_57") +SketchConstraintEqual_2 = Sketch_4.setEqual(SketchCircle_1.results()[1], SketchCircle_2.results()[1]) +SketchConstraintEqual_3 = Sketch_4.setEqual(SketchCircle_3.results()[1], SketchCircle_4.results()[1]) +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchCircle_1.center(), SketchLine_38.result()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_58") +SketchConstraintDistance_4 = Sketch_4.setDistance(SketchCircle_4.center(), SketchCircle_3.center(), 67) +SketchConstraintDistance_5 = Sketch_4.setDistance(SketchCircle_3.center(), SketchCircle_2.center(), 67) +SketchConstraintDistance_6 = Sketch_4.setDistance(SketchCircle_2.center(), SketchCircle_1.center(), 67) +SketchConstraintDistance_7 = Sketch_4.setDistance(SketchLine_39.result(), SketchCircle_1.center(), 53) +SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchLine_38.endPoint(), SketchCircle_4.center()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_59") +model.do() +Sketch_4.setName("Sketch_5") +Sketch_4.result().setName("Sketch_5") +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_5")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_11"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_12")) +SketchLine_40 = Sketch_5.addLine(152.2999838762584, -21.04999053274691, 153.5, -21.04999053274714) +SketchLine_40.setName("SketchLine_58") +SketchLine_40.result().setName("SketchLine_58") +SketchLine_41 = Sketch_5.addLine(152.2999838292651, -45.04999053274704, 153.5, -45.04999053274702) +SketchLine_41.setName("SketchLine_57") +SketchLine_41.result().setName("SketchLine_57") +SketchLine_42 = Sketch_5.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_12]")) +SketchLine_42.setName("SketchLine_46") +SketchLine_42.result().setName("SketchLine_46") +SketchLine_43 = Sketch_5.addLine(150.8, -45.04999053274702, 153.5, -45.04999053274702) +SketchLine_43.setName("SketchLine_45") +SketchLine_43.result().setName("SketchLine_45") +SketchLine_43.setAuxiliary(True) +SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_43.endPoint(), SketchLine_42.result()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_60") +SketchLine_44 = Sketch_5.addLine(153.5, -45.04999053274702, 153.5, -37.04999053274702) +SketchLine_44.setName("SketchLine_47") +SketchLine_44.result().setName("SketchLine_47") +SketchLine_45 = Sketch_5.addLine(150.8, -14.54997391609652, 150.8, -19.54999029833178) +SketchLine_45.setName("SketchLine_61") +SketchLine_45.result().setName("SketchLine_61") +SketchLine_46 = Sketch_5.addLine(153.5, -13.04999053274714, 152.2999838654776, -13.04999053274697) +SketchLine_46.setName("SketchLine_60") +SketchLine_46.result().setName("SketchLine_60") +SketchLine_47 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8, -45.04999053274702) +SketchLine_47.setName("SketchLine_49") +SketchLine_47.result().setName("SketchLine_49") +SketchLine_47.setAuxiliary(True) +SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchLine_47.endPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_61") +SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_62") +SketchLine_48 = Sketch_5.addLine(153.5, -37.04999053274702, 150.8, -37.04999053274702) +SketchLine_48.setAuxiliary(True) +SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_44.endPoint(), SketchLine_48.startPoint()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_63") +SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchLine_48.endPoint(), SketchLine_47.startPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_64") +SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_43.result()) +SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_44.result()) +SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_48.result()) +SketchConstraintVertical_10 = Sketch_5.setVertical(SketchLine_47.result()) +SketchLine_49 = Sketch_5.addLine(153.5, -37.04999053274702, 152.2999989299055, -37.04999053274738) +SketchLine_49.setName("SketchLine_62") +SketchLine_49.result().setName("SketchLine_62") +SketchLine_50 = Sketch_5.addLine(150.8, -38.54997391988981, 150.8, -43.54998998548124) +SketchLine_50.setName("SketchLine_63") +SketchLine_50.result().setName("SketchLine_63") +SketchLine_51 = Sketch_5.addLine(150.8, -21.04999053274714, 153.5, -21.04999053274714) +SketchLine_51.setName("SketchLine_50") +SketchLine_51.result().setName("SketchLine_50") +SketchLine_51.setAuxiliary(True) +SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_42.result()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_65") +SketchLine_52 = Sketch_5.addLine(153.5, -21.04999053274714, 153.5, -13.04999053274714) +SketchLine_52.setName("SketchLine_51") +SketchLine_52.result().setName("SketchLine_51") +SketchLine_53 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -21.04999053274714) +SketchLine_53.setAuxiliary(True) +SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_53.endPoint(), SketchLine_51.startPoint()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_66") +SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_52.startPoint()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_67") +SketchLine_54 = Sketch_5.addLine(153.5, -13.04999053274714, 150.8, -13.04999053274714) +SketchLine_54.setName("SketchLine_52") +SketchLine_54.result().setName("SketchLine_52") +SketchLine_54.setAuxiliary(True) +SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_68") +SketchConstraintCoincidence_64 = Sketch_5.setCoincident(SketchLine_54.endPoint(), SketchLine_53.startPoint()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_69") +SketchConstraintHorizontal_13 = Sketch_5.setHorizontal(SketchLine_51.result()) +SketchConstraintVertical_11 = Sketch_5.setVertical(SketchLine_52.result()) +SketchConstraintHorizontal_14 = Sketch_5.setHorizontal(SketchLine_54.result()) +SketchConstraintVertical_12 = Sketch_5.setVertical(SketchLine_53.result()) +SketchConstraintCoincidence_65 = Sketch_5.setCoincident(SketchLine_47.result(), SketchLine_53.endPoint()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_70") +SketchConstraintLength_8 = Sketch_5.setLength(SketchLine_43.result(), 2.7) +SketchConstraintLength_8.setName("SketchConstraintLength_9") +SketchConstraintLength_9 = Sketch_5.setLength(SketchLine_44.result(), 8) +SketchConstraintLength_9.setName("SketchConstraintLength_10") +SketchConstraintEqual_4 = Sketch_5.setEqual(SketchLine_47.result(), SketchLine_53.result()) +SketchPoint_5 = Sketch_5.addPoint(153.5, -28.85) +SketchPoint_5.setName("SketchPoint_7") +SketchPoint_5.result().setName("SketchPoint_7") +SketchConstraintMiddle_1 = Sketch_5.setMiddlePoint(SketchPoint_5.coordinates(), SketchLine_42.result()) +SketchLine_55 = Sketch_5.addLine(153.5, -28.85, -153.5, -28.85) +SketchLine_55.setName("SketchLine_54") +SketchLine_55.result().setName("SketchLine_54") +SketchLine_55.setAuxiliary(True) +SketchConstraintCoincidence_66 = Sketch_5.setCoincident(SketchPoint_5.coordinates(), SketchLine_55.startPoint()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_71") +SketchLine_56 = Sketch_5.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_10]")) +SketchLine_56.setName("SketchLine_55") +SketchLine_56.result().setName("SketchLine_55") +SketchConstraintCoincidence_67 = Sketch_5.setCoincident(SketchLine_55.endPoint(), SketchLine_56.result()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_72") +SketchConstraintHorizontal_15 = Sketch_5.setHorizontal(SketchLine_55.result()) +SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_48.result(), SketchPoint_5.coordinates(), 8.2) +SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_51.result(), SketchPoint_5.coordinates(), 7.8) +SketchArc_3 = Sketch_5.addArc(152.3, -43.54999053274682, 150.8, -43.54998998548124, 152.2999838292651, -45.04999053274704, False) +SketchLine_57 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8, -43.54998998548124) +SketchLine_57.setName("SketchLine_56") +SketchLine_57.result().setName("SketchLine_56") +SketchLine_57.setAuxiliary(True) +SketchConstraintCoincidence_68 = Sketch_5.setCoincident(SketchArc_3.startPoint(), SketchLine_57.endPoint()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_73") +SketchConstraintCoincidence_69 = Sketch_5.setCoincident(SketchArc_3.endPoint(), SketchLine_41.startPoint()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_74") +SketchConstraintTangent_5 = Sketch_5.setTangent(SketchArc_3.results()[1], SketchLine_57.result()) +SketchConstraintTangent_6 = Sketch_5.setTangent(SketchArc_3.results()[1], SketchLine_41.result()) +SketchConstraintCoincidence_70 = Sketch_5.setCoincident(SketchLine_47.startPoint(), SketchLine_57.startPoint()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_75") +SketchConstraintCoincidence_71 = Sketch_5.setCoincident(SketchLine_43.endPoint(), SketchLine_41.endPoint()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_76") +SketchConstraintCoincidence_72 = Sketch_5.setCoincident(SketchLine_57.endPoint(), SketchLine_47.result()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_77") +SketchConstraintCoincidence_73 = Sketch_5.setCoincident(SketchLine_41.startPoint(), SketchLine_43.result()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_78") +SketchArc_4 = Sketch_5.addArc(152.3, -19.54999053274696, 150.8, -19.54999029833178, 152.2999838762584, -21.04999053274691, False) +SketchLine_58 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -19.54999029833178) +SketchLine_58.setName("SketchLine_59") +SketchLine_58.result().setName("SketchLine_59") +SketchLine_58.setAuxiliary(True) +SketchConstraintCoincidence_74 = Sketch_5.setCoincident(SketchArc_4.startPoint(), SketchLine_58.endPoint()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_79") +SketchConstraintCoincidence_75 = Sketch_5.setCoincident(SketchArc_4.endPoint(), SketchLine_40.startPoint()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_80") +SketchConstraintTangent_7 = Sketch_5.setTangent(SketchArc_4.results()[1], SketchLine_40.result()) +SketchConstraintTangent_8 = Sketch_5.setTangent(SketchArc_4.results()[1], SketchLine_58.result()) +SketchConstraintCoincidence_76 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_40.endPoint()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_81") +SketchConstraintCoincidence_77 = Sketch_5.setCoincident(SketchLine_53.startPoint(), SketchLine_58.startPoint()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_82") +SketchConstraintCoincidence_78 = Sketch_5.setCoincident(SketchLine_40.startPoint(), SketchLine_51.result()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_83") +SketchConstraintCoincidence_79 = Sketch_5.setCoincident(SketchLine_58.endPoint(), SketchLine_53.result()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_84") +SketchArc_5 = Sketch_5.addArc(152.3, -14.54999053274707, 152.2999838654776, -13.04999053274697, 150.8, -14.54997391609652, False) +SketchConstraintCoincidence_80 = Sketch_5.setCoincident(SketchArc_5.startPoint(), SketchLine_46.endPoint()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_85") +SketchConstraintCoincidence_81 = Sketch_5.setCoincident(SketchArc_5.endPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_86") +SketchConstraintTangent_9 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_46.result()) +SketchConstraintTangent_10 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_45.result()) +SketchConstraintCoincidence_82 = Sketch_5.setCoincident(SketchLine_54.startPoint(), SketchLine_46.startPoint()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_87") +SketchConstraintCoincidence_83 = Sketch_5.setCoincident(SketchLine_58.endPoint(), SketchLine_45.endPoint()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_88") +SketchConstraintCoincidence_84 = Sketch_5.setCoincident(SketchLine_46.endPoint(), SketchLine_54.result()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_89") +SketchConstraintCoincidence_85 = Sketch_5.setCoincident(SketchLine_45.startPoint(), SketchLine_58.result()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_90") +SketchArc_6 = Sketch_5.addArc(152.3, -38.54999053274739, 152.2999989299055, -37.04999053274738, 150.8, -38.54997391988981, False) +SketchConstraintCoincidence_86 = Sketch_5.setCoincident(SketchArc_6.startPoint(), SketchLine_49.endPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_91") +SketchConstraintCoincidence_87 = Sketch_5.setCoincident(SketchArc_6.endPoint(), SketchLine_50.startPoint()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_92") +SketchConstraintTangent_11 = Sketch_5.setTangent(SketchArc_6.results()[1], SketchLine_49.result()) +SketchConstraintTangent_12 = Sketch_5.setTangent(SketchArc_6.results()[1], SketchLine_50.result()) +SketchConstraintCoincidence_88 = Sketch_5.setCoincident(SketchLine_48.startPoint(), SketchLine_49.startPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_89 = Sketch_5.setCoincident(SketchLine_57.endPoint(), SketchLine_50.endPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_94") +SketchConstraintCoincidence_90 = Sketch_5.setCoincident(SketchLine_49.endPoint(), SketchLine_48.result()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_95") +SketchConstraintCoincidence_91 = Sketch_5.setCoincident(SketchLine_50.startPoint(), SketchLine_57.result()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_96") +SketchConstraintRadius_4 = Sketch_5.setRadius(SketchArc_3.results()[1], 1.5) +SketchConstraintEqual_5 = Sketch_5.setEqual(SketchArc_6.results()[1], SketchArc_3.results()[1]) +SketchConstraintEqual_6 = Sketch_5.setEqual(SketchArc_3.results()[1], SketchArc_4.results()[1]) +SketchConstraintEqual_7 = Sketch_5.setEqual(SketchArc_4.results()[1], SketchArc_5.results()[1]) +SketchLine_59 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_59.setName("SketchLine_64") +SketchLine_59.result().setName("SketchLine_64") +SketchConstraintMirror_3_objects = [SketchArc_3.results()[1], SketchArc_6.results()[1], SketchLine_49.result(), SketchLine_50.result(), SketchLine_44.result(), SketchLine_41.result(), SketchLine_43.result(), SketchLine_57.result(), SketchLine_48.result(), SketchLine_47.result()] +SketchConstraintMirror_3 = Sketch_5.addMirror(SketchLine_59.result(), SketchConstraintMirror_3_objects) +[SketchArc_7, SketchArc_8, SketchLine_60, SketchLine_61, SketchLine_62, SketchLine_63, SketchLine_64, SketchLine_65, SketchLine_66, SketchLine_67] = SketchConstraintMirror_3.mirrored() +SketchLine_67.setName("SketchLine_72") +SketchLine_67.result().setName("SketchLine_72") +SketchLine_66.setName("SketchLine_71") +SketchLine_66.result().setName("SketchLine_71") +SketchLine_65.setName("SketchLine_70") +SketchLine_65.result().setName("SketchLine_70") +SketchLine_64.setName("SketchLine_69") +SketchLine_64.result().setName("SketchLine_69") +SketchLine_63.setName("SketchLine_68") +SketchLine_63.result().setName("SketchLine_68") +SketchLine_62.setName("SketchLine_67") +SketchLine_62.result().setName("SketchLine_67") +SketchLine_61.setName("SketchLine_66") +SketchLine_61.result().setName("SketchLine_66") +SketchLine_60.setName("SketchLine_65") +SketchLine_60.result().setName("SketchLine_65") +SketchConstraintMirror_4_objects = [SketchArc_4.results()[1], SketchArc_5.results()[1], SketchLine_52.result(), SketchLine_45.result(), SketchLine_46.result(), SketchLine_40.result(), SketchLine_54.result(), SketchLine_58.result(), SketchLine_51.result(), SketchLine_53.result()] +SketchConstraintMirror_4 = Sketch_5.addMirror(SketchLine_59.result(), SketchConstraintMirror_4_objects) +[SketchArc_9, SketchArc_10, SketchLine_68, SketchLine_69, SketchLine_70, SketchLine_71, SketchLine_72, SketchLine_73, SketchLine_74, SketchLine_75] = SketchConstraintMirror_4.mirrored() +SketchLine_75.setName("SketchLine_80") +SketchLine_75.result().setName("SketchLine_80") +SketchLine_74.setName("SketchLine_79") +SketchLine_74.result().setName("SketchLine_79") +SketchLine_73.setName("SketchLine_78") +SketchLine_73.result().setName("SketchLine_78") +SketchLine_72.setName("SketchLine_77") +SketchLine_72.result().setName("SketchLine_77") +SketchLine_71.setName("SketchLine_76") +SketchLine_71.result().setName("SketchLine_76") +SketchLine_70.setName("SketchLine_75") +SketchLine_70.result().setName("SketchLine_75") +SketchLine_69.setName("SketchLine_74") +SketchLine_69.result().setName("SketchLine_74") +SketchLine_68.setName("SketchLine_73") +SketchLine_68.result().setName("SketchLine_73") +model.do() +Sketch_5.setName("Sketch_6") +Sketch_5.result().setName("Sketch_6") +ExtrusionCut_4_objects_1 = [model.selection("WIRE", "Sketch_6/Face-SketchArc_9_2f-SketchLine_74r-SketchArc_10_2f-SketchLine_75r-SketchLine_73r-SketchLine_76r_wire"), model.selection("WIRE", "Sketch_6/Face-SketchLine_58r-SketchLine_51f-SketchLine_60f-SketchArc_5_2f-SketchLine_61f-SketchArc_4_2f_wire"), model.selection("WIRE", "Sketch_6/Face-SketchLine_57f-SketchLine_47f-SketchLine_62f-SketchArc_6_2f-SketchLine_63f-SketchArc_3_2f_wire")] +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_4_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_3_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_4_1/Modified_Face&Sketch_1/SketchLine_12")) +SketchArc_11 = Sketch_6.addArc(44.89, -23.55, 43.89, -23.55, 44.89, -22.55, False) +SketchArc_12 = Sketch_6.addArc(44.89, -13.55, 44.89, -14.55, 43.89, -13.55, False) +SketchArc_13 = Sketch_6.addArc(5.89, -13.55, 6.89, -13.55, 5.89, -14.55, False) +SketchArc_13.setName("SketchArc_14") +SketchArc_13.result().setName("SketchArc_14") +SketchArc_13.results()[1].setName("SketchArc_14_2") +SketchLine_76 = Sketch_6.addLine(6.89, -23.55, 43.89, -23.55) +SketchLine_76.setName("SketchLine_81") +SketchLine_76.result().setName("SketchLine_81") +SketchConstraintCoincidence_92 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_76.endPoint()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_98") +SketchLine_77 = Sketch_6.addLine(6.89, -13.55, 43.89, -13.55) +SketchLine_77.setName("SketchLine_82") +SketchLine_77.result().setName("SketchLine_82") +SketchConstraintCoincidence_93 = Sketch_6.setCoincident(SketchArc_13.startPoint(), SketchLine_77.startPoint()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_99") +SketchLine_78 = Sketch_6.addLine(44.89, -22.55, 44.89, -14.55) +SketchLine_78.setName("SketchLine_83") +SketchLine_78.result().setName("SketchLine_83") +SketchConstraintCoincidence_94 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_78.endPoint()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_100") +SketchLine_79 = Sketch_6.addLine(5.89, -22.55, 5.89, -14.55) +SketchLine_79.setName("SketchLine_84") +SketchLine_79.result().setName("SketchLine_84") +SketchConstraintCoincidence_95 = Sketch_6.setCoincident(SketchArc_13.endPoint(), SketchLine_79.endPoint()) +SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_101") +SketchConstraintHorizontal_16 = Sketch_6.setHorizontal(SketchLine_76.result()) +SketchConstraintHorizontal_17 = Sketch_6.setHorizontal(SketchLine_77.result()) +SketchConstraintVertical_13 = Sketch_6.setVertical(SketchLine_79.result()) +SketchConstraintVertical_14 = Sketch_6.setVertical(SketchLine_78.result()) +SketchConstraintCoincidence_96 = Sketch_6.setCoincident(SketchArc_11.endPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_102") +SketchConstraintCoincidence_97 = Sketch_6.setCoincident(SketchArc_12.endPoint(), SketchLine_77.endPoint()) +SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_104") +SketchConstraintCoincidence_98 = Sketch_6.setCoincident(SketchArc_11.center(), SketchLine_78.result()) +SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_105") +SketchConstraintCoincidence_99 = Sketch_6.setCoincident(SketchArc_11.center(), SketchLine_76.result()) +SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_106") +SketchConstraintRadius_5 = Sketch_6.setRadius(SketchArc_11.results()[1], 1) +SketchConstraintCoincidence_100 = Sketch_6.setCoincident(SketchArc_12.center(), SketchLine_78.result()) +SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_107") +SketchConstraintCoincidence_101 = Sketch_6.setCoincident(SketchArc_12.center(), SketchLine_77.result()) +SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_108") +SketchConstraintCoincidence_102 = Sketch_6.setCoincident(SketchArc_13.center(), SketchLine_77.result()) +SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_109") +SketchConstraintEqual_8 = Sketch_6.setEqual(SketchArc_11.results()[1], SketchArc_12.results()[1]) +SketchConstraintEqual_9 = Sketch_6.setEqual(SketchArc_13.results()[1], SketchArc_11.results()[1]) +SketchConstraintEqual_9.setName("SketchConstraintEqual_10") +SketchConstraintCoincidence_103 = Sketch_6.setCoincident(SketchArc_13.center(), SketchLine_79.result()) +SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_112") +SketchConstraintDistance_10 = Sketch_6.setDistance(SketchLine_76.result(), SketchArc_13.startPoint(), 10) +SketchConstraintDistance_11 = Sketch_6.setDistance(SketchLine_79.startPoint(), SketchLine_78.result(), 39) +SketchLine_80 = Sketch_6.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_80.setName("SketchLine_85") +SketchLine_80.result().setName("SketchLine_85") +SketchConstraintDistance_12 = Sketch_6.setDistance(SketchLine_79.startPoint(), SketchLine_80.result(), 5.89) +SketchLine_81 = Sketch_6.addLine(model.selection("EDGE", "Sketch_6/SketchLine_54")) +SketchLine_81.setName("SketchLine_86") +SketchLine_81.result().setName("SketchLine_86") +SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_76.endPoint(), SketchLine_81.result(), 5.3) +SketchArc_14 = Sketch_6.addArc(5.89, -23.55, 5.89, -22.55, 6.89, -23.55, False) +SketchArc_14.setName("SketchArc_15") +SketchArc_14.result().setName("SketchArc_15") +SketchArc_14.results()[1].setName("SketchArc_15_2") +SketchConstraintCoincidence_104 = Sketch_6.setCoincident(SketchLine_79.startPoint(), SketchArc_14.startPoint()) +SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_110") +SketchConstraintCoincidence_105 = Sketch_6.setCoincident(SketchArc_14.endPoint(), SketchLine_76.startPoint()) +SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_111") +SketchConstraintCoincidence_106 = Sketch_6.setCoincident(SketchArc_14.center(), SketchLine_76.result()) +SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_113") +SketchConstraintCoincidence_107 = Sketch_6.setCoincident(SketchArc_14.center(), SketchLine_79.result()) +SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_114") +SketchConstraintEqual_10 = Sketch_6.setEqual(SketchArc_11.results()[1], SketchArc_14.results()[1]) +SketchConstraintEqual_10.setName("SketchConstraintEqual_11") +SketchPoint_6 = Sketch_6.addPoint(0, -28.85) +SketchPoint_6.setName("SketchPoint_8") +SketchPoint_6.result().setName("SketchPoint_8") +SketchPoint_7 = Sketch_6.addPoint(50.77, -28.85) +SketchPoint_7.setName("SketchPoint_9") +SketchPoint_7.result().setName("SketchPoint_9") +SketchPoint_8 = Sketch_6.addPoint(101.54, -28.85) +SketchPoint_8.setName("SketchPoint_10") +SketchPoint_8.result().setName("SketchPoint_10") +SketchConstraintCoincidence_108 = Sketch_6.setCoincident(SketchLine_80.result(), SketchPoint_6.coordinates()) +SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_115") +SketchConstraintCoincidence_109 = Sketch_6.setCoincident(SketchLine_81.result(), SketchPoint_6.coordinates()) +SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_116") +SketchConstraintCoincidence_110 = Sketch_6.setCoincident(SketchPoint_7.coordinates(), SketchLine_81.result()) +SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_117") +SketchConstraintCoincidence_111 = Sketch_6.setCoincident(SketchPoint_8.coordinates(), SketchLine_81.result()) +SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_118") +SketchConstraintDistance_14 = Sketch_6.setDistance(SketchPoint_7.coordinates(), SketchLine_80.result(), "56.66-5.89") +SketchConstraintDistance_15 = Sketch_6.setDistance(SketchLine_80.result(), SketchPoint_8.coordinates(), "107.43-5.89") +SketchMultiTranslation_1_objects = [SketchArc_13.results()[1], SketchArc_14.results()[1], SketchArc_12.results()[1], SketchArc_11.results()[1], SketchLine_78.result(), SketchLine_76.result(), SketchLine_77.result(), SketchLine_79.result()] +SketchMultiTranslation_1 = Sketch_6.addTranslation(SketchMultiTranslation_1_objects, SketchPoint_6.coordinates(), SketchPoint_7.coordinates(), 2) +[SketchArc_15, SketchArc_16, SketchArc_17, SketchArc_18, SketchLine_82, SketchLine_83, SketchLine_84, SketchLine_85] = SketchMultiTranslation_1.translated() +SketchLine_85.setName("SketchLine_90") +SketchLine_85.result().setName("SketchLine_90") +SketchLine_84.setName("SketchLine_89") +SketchLine_84.result().setName("SketchLine_89") +SketchLine_83.setName("SketchLine_88") +SketchLine_83.result().setName("SketchLine_88") +SketchLine_82.setName("SketchLine_87") +SketchLine_82.result().setName("SketchLine_87") +SketchArc_18.setName("SketchArc_19") +SketchArc_18.result().setName("SketchArc_19") +SketchArc_18.results()[1].setName("SketchArc_19_2") +SketchArc_17.setName("SketchArc_18") +SketchArc_17.result().setName("SketchArc_18") +SketchArc_17.results()[1].setName("SketchArc_18_2") +SketchArc_16.setName("SketchArc_17") +SketchArc_16.result().setName("SketchArc_17") +SketchArc_16.results()[1].setName("SketchArc_17_2") +SketchArc_15.setName("SketchArc_16") +SketchArc_15.result().setName("SketchArc_16") +SketchArc_15.results()[1].setName("SketchArc_16_2") +SketchMultiTranslation_2_objects = [SketchArc_12.results()[1], SketchArc_13.results()[1], SketchArc_11.results()[1], SketchArc_14.results()[1], SketchLine_79.result(), SketchLine_78.result(), SketchLine_77.result(), SketchLine_76.result()] +SketchMultiTranslation_2 = Sketch_6.addTranslation(SketchMultiTranslation_2_objects, SketchPoint_6.coordinates(), SketchPoint_8.coordinates(), 2) +[SketchArc_19, SketchArc_20, SketchArc_21, SketchArc_22, SketchLine_86, SketchLine_87, SketchLine_88, SketchLine_89] = SketchMultiTranslation_2.translated() +SketchLine_89.setName("SketchLine_94") +SketchLine_89.result().setName("SketchLine_94") +SketchLine_88.setName("SketchLine_93") +SketchLine_88.result().setName("SketchLine_93") +SketchLine_87.setName("SketchLine_92") +SketchLine_87.result().setName("SketchLine_92") +SketchLine_86.setName("SketchLine_91") +SketchLine_86.result().setName("SketchLine_91") +SketchArc_22.setName("SketchArc_23") +SketchArc_22.result().setName("SketchArc_23") +SketchArc_22.results()[1].setName("SketchArc_23_2") +SketchArc_21.setName("SketchArc_22") +SketchArc_21.result().setName("SketchArc_22") +SketchArc_21.results()[1].setName("SketchArc_22_2") +SketchArc_20.setName("SketchArc_21") +SketchArc_20.result().setName("SketchArc_21") +SketchArc_20.results()[1].setName("SketchArc_21_2") +SketchArc_19.setName("SketchArc_20") +SketchArc_19.result().setName("SketchArc_20") +SketchArc_19.results()[1].setName("SketchArc_20_2") +SketchConstraintMirror_5_objects = [SketchArc_18.results()[1], SketchArc_17.results()[1], SketchArc_16.results()[1], SketchArc_15.results()[1], SketchArc_22.results()[1], SketchArc_20.results()[1], SketchArc_11.results()[1], SketchArc_12.results()[1], SketchArc_21.results()[1], SketchArc_19.results()[1], SketchArc_14.results()[1], SketchArc_13.results()[1], SketchLine_77.result(), SketchLine_78.result(), SketchLine_79.result(), SketchLine_85.result(), SketchLine_87.result(), SketchLine_82.result(), SketchLine_84.result(), SketchLine_86.result(), SketchLine_83.result(), SketchLine_88.result(), SketchLine_76.result(), SketchLine_89.result()] +SketchConstraintMirror_5 = Sketch_6.addMirror(SketchLine_80.result(), SketchConstraintMirror_5_objects) +[SketchArc_23, SketchArc_24, SketchArc_25, SketchArc_26, SketchArc_27, SketchArc_28, SketchArc_29, SketchArc_30, SketchArc_31, SketchArc_32, SketchArc_33, SketchArc_34, SketchLine_90, SketchLine_91, SketchLine_92, SketchLine_93, SketchLine_94, SketchLine_95, SketchLine_96, SketchLine_97, SketchLine_98, SketchLine_99, SketchLine_100, SketchLine_101] = SketchConstraintMirror_5.mirrored() +SketchLine_101.setName("SketchLine_106") +SketchLine_101.result().setName("SketchLine_106") +SketchLine_100.setName("SketchLine_105") +SketchLine_100.result().setName("SketchLine_105") +SketchLine_99.setName("SketchLine_104") +SketchLine_99.result().setName("SketchLine_104") +SketchLine_98.setName("SketchLine_103") +SketchLine_98.result().setName("SketchLine_103") +SketchLine_97.setName("SketchLine_102") +SketchLine_97.result().setName("SketchLine_102") +SketchLine_96.setName("SketchLine_101") +SketchLine_96.result().setName("SketchLine_101") +SketchLine_95.setName("SketchLine_100") +SketchLine_95.result().setName("SketchLine_100") +SketchLine_94.setName("SketchLine_99") +SketchLine_94.result().setName("SketchLine_99") +SketchLine_93.setName("SketchLine_98") +SketchLine_93.result().setName("SketchLine_98") +SketchLine_92.setName("SketchLine_97") +SketchLine_92.result().setName("SketchLine_97") +SketchLine_91.setName("SketchLine_96") +SketchLine_91.result().setName("SketchLine_96") +SketchLine_90.setName("SketchLine_95") +SketchLine_90.result().setName("SketchLine_95") +SketchArc_34.setName("SketchArc_35") +SketchArc_34.result().setName("SketchArc_35") +SketchArc_34.results()[1].setName("SketchArc_35_2") +SketchArc_33.setName("SketchArc_34") +SketchArc_33.result().setName("SketchArc_34") +SketchArc_33.results()[1].setName("SketchArc_34_2") +SketchArc_32.setName("SketchArc_33") +SketchArc_32.result().setName("SketchArc_33") +SketchArc_32.results()[1].setName("SketchArc_33_2") +SketchArc_31.setName("SketchArc_32") +SketchArc_31.result().setName("SketchArc_32") +SketchArc_31.results()[1].setName("SketchArc_32_2") +SketchArc_30.setName("SketchArc_31") +SketchArc_30.result().setName("SketchArc_31") +SketchArc_30.results()[1].setName("SketchArc_31_2") +SketchArc_29.setName("SketchArc_30") +SketchArc_29.result().setName("SketchArc_30") +SketchArc_29.results()[1].setName("SketchArc_30_2") +SketchArc_28.setName("SketchArc_29") +SketchArc_28.result().setName("SketchArc_29") +SketchArc_28.results()[1].setName("SketchArc_29_2") +SketchArc_27.setName("SketchArc_28") +SketchArc_27.result().setName("SketchArc_28") +SketchArc_27.results()[1].setName("SketchArc_28_2") +SketchArc_26.setName("SketchArc_27") +SketchArc_26.result().setName("SketchArc_27") +SketchArc_26.results()[1].setName("SketchArc_27_2") +SketchArc_25.setName("SketchArc_26") +SketchArc_25.result().setName("SketchArc_26") +SketchArc_25.results()[1].setName("SketchArc_26_2") +SketchArc_24.setName("SketchArc_25") +SketchArc_24.result().setName("SketchArc_25") +SketchArc_24.results()[1].setName("SketchArc_25_2") +SketchArc_23.setName("SketchArc_24") +SketchArc_23.result().setName("SketchArc_24") +SketchArc_23.results()[1].setName("SketchArc_24_2") +SketchPoint_9 = Sketch_6.addPoint(0, -49.85) +SketchPoint_9.setName("SketchPoint_11") +SketchPoint_9.result().setName("SketchPoint_11") +SketchConstraintCoincidence_112 = Sketch_6.setCoincident(SketchPoint_9.coordinates(), SketchLine_80.result()) +SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_119") +SketchConstraintDistance_16 = Sketch_6.setDistance(SketchPoint_9.coordinates(), SketchLine_81.result(), "10+5.3+5.7") +SketchMultiTranslation_3_objects = [SketchArc_13.results()[1], SketchArc_34.results()[1], SketchArc_14.results()[1], SketchArc_33.results()[1], SketchArc_12.results()[1], SketchArc_11.results()[1], SketchArc_30.results()[1], SketchArc_29.results()[1], SketchArc_15.results()[1], SketchArc_16.results()[1], SketchArc_26.results()[1], SketchArc_25.results()[1], SketchArc_17.results()[1], SketchArc_18.results()[1], SketchArc_24.results()[1], SketchArc_23.results()[1], SketchArc_20.results()[1], SketchArc_22.results()[1], SketchArc_28.results()[1], SketchArc_27.results()[1], SketchArc_19.results()[1], SketchArc_21.results()[1], SketchArc_32.results()[1], SketchArc_31.results()[1], SketchLine_82.result(), SketchLine_77.result(), SketchLine_97.result(), SketchLine_94.result(), SketchLine_101.result(), SketchLine_99.result(), SketchLine_83.result(), SketchLine_88.result(), SketchLine_89.result(), SketchLine_86.result(), SketchLine_85.result(), SketchLine_100.result(), SketchLine_79.result(), SketchLine_92.result(), SketchLine_87.result(), SketchLine_91.result(), SketchLine_84.result(), SketchLine_96.result(), SketchLine_95.result(), SketchLine_93.result(), SketchLine_78.result(), SketchLine_98.result(), SketchLine_76.result(), SketchLine_90.result()] +SketchMultiTranslation_3 = Sketch_6.addTranslation(SketchMultiTranslation_3_objects, SketchPoint_6.coordinates(), SketchPoint_9.coordinates(), 2) +[SketchArc_35, SketchArc_34, SketchArc_36, SketchArc_37, SketchArc_33, SketchArc_38, SketchArc_39, SketchArc_40, SketchArc_30, SketchArc_41, SketchArc_29, SketchArc_42, SketchArc_15, SketchArc_43, SketchArc_16, SketchArc_44, SketchArc_26, SketchArc_45, SketchArc_25, SketchArc_46, SketchArc_17, SketchArc_47, SketchArc_18, SketchArc_48, SketchArc_24, SketchArc_49, SketchArc_23, SketchArc_50, SketchArc_20, SketchArc_51, SketchArc_22, SketchArc_52, SketchArc_28, SketchArc_53, SketchArc_27, SketchArc_54, SketchArc_19, SketchArc_55, SketchArc_21, SketchArc_56, SketchArc_32, SketchArc_57, SketchArc_31, SketchArc_58, SketchLine_82, SketchLine_102, SketchLine_103, SketchLine_97, SketchLine_104, SketchLine_94, SketchLine_105, SketchLine_101, SketchLine_106, SketchLine_99, SketchLine_107, SketchLine_83, SketchLine_108, SketchLine_88, SketchLine_109, SketchLine_89, SketchLine_110, SketchLine_86, SketchLine_111, SketchLine_85, SketchLine_112, SketchLine_100, SketchLine_113, SketchLine_114, SketchLine_92, SketchLine_115, SketchLine_87, SketchLine_116, SketchLine_91, SketchLine_117, SketchLine_84, SketchLine_118, SketchLine_96, SketchLine_119, SketchLine_95, SketchLine_120, SketchLine_93, SketchLine_121, SketchLine_122, SketchLine_98, SketchLine_123, SketchLine_124, SketchLine_90, SketchLine_125] = SketchMultiTranslation_3.translated() +SketchLine_125.setName("SketchLine_130") +SketchLine_125.result().setName("SketchLine_130") +SketchLine_124.setName("SketchLine_129") +SketchLine_124.result().setName("SketchLine_129") +SketchLine_123.setName("SketchLine_128") +SketchLine_123.result().setName("SketchLine_128") +SketchLine_122.setName("SketchLine_127") +SketchLine_122.result().setName("SketchLine_127") +SketchLine_121.setName("SketchLine_126") +SketchLine_121.result().setName("SketchLine_126") +SketchLine_120.setName("SketchLine_125") +SketchLine_120.result().setName("SketchLine_125") +SketchLine_119.setName("SketchLine_124") +SketchLine_119.result().setName("SketchLine_124") +SketchLine_118.setName("SketchLine_123") +SketchLine_118.result().setName("SketchLine_123") +SketchLine_117.setName("SketchLine_122") +SketchLine_117.result().setName("SketchLine_122") +SketchLine_116.setName("SketchLine_121") +SketchLine_116.result().setName("SketchLine_121") +SketchLine_115.setName("SketchLine_120") +SketchLine_115.result().setName("SketchLine_120") +SketchLine_114.setName("SketchLine_119") +SketchLine_114.result().setName("SketchLine_119") +SketchLine_113.setName("SketchLine_118") +SketchLine_113.result().setName("SketchLine_118") +SketchLine_112.setName("SketchLine_117") +SketchLine_112.result().setName("SketchLine_117") +SketchLine_111.setName("SketchLine_116") +SketchLine_111.result().setName("SketchLine_116") +SketchLine_110.setName("SketchLine_115") +SketchLine_110.result().setName("SketchLine_115") +SketchLine_109.setName("SketchLine_114") +SketchLine_109.result().setName("SketchLine_114") +SketchLine_108.setName("SketchLine_113") +SketchLine_108.result().setName("SketchLine_113") +SketchLine_107.setName("SketchLine_112") +SketchLine_107.result().setName("SketchLine_112") +SketchLine_106.setName("SketchLine_111") +SketchLine_106.result().setName("SketchLine_111") +SketchLine_105.setName("SketchLine_110") +SketchLine_105.result().setName("SketchLine_110") +SketchLine_104.setName("SketchLine_109") +SketchLine_104.result().setName("SketchLine_109") +SketchLine_103.setName("SketchLine_108") +SketchLine_103.result().setName("SketchLine_108") +SketchLine_102.setName("SketchLine_107") +SketchLine_102.result().setName("SketchLine_107") +SketchArc_58.setName("SketchArc_59") +SketchArc_58.result().setName("SketchArc_59") +SketchArc_58.results()[1].setName("SketchArc_59_2") +SketchArc_57.setName("SketchArc_58") +SketchArc_57.result().setName("SketchArc_58") +SketchArc_57.results()[1].setName("SketchArc_58_2") +SketchArc_56.setName("SketchArc_57") +SketchArc_56.result().setName("SketchArc_57") +SketchArc_56.results()[1].setName("SketchArc_57_2") +SketchArc_55.setName("SketchArc_56") +SketchArc_55.result().setName("SketchArc_56") +SketchArc_55.results()[1].setName("SketchArc_56_2") +SketchArc_54.setName("SketchArc_55") +SketchArc_54.result().setName("SketchArc_55") +SketchArc_54.results()[1].setName("SketchArc_55_2") +SketchArc_53.setName("SketchArc_54") +SketchArc_53.result().setName("SketchArc_54") +SketchArc_53.results()[1].setName("SketchArc_54_2") +SketchArc_52.setName("SketchArc_53") +SketchArc_52.result().setName("SketchArc_53") +SketchArc_52.results()[1].setName("SketchArc_53_2") +SketchArc_51.setName("SketchArc_52") +SketchArc_51.result().setName("SketchArc_52") +SketchArc_51.results()[1].setName("SketchArc_52_2") +SketchArc_50.setName("SketchArc_51") +SketchArc_50.result().setName("SketchArc_51") +SketchArc_50.results()[1].setName("SketchArc_51_2") +SketchArc_49.setName("SketchArc_50") +SketchArc_49.result().setName("SketchArc_50") +SketchArc_49.results()[1].setName("SketchArc_50_2") +SketchArc_48.setName("SketchArc_49") +SketchArc_48.result().setName("SketchArc_49") +SketchArc_48.results()[1].setName("SketchArc_49_2") +SketchArc_47.setName("SketchArc_48") +SketchArc_47.result().setName("SketchArc_48") +SketchArc_47.results()[1].setName("SketchArc_48_2") +SketchArc_46.setName("SketchArc_47") +SketchArc_46.result().setName("SketchArc_47") +SketchArc_46.results()[1].setName("SketchArc_47_2") +SketchArc_45.setName("SketchArc_46") +SketchArc_45.result().setName("SketchArc_46") +SketchArc_45.results()[1].setName("SketchArc_46_2") +SketchArc_44.setName("SketchArc_45") +SketchArc_44.result().setName("SketchArc_45") +SketchArc_44.results()[1].setName("SketchArc_45_2") +SketchArc_43.setName("SketchArc_44") +SketchArc_43.result().setName("SketchArc_44") +SketchArc_43.results()[1].setName("SketchArc_44_2") +SketchArc_42.setName("SketchArc_43") +SketchArc_42.result().setName("SketchArc_43") +SketchArc_42.results()[1].setName("SketchArc_43_2") +SketchArc_41.setName("SketchArc_42") +SketchArc_41.result().setName("SketchArc_42") +SketchArc_41.results()[1].setName("SketchArc_42_2") +SketchArc_40.setName("SketchArc_41") +SketchArc_40.result().setName("SketchArc_41") +SketchArc_40.results()[1].setName("SketchArc_41_2") +SketchArc_39.setName("SketchArc_40") +SketchArc_39.result().setName("SketchArc_40") +SketchArc_39.results()[1].setName("SketchArc_40_2") +SketchArc_38.setName("SketchArc_39") +SketchArc_38.result().setName("SketchArc_39") +SketchArc_38.results()[1].setName("SketchArc_39_2") +SketchArc_37.setName("SketchArc_38") +SketchArc_37.result().setName("SketchArc_38") +SketchArc_37.results()[1].setName("SketchArc_38_2") +SketchArc_36.setName("SketchArc_37") +SketchArc_36.result().setName("SketchArc_37") +SketchArc_36.results()[1].setName("SketchArc_37_2") +SketchArc_35.setName("SketchArc_36") +SketchArc_35.result().setName("SketchArc_36") +SketchArc_35.results()[1].setName("SketchArc_36_2") +model.do() +Sketch_6.setName("Sketch_7") +Sketch_6.result().setName("Sketch_7") +ExtrusionCut_5_objects_1 = [model.selection("WIRE", "Sketch_7/Face-SketchArc_20_2f-SketchLine_93r-SketchArc_21_2f-SketchLine_91r-SketchArc_23_2f-SketchLine_94f-SketchArc_22_2f-SketchLine_92f_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_52_2f-SketchLine_116r-SketchArc_53_2f-SketchLine_115f-SketchArc_57_2f-SketchLine_121f-SketchArc_56_2f-SketchLine_114r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_44_2f-SketchLine_117r-SketchArc_45_2f-SketchLine_113f-SketchArc_49_2f-SketchLine_107f-SketchArc_48_2f-SketchLine_123r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_16_2f-SketchLine_90r-SketchArc_17_2f-SketchLine_88f-SketchArc_19_2f-SketchLine_87f-SketchArc_18_2f-SketchLine_89r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_11_2r-SketchLine_83f-SketchArc_12_2f-SketchLine_82r-SketchArc_14_2f-SketchLine_84r-SketchArc_15_2f-SketchLine_81f_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_36_2f-SketchLine_119r-SketchArc_38_2f-SketchLine_129f-SketchArc_41_2f-SketchLine_127f-SketchArc_40_2f-SketchLine_108r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_37_2f-SketchLine_130f-SketchArc_42_2f-SketchLine_122r-SketchArc_43_2f-SketchLine_118r-SketchArc_39_2f-SketchLine_120f_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_24_2f-SketchLine_103r-SketchArc_26_2f-SketchLine_98f-SketchArc_27_2f-SketchLine_101f-SketchArc_25_2f-SketchLine_100r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_30_2f-SketchLine_105r-SketchArc_34_2f-SketchLine_97f-SketchArc_35_2f-SketchLine_95f-SketchArc_31_2f-SketchLine_96r_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_46_2f-SketchLine_124f-SketchArc_50_2f-SketchLine_125r-SketchArc_51_2f-SketchLine_128r-SketchArc_47_2f-SketchLine_126f_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_54_2f-SketchLine_112f-SketchArc_58_2f-SketchLine_110r-SketchArc_59_2f-SketchLine_111r-SketchArc_55_2f-SketchLine_109f_wire"), model.selection("WIRE", "Sketch_7/Face-SketchArc_28_2f-SketchLine_102f-SketchArc_29_2f-SketchLine_104f-SketchArc_33_2f-SketchLine_99r-SketchArc_32_2f-SketchLine_106r_wire")] +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_5_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_4_1")]) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_5_1/Modified_Face&Sketch_1/SketchLine_12")) +SketchLine_126 = Sketch_7.addLine(-153.5, -37.05, -152.3, -37.05) +SketchLine_126.setName("SketchLine_135") +SketchLine_126.result().setName("SketchLine_135") +SketchLine_127 = Sketch_7.addLine(-150.8, -38.55, -150.8, -43.55) +SketchLine_127.setName("SketchLine_138") +SketchLine_127.result().setName("SketchLine_138") +SketchPoint_10 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_6/SketchLine_67_StartVertex")) +SketchPoint_10.setName("SketchPoint_12") +SketchPoint_10.result().setName("SketchPoint_12") +SketchLine_128 = Sketch_7.addLine(-150.8, -45.05, -153.5, -45.05) +SketchLine_128.setName("SketchLine_131") +SketchLine_128.result().setName("SketchLine_131") +SketchLine_128.setAuxiliary(True) +SketchConstraintCoincidence_113 = Sketch_7.setCoincident(SketchLine_128.endPoint(), SketchPoint_10.result()) +SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_120") +SketchLine_129 = Sketch_7.addLine(-153.5, -45.05, -153.5, -37.05) +SketchLine_129.setName("SketchLine_132") +SketchLine_129.result().setName("SketchLine_132") +SketchLine_130 = Sketch_7.addLine(-152.3, -45.05, -153.5, -45.05) +SketchLine_130.setName("SketchLine_137") +SketchLine_130.result().setName("SketchLine_137") +SketchLine_131 = Sketch_7.addLine(-150.8, -37.05, -150.8, -45.05) +SketchLine_131.setName("SketchLine_134") +SketchLine_131.result().setName("SketchLine_134") +SketchLine_131.setAuxiliary(True) +SketchConstraintCoincidence_114 = Sketch_7.setCoincident(SketchLine_131.endPoint(), SketchLine_128.startPoint()) +SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_121") +SketchConstraintCoincidence_115 = Sketch_7.setCoincident(SketchLine_128.endPoint(), SketchLine_129.startPoint()) +SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_122") +SketchLine_132 = Sketch_7.addLine(-153.5, -37.05, -150.8, -37.05) +SketchLine_132.setName("SketchLine_133") +SketchLine_132.result().setName("SketchLine_133") +SketchLine_132.setAuxiliary(True) +SketchConstraintCoincidence_116 = Sketch_7.setCoincident(SketchLine_129.endPoint(), SketchLine_132.startPoint()) +SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_123") +SketchConstraintCoincidence_117 = Sketch_7.setCoincident(SketchLine_132.endPoint(), SketchLine_131.startPoint()) +SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_124") +SketchConstraintHorizontal_18 = Sketch_7.setHorizontal(SketchLine_128.result()) +SketchConstraintVertical_15 = Sketch_7.setVertical(SketchLine_129.result()) +SketchConstraintHorizontal_19 = Sketch_7.setHorizontal(SketchLine_132.result()) +SketchConstraintVertical_16 = Sketch_7.setVertical(SketchLine_131.result()) +SketchPoint_11 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_6/SketchLine_70_StartVertex")) +SketchPoint_11.setName("SketchPoint_13") +SketchPoint_11.result().setName("SketchPoint_13") +SketchConstraintCoincidence_118 = Sketch_7.setCoincident(SketchLine_132.endPoint(), SketchPoint_11.result()) +SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_125") +SketchArc_59 = Sketch_7.addArc(-152.3, -38.55, -150.8, -38.55, -152.3000099350335, -37.05, False) +SketchArc_59.setName("SketchArc_60") +SketchArc_59.result().setName("SketchArc_60") +SketchArc_59.results()[1].setName("SketchArc_60_2") +SketchLine_133 = Sketch_7.addLine(-150.8, -38.55, -150.8, -45.05) +SketchLine_133.setName("SketchLine_136") +SketchLine_133.result().setName("SketchLine_136") +SketchLine_133.setAuxiliary(True) +SketchConstraintCoincidence_119 = Sketch_7.setCoincident(SketchArc_59.startPoint(), SketchLine_133.startPoint()) +SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_126") +SketchConstraintCoincidence_120 = Sketch_7.setCoincident(SketchArc_59.endPoint(), SketchLine_126.endPoint()) +SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_127") +SketchConstraintTangent_13 = Sketch_7.setTangent(SketchArc_59.results()[1], SketchLine_126.result()) +SketchConstraintTangent_14 = Sketch_7.setTangent(SketchArc_59.results()[1], SketchLine_133.result()) +SketchConstraintCoincidence_121 = Sketch_7.setCoincident(SketchLine_132.startPoint(), SketchLine_126.startPoint()) +SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_128") +SketchConstraintCoincidence_122 = Sketch_7.setCoincident(SketchLine_131.endPoint(), SketchLine_133.endPoint()) +SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_129") +SketchConstraintCoincidence_123 = Sketch_7.setCoincident(SketchLine_126.endPoint(), SketchLine_132.result()) +SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_130") +SketchConstraintCoincidence_124 = Sketch_7.setCoincident(SketchLine_133.startPoint(), SketchLine_131.result()) +SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_131") +SketchArc_60 = Sketch_7.addArc(-152.3, -43.55, -152.3, -45.05, -150.8, -43.55, False) +SketchArc_60.setName("SketchArc_61") +SketchArc_60.result().setName("SketchArc_61") +SketchArc_60.results()[1].setName("SketchArc_61_2") +SketchConstraintCoincidence_125 = Sketch_7.setCoincident(SketchArc_60.startPoint(), SketchLine_130.startPoint()) +SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_132") +SketchConstraintCoincidence_126 = Sketch_7.setCoincident(SketchArc_60.endPoint(), SketchLine_127.endPoint()) +SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_133") +SketchConstraintTangent_15 = Sketch_7.setTangent(SketchArc_60.results()[1], SketchLine_130.result()) +SketchConstraintTangent_16 = Sketch_7.setTangent(SketchArc_60.results()[1], SketchLine_127.result()) +SketchConstraintCoincidence_127 = Sketch_7.setCoincident(SketchLine_128.endPoint(), SketchLine_130.endPoint()) +SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_134") +SketchConstraintCoincidence_128 = Sketch_7.setCoincident(SketchLine_133.startPoint(), SketchLine_127.startPoint()) +SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_135") +SketchConstraintCoincidence_129 = Sketch_7.setCoincident(SketchLine_130.startPoint(), SketchLine_128.result()) +SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_136") +SketchConstraintCoincidence_130 = Sketch_7.setCoincident(SketchLine_127.endPoint(), SketchLine_133.result()) +SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_137") +SketchConstraintRadius_6 = Sketch_7.setRadius(SketchArc_60.results()[1], 1.5) +SketchConstraintRadius_7 = Sketch_7.setRadius(SketchArc_59.results()[1], 1.5) +model.do() +Sketch_7.setName("Sketch_8") +Sketch_7.result().setName("Sketch_8") +ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_8")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_5_1")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_6_1/Modified_Face&Sketch_1/SketchLine_10")) +SketchLine_134 = Sketch_8.addLine(0.85, 50.75, -0.85, 50.75) +SketchLine_134.setName("SketchLine_139") +SketchLine_134.result().setName("SketchLine_139") +SketchLine_135 = Sketch_8.addLine(-0.85, 47.45, 0.85, 47.45) +SketchLine_135.setName("SketchLine_141") +SketchLine_135.result().setName("SketchLine_141") +SketchConstraintHorizontal_20 = Sketch_8.setHorizontal(SketchLine_134.result()) +SketchConstraintHorizontal_21 = Sketch_8.setHorizontal(SketchLine_135.result()) +SketchArc_61 = Sketch_8.addArc(0.85, 49.1, 0.85, 47.45, 0.85, 50.75, False) +SketchArc_61.setName("SketchArc_63") +SketchArc_61.result().setName("SketchArc_63") +SketchArc_61.results()[1].setName("SketchArc_63_2") +SketchConstraintCoincidence_131 = Sketch_8.setCoincident(SketchLine_134.startPoint(), SketchArc_61.endPoint()) +SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_146") +SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_135.endPoint()) +SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_148") +SketchConstraintDistance_17 = Sketch_8.setDistance(SketchLine_134.result(), SketchLine_135.endPoint(), 3.3) +SketchLine_136 = Sketch_8.addLine(0.85, 50.75, 0.85, 47.45) +SketchLine_136.setName("SketchLine_140") +SketchLine_136.result().setName("SketchLine_140") +SketchLine_136.setAuxiliary(True) +SketchConstraintCoincidence_133 = Sketch_8.setCoincident(SketchLine_134.startPoint(), SketchLine_136.startPoint()) +SketchConstraintCoincidence_133.setName("SketchConstraintCoincidence_138") +SketchConstraintCoincidence_134 = Sketch_8.setCoincident(SketchArc_61.endPoint(), SketchLine_136.startPoint()) +SketchConstraintCoincidence_134.setName("SketchConstraintCoincidence_139") +SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchLine_135.endPoint(), SketchLine_136.endPoint()) +SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_140") +SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_136.endPoint()) +SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_141") +SketchLine_137 = Sketch_8.addLine(-0.85, 50.75, -0.85, 47.45) +SketchLine_137.setName("SketchLine_142") +SketchLine_137.result().setName("SketchLine_142") +SketchLine_137.setAuxiliary(True) +SketchConstraintCoincidence_137 = Sketch_8.setCoincident(SketchLine_134.endPoint(), SketchLine_137.startPoint()) +SketchConstraintCoincidence_137.setName("SketchConstraintCoincidence_143") +SketchConstraintCoincidence_138 = Sketch_8.setCoincident(SketchLine_135.startPoint(), SketchLine_137.endPoint()) +SketchConstraintCoincidence_138.setName("SketchConstraintCoincidence_147") +SketchConstraintCoincidence_152 = Sketch_8.setCoincident(SketchArc_61.center(), SketchLine_136.result()) +SketchConstraintLength_10 = Sketch_8.setLength(SketchLine_134.result(), 1.7) +SketchConstraintLength_10.setName("SketchConstraintLength_11") +SketchConstraintVertical_17 = Sketch_8.setVertical(SketchLine_137.result()) +SketchConstraintVertical_18 = Sketch_8.setVertical(SketchLine_136.result()) +SketchLine_138 = Sketch_8.addLine(0.85, 50.75, -0.85, 47.45) +SketchLine_138.setName("SketchLine_143") +SketchLine_138.result().setName("SketchLine_143") +SketchLine_138.setAuxiliary(True) +SketchConstraintCoincidence_139 = Sketch_8.setCoincident(SketchLine_134.startPoint(), SketchLine_138.startPoint()) +SketchConstraintCoincidence_139.setName("SketchConstraintCoincidence_150") +SketchConstraintCoincidence_140 = Sketch_8.setCoincident(SketchArc_61.endPoint(), SketchLine_138.startPoint()) +SketchConstraintCoincidence_140.setName("SketchConstraintCoincidence_151") +SketchConstraintCoincidence_141 = Sketch_8.setCoincident(SketchLine_136.startPoint(), SketchLine_138.startPoint()) +SketchConstraintCoincidence_141.setName("SketchConstraintCoincidence_152") +SketchConstraintCoincidence_142 = Sketch_8.setCoincident(SketchLine_135.startPoint(), SketchLine_138.endPoint()) +SketchConstraintCoincidence_142.setName("SketchConstraintCoincidence_153") +SketchConstraintCoincidence_143 = Sketch_8.setCoincident(SketchLine_137.endPoint(), SketchLine_138.endPoint()) +SketchConstraintCoincidence_143.setName("SketchConstraintCoincidence_155") +SketchPoint_12 = Sketch_8.addPoint(0, 49.1) +SketchPoint_12.setName("SketchPoint_14") +SketchPoint_12.result().setName("SketchPoint_14") +SketchConstraintCoincidence_144 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_138.result()) +SketchConstraintCoincidence_144.setName("SketchConstraintCoincidence_156") +SketchConstraintMiddle_3 = Sketch_8.setMiddlePoint(SketchLine_138.result(), SketchPoint_12.coordinates()) +SketchConstraintMiddle_3.setName("SketchConstraintMiddle_4") +SketchProjection_2 = Sketch_8.addProjection(model.selection("EDGE", "PartSet/OY")) +SketchLine_139 = SketchProjection_2.createdFeature() +SketchLine_139.setName("SketchLine_144") +SketchLine_139.result().setName("SketchLine_144") +SketchConstraintCoincidence_145 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_139.result()) +SketchConstraintCoincidence_145.setName("SketchConstraintCoincidence_157") +SketchArc_62 = Sketch_8.addArc(-0.85, 49.1, -0.85, 50.75, -0.85, 47.45, False) +SketchConstraintCoincidence_146 = Sketch_8.setCoincident(SketchLine_135.startPoint(), SketchArc_62.endPoint()) +SketchConstraintCoincidence_146.setName("SketchConstraintCoincidence_149") +SketchConstraintCoincidence_147 = Sketch_8.setCoincident(SketchLine_137.endPoint(), SketchArc_62.endPoint()) +SketchConstraintCoincidence_147.setName("SketchConstraintCoincidence_154") +SketchConstraintCoincidence_148 = Sketch_8.setCoincident(SketchLine_138.endPoint(), SketchArc_62.endPoint()) +SketchConstraintCoincidence_148.setName("SketchConstraintCoincidence_158") +SketchConstraintCoincidence_149 = Sketch_8.setCoincident(SketchArc_62.startPoint(), SketchLine_134.endPoint()) +SketchConstraintCoincidence_149.setName("SketchConstraintCoincidence_159") +SketchConstraintCoincidence_150 = Sketch_8.setCoincident(SketchArc_62.center(), SketchLine_137.result()) +SketchLine_140 = Sketch_8.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Sketch_1/SketchLine_1][ExtrusionCut_6_1/Modified_Face&Sketch_1/SketchLine_10]")) +SketchLine_140.setName("SketchLine_145") +SketchLine_140.result().setName("SketchLine_145") +SketchConstraintDistance_18 = Sketch_8.setDistance(SketchLine_140.result(), SketchPoint_12.coordinates(), 6) +SketchLine_141 = Sketch_8.addLine(0, 49.1, 107.43, 49.1) +SketchLine_141.setName("SketchLine_146") +SketchLine_141.result().setName("SketchLine_146") +SketchLine_141.setAuxiliary(True) +SketchConstraintCoincidence_151 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_141.startPoint()) + +SketchConstraintHorizontal_22 = Sketch_8.setHorizontal(SketchLine_141.result()) +SketchConstraintLength_11 = Sketch_8.setLength(SketchLine_141.result(), 107.43) +SketchConstraintLength_11.setName("SketchConstraintLength_12") +SketchMultiTranslation_4_objects = [SketchLine_134.result(), SketchLine_135.result(), SketchArc_61.results()[1], SketchArc_62.results()[1]] +SketchMultiTranslation_4 = Sketch_8.addTranslation(SketchMultiTranslation_4_objects, SketchPoint_12.coordinates(), SketchLine_141.endPoint(), 2) +[SketchLine_142, SketchLine_143, SketchArc_63, SketchArc_64] = SketchMultiTranslation_4.translated() +SketchArc_64.setName("SketchArc_65") +SketchArc_64.result().setName("SketchArc_65") +SketchArc_64.results()[1].setName("SketchArc_65_2") +SketchArc_63.setName("SketchArc_64") +SketchArc_63.result().setName("SketchArc_64") +SketchArc_63.results()[1].setName("SketchArc_64_2") +SketchLine_143.setName("SketchLine_148") +SketchLine_143.result().setName("SketchLine_148") +SketchLine_142.setName("SketchLine_147") +SketchLine_142.result().setName("SketchLine_147") +SketchConstraintMirror_6_objects = [SketchArc_63.results()[1], SketchArc_64.results()[1], SketchLine_142.result(), SketchLine_143.result()] +SketchConstraintMirror_6 = Sketch_8.addMirror(SketchLine_139.result(), SketchConstraintMirror_6_objects) +[SketchArc_65, SketchArc_66, SketchLine_144, SketchLine_145] = SketchConstraintMirror_6.mirrored() +SketchLine_145.setName("SketchLine_150") +SketchLine_145.result().setName("SketchLine_150") +SketchLine_144.setName("SketchLine_149") +SketchLine_144.result().setName("SketchLine_149") +SketchArc_66.setName("SketchArc_67") +SketchArc_66.result().setName("SketchArc_67") +SketchArc_66.results()[1].setName("SketchArc_67_2") +SketchArc_65.setName("SketchArc_66") +SketchArc_65.result().setName("SketchArc_66") +SketchArc_65.results()[1].setName("SketchArc_66_2") +model.do() +Sketch_8.setName("Sketch_9") +Sketch_8.result().setName("Sketch_9") +ExtrusionCut_7 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_9/Face-SketchLine_147f-SketchArc_65_2f-SketchLine_148f-SketchArc_64_2f"), model.selection("FACE", "Sketch_9/Face-SketchLine_139r-SketchArc_62_2f-SketchLine_141f-SketchArc_63_2f"), model.selection("FACE", "Sketch_9/Face-SketchArc_66_2f-SketchLine_150r-SketchArc_67_2f-SketchLine_149r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_6_1")]) +model.do() + +# Test reexecution after parameter change +Parameter_H.setValue(0.4) +model.do() +model.testResultsVolumes(ExtrusionCut_7, [5641.450357292746048187837004662]) +Parameter_H.setValue(0.3) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_7, 1) +model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/flange.py b/test.compatibility/flange.py new file mode 100644 index 000000000..53d94d594 --- /dev/null +++ b/test.compatibility/flange.py @@ -0,0 +1,171 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Parameter_dint = model.addParameter(Part_1_doc, "dint", "58") +Parameter_thick = model.addParameter(Part_1_doc, "thick", "16") +Parameter_length = model.addParameter(Part_1_doc, "length", "172") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchArc_1 = Sketch_1.addArc(-1.656176621148808e-020, 61, -36.69142117459658, 34.94736842105263, -1.927105092898643e-024, 106, True) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.result(), SketchArc_1.center()) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_3 = Sketch_1.addLine(-46.47580015448901, 16.00000000000001, -86, 16) +SketchLine_4 = Sketch_1.addLine(-86, 16, -86, -1.232595164407831e-032) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(-86, -1.232595164407831e-032, -46.47580015448901, 7.497132070176856e-024) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint()) +SketchArc_2 = Sketch_1.addArc(5.604803279647422e-025, 61, -23.64558253474002, 44.21052631578948, -7.759334428649666e-022, 90, True) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchArc_1.center(), SketchArc_2.center()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_5.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_4.result()) +SketchArc_3 = Sketch_1.addArc(-46.47580015448901, 28.00000000000001, -36.69142117459658, 34.94736842105264, -46.47580015448901, 16.00000000000001, True) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchArc_3.startPoint()) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchArc_3.endPoint()) +SketchArc_4 = Sketch_1.addArc(-46.475800154489, 28, -23.64558253474002, 44.21052631578947, -46.475800154489, -2.594279994652913e-031, True) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchArc_4.startPoint()) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_5.endPoint()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_3.results()[1], 12) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchArc_3.results()[1]) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_3.result()) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_4.center(), SketchArc_3.center()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_5.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchArc_2.center(), SketchLine_5.result(), 61) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchArc_2.results()[1]) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_5.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_4.result(), "thick") +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_1.result()) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.result()) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.result(), "length/2") +SketchConstraintMirror_1_objects = [SketchArc_2.results()[1], SketchArc_4.results()[1], SketchLine_5.result(), SketchLine_4.result(), SketchLine_3.result(), SketchArc_3.results()[1], SketchArc_1.results()[1]] +SketchConstraintMirror_1 = Sketch_1.addMirror(SketchLine_1.result(), SketchConstraintMirror_1_objects) +[SketchArc_5, SketchArc_6, SketchLine_6, SketchLine_7, SketchLine_8, SketchArc_7, SketchArc_8] = SketchConstraintMirror_1.mirrored() +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], "dint/2") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchArc_1_2f-SketchArc_3_2r-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchArc_4_2f-SketchArc_2_2r-SketchArc_5_2r-SketchArc_6_2f-SketchLine_6r-SketchLine_7r-SketchLine_8r-SketchArc_7_2r-SketchArc_8_2f")], model.selection(), 35, 35) +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchArc_9 = Sketch_2.addArc(0, 106, 0, 78, 0, 134, True) +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchArc_9.results()[1], 28) +SketchLine_9 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintDistance_3 = Sketch_2.setDistance(SketchArc_9.center(), SketchLine_9.result(), "61+dint/2+thick") +SketchLine_10 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintCoincidence_13 = Sketch_2.setCoincident(SketchArc_9.startPoint(), SketchLine_10.result()) +SketchConstraintCoincidence_14 = Sketch_2.setCoincident(SketchArc_9.endPoint(), SketchLine_10.result()) +SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchArc_9.center(), SketchLine_10.result()) +SketchLine_11 = Sketch_2.addLine(0, 78, 0, 134) +SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchArc_9.startPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchArc_9.endPoint(), SketchLine_11.endPoint()) +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchArc_9_2r-SketchLine_11f")], model.selection("EDGE", "PartSet/OZ"), 360, 0) +Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Revolution_1_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ")) +SketchLine_12 = Sketch_3.addLine(0, 106, -4, 106) +SketchLine_13 = Sketch_3.addLine(-4, 106, -4, 67.34428877022477) +SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchConstraintHorizontal_3 = Sketch_3.setHorizontal(SketchLine_12.result()) +SketchConstraintVertical_2 = Sketch_3.setVertical(SketchLine_13.result()) +SketchPoint_1 = Sketch_3.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintDistance_4 = Sketch_3.setDistance(SketchPoint_1.coordinates(), SketchLine_12.result(), "61+90/2") +SketchLine_14 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_14.setName("SketchLine_15") +SketchLine_14.result().setName("SketchLine_15") +SketchConstraintCoincidence_19 = Sketch_3.setCoincident(SketchLine_12.startPoint(), SketchLine_14.result()) +SketchConstraintLength_2 = Sketch_3.setLength(SketchLine_12.result(), "8/2") +SketchArc_10 = Sketch_3.addArc(0, 61, -4, 67.34428877022477, 4, 67.34428877022477, False) +SketchConstraintCoincidence_20 = Sketch_3.setCoincident(SketchLine_14.result(), SketchArc_10.center()) +SketchConstraintRadius_4 = Sketch_3.setRadius(SketchArc_10.results()[1], "15/2") +SketchLine_15 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_15.setName("SketchLine_16") +SketchLine_15.result().setName("SketchLine_16") +SketchConstraintDistance_5 = Sketch_3.setDistance(SketchArc_10.center(), SketchLine_15.result(), 61) +SketchConstraintCoincidence_21 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchArc_10.startPoint()) +SketchConstraintMirror_2 = Sketch_3.addMirror(SketchLine_14.result(), [SketchLine_13.result(), SketchLine_12.result()]) +[SketchLine_16, SketchLine_17] = SketchConstraintMirror_2.mirrored() +SketchLine_17.setName("SketchLine_18") +SketchLine_17.result().setName("SketchLine_18") +SketchLine_16.setName("SketchLine_17") +SketchLine_16.result().setName("SketchLine_17") +SketchConstraintCoincidence_22 = Sketch_3.setCoincident(SketchArc_10.endPoint(), SketchLine_16.result()) +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_3/Face-SketchLine_12r-SketchLine_13f-SketchArc_10_2f-SketchLine_17r-SketchLine_18r_wire")], model.selection(), "172/2", "172/2") +Cut_2 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "Extrusion_2_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5")) +SketchLine_18 = Sketch_4.addLine(-65, 16, -65, -16) +SketchLine_18.setName("SketchLine_19") +SketchLine_18.result().setName("SketchLine_19") +SketchLine_18.setAuxiliary(True) +SketchConstraintVertical_3 = Sketch_4.setVertical(SketchLine_18.result()) +SketchConstraintLength_3 = Sketch_4.setLength(SketchLine_18.result(), 32) +SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintDistance_6 = Sketch_4.setDistance(SketchPoint_2.coordinates(), SketchLine_18.result(), "130/2") +SketchPoint_3 = Sketch_4.addPoint(-65, 0) +SketchPoint_3.setAuxiliary(True) +SketchConstraintMiddle_1 = Sketch_4.setMiddlePoint(SketchPoint_3.coordinates(), SketchLine_18.result()) +SketchLine_19 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_19.setName("SketchLine_20") +SketchLine_19.result().setName("SketchLine_20") +SketchConstraintCoincidence_23 = Sketch_4.setCoincident(SketchPoint_3.coordinates(), SketchLine_19.result()) +SketchArc_11 = Sketch_4.addArc(-65, 16, -59, 16, -71, 16, False) +SketchConstraintCoincidence_24 = Sketch_4.setCoincident(SketchLine_18.startPoint(), SketchArc_11.center()) +SketchArc_12 = Sketch_4.addArc(-65, -16, -59, -16.00003459934639, -71, -16, True) +SketchConstraintCoincidence_25 = Sketch_4.setCoincident(SketchLine_18.endPoint(), SketchArc_12.center()) +SketchConstraintRadius_5 = Sketch_4.setRadius(SketchArc_11.results()[1], 6) +SketchLine_20 = Sketch_4.addLine(-71, 16, -71, -16) +SketchLine_20.setName("SketchLine_21") +SketchLine_20.result().setName("SketchLine_21") +SketchConstraintCoincidence_26 = Sketch_4.setCoincident(SketchArc_11.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchArc_12.endPoint(), SketchLine_20.endPoint()) +SketchLine_21 = Sketch_4.addLine(-59, 16, -59, -16.00003459934639) +SketchLine_21.setName("SketchLine_22") +SketchLine_21.result().setName("SketchLine_22") +SketchConstraintCoincidence_28 = Sketch_4.setCoincident(SketchArc_11.startPoint(), SketchLine_21.startPoint()) +SketchConstraintCoincidence_29 = Sketch_4.setCoincident(SketchArc_12.startPoint(), SketchLine_21.endPoint()) +SketchConstraintVertical_4 = Sketch_4.setVertical(SketchLine_20.result()) +SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_21.result()) +SketchConstraintTangent_5 = Sketch_4.setTangent(SketchLine_20.result(), SketchArc_11.results()[1]) +SketchConstraintTangent_6 = Sketch_4.setTangent(SketchLine_21.result(), SketchArc_11.results()[1]) +SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_12.results()[1], SketchLine_20.result()) +model.do() +Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_4/Face-SketchArc_11_2f-SketchLine_21f-SketchArc_12_2f-SketchLine_22r_wire")], model.selection(), model.selection(), 0, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3"), 0) +LinearCopy_1 = model.addMultiTranslation(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], model.selection("EDGE", "[Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3]"), -130, 2) +Cut_3 = model.addCut(Part_1_doc, [model.selection("SOLID", "Cut_2_1")], [model.selection("COMPOUND", "LinearCopy_1_1")]) +model.do() + +# Test reexecution after parameter change +Parameter_dint.setValue(62) +Parameter_thick.setValue(20) +Parameter_length.setValue(200) +model.do() +model.testResultsVolumes(Cut_3, [409550.515091864974237978458404541]) +Parameter_dint.setValue(58) +Parameter_thick.setValue(16) +Parameter_length.setValue(172) + +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Cut_3, 1) +model.testNbSubShapes(Cut_3, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/gear.py b/test.compatibility/gear.py new file mode 100644 index 000000000..2ac78c44e --- /dev/null +++ b/test.compatibility/gear.py @@ -0,0 +1,212 @@ +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Parameter_R = model.addParameter(partSet, "R", "15.5") +Sketch_1 = model.addSketch(partSet, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(0, 0, 30, 0) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "Origin")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchPoint_1.result()) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "OX")) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.result()) +SketchLine_3 = Sketch_1.addLine(30, 0, 30, 37.5) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.startPoint()) +SketchLine_4 = Sketch_1.addLine(30, 37.5, 17, 37.5) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(17, 37.5, 17, 15.5) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint()) +SketchLine_6 = Sketch_1.addLine(17, 15.5, 0, 15.5) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(model.selection("EDGE", "OY")) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.result()) +SketchLine_8 = Sketch_1.addLine(0, 15.5, 0, 0) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_8.startPoint()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_4.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_1.endPoint(), SketchLine_8.result(), 30) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_3.result(), 37.5) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_8.result(), "R") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchPoint_1.coordinates()) +SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_4.result(), 13) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_1.startPoint()) +model.do() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "R_fillet", "0.5") +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchLine_9 = Sketch_2.addLine(0, 0, 0, 45.59203984275747) +SketchLine_9.setAuxiliary(True) +SketchConstraintCoincidence_11 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_9.startPoint()) +SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_9.result()) +SketchLine_10 = Sketch_2.addLine(-2.5, 37.41657386773942, -0.9611800001338426, 34.11656372860793) +SketchArc_1 = Sketch_2.addArc(0, 34.39248583236681, -0.9611800001338426, 34.11656372860793, 0, 33.39248583236681, False) +SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_13 = Sketch_2.setCoincident(SketchArc_1.center(), SketchLine_9.result()) +SketchConstraintAngle_1 = Sketch_2.setAngleBackward(SketchLine_10.result(), SketchLine_9.result(), 205) +SketchConstraintRadius_1 = Sketch_2.setRadius(SketchArc_1.results()[1], 1) +SketchConstraintDistance_2 = Sketch_2.setDistance(SketchLine_10.startPoint(), SketchLine_9.result(), 2.5) +SketchConstraintCoincidence_14 = Sketch_2.setCoincident(SketchArc_1.endPoint(), SketchLine_9.result()) +SketchArc_2 = Sketch_2.addArc(0, 0, -2.5, 37.41657386773942, 0, 37.5, True) +SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchArc_2.center(), SketchPoint_2.result()) +SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchLine_10.startPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchLine_9.result(), SketchArc_2.endPoint()) +SketchConstraintMirror_1 = Sketch_2.addMirror(SketchLine_9.result(), [SketchLine_10.result(), SketchArc_1.results()[1], SketchArc_2.results()[1]]) +[SketchLine_11, SketchArc_3, SketchArc_4] = SketchConstraintMirror_1.mirrored() +SketchMultiRotation_1_objects = [SketchArc_1.results()[1], SketchLine_10.result(), SketchArc_2.results()[1], SketchArc_3.results()[1], SketchLine_11.result(), SketchArc_4.results()[1]] +SketchMultiRotation_1 = Sketch_2.addRotation(SketchMultiRotation_1_objects, SketchArc_2.center(), 12, 30) +SketchConstraintRadius_2 = Sketch_2.setRadius(SketchArc_2.results()[1], 37.5) +model.do() +Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_70 = Sketch_3.addLine(0, 0, 30, 0) +SketchLine_70.setAuxiliary(True) +SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchLine_70.startPoint(), SketchPoint_3.result()) +SketchLine_71 = Sketch_3.addLine(30, 0, 30, 37.5) +SketchLine_71.setAuxiliary(True) +SketchConstraintCoincidence_19 = Sketch_3.setCoincident(SketchLine_70.endPoint(), SketchLine_71.startPoint()) +SketchLine_72 = Sketch_3.addLine(30, 37.5, 17, 37.5) +SketchLine_72.setAuxiliary(True) +SketchConstraintCoincidence_20 = Sketch_3.setCoincident(SketchLine_71.endPoint(), SketchLine_72.startPoint()) +SketchConstraintHorizontal_3 = Sketch_3.setHorizontal(SketchLine_72.result()) +SketchConstraintHorizontal_4 = Sketch_3.setHorizontal(SketchLine_70.result()) +SketchConstraintVertical_5 = Sketch_3.setVertical(SketchLine_71.result()) +SketchConstraintLength_4 = Sketch_3.setLength(SketchLine_70.result(), 30) +SketchConstraintLength_5 = Sketch_3.setLength(SketchLine_71.result(), 37.5) +SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_72.result(), 13) +SketchLine_73 = Sketch_3.addLine(29, 37.49999999999999, 30, 36.49999999999999) +SketchConstraintCoincidence_21 = Sketch_3.setCoincident(SketchLine_73.startPoint(), SketchLine_72.result()) +SketchConstraintCoincidence_22 = Sketch_3.setCoincident(SketchLine_73.endPoint(), SketchLine_71.result()) +SketchLine_74 = Sketch_3.addLine(17, 37.5, 17, 36.5) +SketchLine_75 = Sketch_3.addLine(17, 36.5, 17.99999999999994, 37.5) +SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_74.endPoint(), SketchLine_75.startPoint()) +SketchConstraintCoincidence_24 = Sketch_3.setCoincident(SketchLine_75.endPoint(), SketchLine_72.result()) +SketchConstraintCoincidence_25 = Sketch_3.setCoincident(SketchLine_72.endPoint(), SketchLine_74.startPoint()) +SketchConstraintVertical_6 = Sketch_3.setVertical(SketchLine_74.result()) +SketchConstraintLength_7 = Sketch_3.setLength(SketchLine_74.result(), 1) +SketchConstraintDistance_3 = Sketch_3.setDistance(SketchLine_75.endPoint(), SketchLine_74.result(), 1) +SketchConstraintDistance_4 = Sketch_3.setDistance(SketchLine_73.startPoint(), SketchLine_71.result(), 1) +SketchConstraintDistance_5 = Sketch_3.setDistance(SketchLine_73.endPoint(), SketchLine_72.result(), 1) +SketchLine_76 = Sketch_3.addLine(17, 37.5, 17.99999999999994, 37.5) +SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_72.endPoint(), SketchLine_76.startPoint()) +SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_74.startPoint(), SketchLine_76.startPoint()) +SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchLine_75.endPoint(), SketchLine_76.endPoint()) +SketchLine_77 = Sketch_3.addLine(29, 37.49999999999999, 30, 37.5) +SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchLine_73.startPoint(), SketchLine_77.startPoint()) +SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchLine_71.endPoint(), SketchLine_77.endPoint()) +SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchLine_72.startPoint(), SketchLine_77.endPoint()) +SketchLine_78 = Sketch_3.addLine(30, 37.5, 30, 36.49999999999999) +SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_71.endPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_72.startPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_34 = Sketch_3.setCoincident(SketchLine_77.endPoint(), SketchLine_78.startPoint()) +SketchConstraintCoincidence_35 = Sketch_3.setCoincident(SketchLine_73.endPoint(), SketchLine_78.endPoint()) +SketchLine_79 = Sketch_3.addLine(0, 0, 0, 15) +SketchLine_79.setAuxiliary(True) +SketchConstraintCoincidence_36 = Sketch_3.setCoincident(SketchLine_79.startPoint(), SketchPoint_3.result()) +SketchConstraintVertical_7 = Sketch_3.setVertical(SketchLine_79.result()) +SketchConstraintLength_8 = Sketch_3.setLength(SketchLine_79.result(), "R-R_fillet") +SketchLine_80 = Sketch_3.addLine(0, 15, 0.5, 15) +SketchLine_80.setAuxiliary(True) +SketchConstraintCoincidence_37 = Sketch_3.setCoincident(SketchLine_79.endPoint(), SketchLine_80.startPoint()) +SketchConstraintHorizontal_5 = Sketch_3.setHorizontal(SketchLine_80.result()) +SketchArc_61 = Sketch_3.addArc(0.5, 15, 0, 15, 0.5, 15.5, True) +SketchConstraintCoincidence_38 = Sketch_3.setCoincident(SketchLine_80.endPoint(), SketchArc_61.center()) +SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_79.endPoint(), SketchArc_61.startPoint()) +SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_80.startPoint(), SketchArc_61.startPoint()) +SketchLine_81 = Sketch_3.addLine(0.5, 15, 0.5, 16) +SketchLine_81.setAuxiliary(True) +SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_80.endPoint(), SketchLine_81.startPoint()) +SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchArc_61.center(), SketchLine_81.startPoint()) +SketchConstraintVertical_8 = Sketch_3.setVertical(SketchLine_81.result()) +SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchArc_61.endPoint(), SketchLine_81.result()) +SketchConstraintRadius_3 = Sketch_3.setRadius(SketchArc_61.results()[1], "R_fillet") +SketchLine_82 = Sketch_3.addLine(0.5, 15.5, 0.5, 16) +SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchArc_61.endPoint(), SketchLine_82.startPoint()) +SketchLine_83 = Sketch_3.addLine(0.5, 16, -0.5, 16) +SketchConstraintCoincidence_45 = Sketch_3.setCoincident(SketchLine_82.endPoint(), SketchLine_83.startPoint()) +SketchLine_84 = Sketch_3.addLine(-0.5, 16, -0.5, 15) +SketchConstraintCoincidence_46 = Sketch_3.setCoincident(SketchLine_83.endPoint(), SketchLine_84.startPoint()) +SketchLine_85 = Sketch_3.addLine(-0.5, 15, 0, 15) +SketchConstraintCoincidence_47 = Sketch_3.setCoincident(SketchLine_84.endPoint(), SketchLine_85.startPoint()) +SketchConstraintCoincidence_48 = Sketch_3.setCoincident(SketchLine_79.endPoint(), SketchLine_85.endPoint()) +SketchConstraintCoincidence_49 = Sketch_3.setCoincident(SketchLine_80.startPoint(), SketchLine_85.endPoint()) +SketchConstraintCoincidence_50 = Sketch_3.setCoincident(SketchArc_61.startPoint(), SketchLine_85.endPoint()) +SketchConstraintCoincidence_51 = Sketch_3.setCoincident(SketchLine_81.endPoint(), SketchLine_83.startPoint()) +SketchConstraintCoincidence_52 = Sketch_3.setCoincident(SketchLine_85.startPoint(), SketchLine_80.result()) +SketchConstraintVertical_9 = Sketch_3.setVertical(SketchLine_84.result()) +SketchConstraintHorizontal_6 = Sketch_3.setHorizontal(SketchLine_83.result()) +SketchConstraintLength_9 = Sketch_3.setLength(SketchLine_84.result(), "2*R_fillet") +SketchConstraintLength_10 = Sketch_3.setLength(SketchLine_83.result(), "2*R_fillet") +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("COMPOUND", "PartSet/Sketch_1")], model.selection("EDGE", "PartSet/Sketch_1/SketchLine_1"), 360, 0) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Revolution_1_1/Generated_Face&PartSet/Sketch_1/SketchLine_8")) +SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchLine_86 = Sketch_4.addLine(0, -13.49999999999519, 3.1, -13.49999999999519) +SketchLine_87 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_86.startPoint(), SketchLine_87.result()) +SketchLine_88 = Sketch_4.addLine(3.1, -13.49999999999519, 3.1, -10.55414610473955) +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_86.endPoint(), SketchLine_88.startPoint()) +SketchLine_89 = Sketch_4.addLine(0, -10.5290802744499, 0, 12.80434395246332) +SketchLine_89.setAuxiliary(True) +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_89.startPoint(), SketchLine_87.result()) +SketchConstraintVertical_9 = Sketch_4.setVertical(SketchLine_89.result()) +SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_86.result()) +SketchConstraintVertical_10 = Sketch_4.setVertical(SketchLine_88.result()) +SketchConstraintLength_9 = Sketch_4.setLength(SketchLine_86.result(), 3.1) +SketchConstraintMirror_2 = Sketch_4.addMirror(SketchLine_87.result(), [SketchLine_86.result(), SketchLine_88.result()]) +[SketchLine_90, SketchLine_91] = SketchConstraintMirror_2.mirrored() +SketchArc_62 = Sketch_4.addArc(0, 0, 3.1, -10.55414610473955, -3.100000000000001, -10.55414610473344, False) +SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchPoint_4.coordinates(), SketchArc_62.center()) +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchLine_87.startPoint(), SketchArc_62.center()) +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchArc_62.startPoint(), SketchLine_88.result()) +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchArc_62.endPoint(), SketchLine_91.result()) +SketchConstraintRadius_4 = Sketch_4.setRadius(SketchArc_62.results()[1], 11) +SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_88.endPoint(), SketchArc_62.startPoint()) +SketchPoint_5 = Sketch_4.addPoint(3.1, -10.55414610473955) +SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_88.endPoint(), SketchPoint_5.coordinates()) +SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchArc_62.startPoint(), SketchPoint_5.coordinates()) +SketchPoint_6 = Sketch_4.addPoint(0, 11.00000000000481) +SketchPoint_6.setAuxiliary(True) +SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchPoint_6.coordinates(), SketchArc_62.results()[1]) +SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchPoint_6.coordinates(), SketchLine_89.result()) +SketchConstraintDistance_6 = Sketch_4.setDistance(SketchPoint_6.coordinates(), SketchLine_86.result(), 24.5) +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection(), model.selection("FACE", "Revolution_1_1/Generated_Face&PartSet/Sketch_1/SketchLine_3"), 0, model.selection(), 0, [model.selection("SOLID", "Revolution_1_1")]) +RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection("EDGE", "PartSet/OX"), 0, 360, [model.selection("SOLID", "ExtrusionCut_1_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 0, 5, [model.selection("SOLID", "RevolutionCut_1_1")]) +model.do() + +# Test reexecution after parameter change +Parameter_R.setValue(16) +model.do() +model.testResultsVolumes(ExtrusionCut_2, [64060.674439985647040884941816330]) +Parameter_R.setValue(15) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(ExtrusionCut_2, 1) +model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/idler_plate.py b/test.compatibility/idler_plate.py new file mode 100644 index 000000000..f2ee26d72 --- /dev/null +++ b/test.compatibility/idler_plate.py @@ -0,0 +1,180 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "ob1", "4.37") +model.addParameter(Part_1_doc, "ob2", "4.38") +model.addParameter(Part_1_doc, "axe", "11.25") +Parameter_trou = model.addParameter(Part_1_doc, "trou", "7.5") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(0, 0, 17.71094752491076, 14.8612495359528) +SketchLine_1.setAuxiliary(True) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintAngle_1 = Sketch_1.setAngleBackward(SketchLine_1.result(), SketchLine_2.result(), 40.00000000000006) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_2.startPoint()) +SketchArc_1 = Sketch_1.addArc(0, 0, 17.71094752491076, 14.8612495359528, 23.12, -6.011798491948799e-033, True) +SketchArc_1.setAuxiliary(True) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_1.center()) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_2.result(), SketchArc_1.endPoint()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_2.startPoint(), SketchArc_1.endPoint(), 23.12) +SketchArc_2 = Sketch_1.addArc(23.12, -6.011798491948799e-033, 18.74, 0, 27.5, 0, False) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchArc_2.center()) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_2.result(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_2.result(), SketchArc_2.endPoint()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], "ob2") +SketchArc_3 = Sketch_1.addArc(0, 0, 18.74, 0, 14.35567286404965, 12.04583980552575, False) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_3.center()) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchArc_3.startPoint()) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_1.result(), SketchArc_3.endPoint()) +SketchArc_4 = Sketch_1.addArc(0, 0, 27.5, 0, 21.0662221857694, 17.67665926638303, False) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_4.center()) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchArc_4.startPoint()) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_1.result()) +SketchArc_5 = Sketch_1.addArc(17.71094752491078, 14.86124953595279, 14.35567286404965, 12.04583980552575, 21.0662221857694, 17.67665926638303, True) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchArc_5.startPoint()) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchArc_5.endPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_5.results()[1], SketchArc_3.results()[1]) +SketchArc_6 = Sketch_1.addArc(-34.92, 0, -34.92, 4.370000000000002, -34.91999999999997, -4.370000000000019, False) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_6.center(), SketchLine_2.result()) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_6.results()[1], "ob1") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchArc_6.center(), SketchArc_2.center(), 58.04) +SketchLine_3 = Sketch_1.addLine(-24.92, 4.37, -34.92, 4.370000000000002) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_6.startPoint(), SketchLine_3.endPoint()) +SketchLine_4 = Sketch_1.addLine(-24.92, -4.37, -34.91999999999997, -4.370000000000019) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_4.endPoint()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_4.result()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_6.results()[1]) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchLine_4.result(), SketchArc_6.results()[1]) +SketchArc_7 = Sketch_1.addArc(-24.92, 1.467818159729891e-016, -24.92, 4.37, -24.92, -4.37, True) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchArc_7.startPoint()) +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchArc_7.endPoint()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_7.results()[1]) +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_7.results()[1], SketchLine_4.result()) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchArc_6.center(), SketchArc_7.center(), 10) +SketchCircle_1 = Sketch_1.addCircle(9.498292007139793e-031, -4.263345141625117e-031, 5.625) +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchCircle_1.center()) +SketchConstraintRadius_3 = Sketch_1.setRadius(SketchCircle_1.results()[1], "axe/2") +SketchCircle_2 = Sketch_1.addCircle(-7.5, 18.75, 3.75) +SketchConstraintRadius_4 = Sketch_1.setRadius(SketchCircle_2.results()[1], "trou/2") +SketchLine_5 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY")) +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_5.result(), SketchCircle_2.center(), 7.5) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_2.result(), SketchCircle_2.center(), 18.75) +SketchArc_8 = Sketch_1.addArc(-34.92, -6.497717112746075e-027, -34.91999999999937, 7.500000000006299, -36.26235395189003, -7.378894623711957, False) +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchArc_6.center(), SketchArc_8.center()) +SketchConstraintRadius_5 = Sketch_1.setRadius(SketchArc_8.results()[1], 7.5) +SketchArc_9 = Sketch_1.addArc(-7.5, 18.75, 0.0511741035599095, 21.7492323447386, -15.3796231578326, 20.73170731707517, False) +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchArc_9.center()) +SketchConstraintRadius_6 = Sketch_1.setRadius(SketchArc_9.results()[1], "16.25/2") +SketchArc_10 = Sketch_1.addArc(-32.35111919008745, 25.0000000000063, -15.3796231578326, 20.73170731707517, -32.35111919008745, 7.500000000006299, True) +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchArc_9.endPoint(), SketchArc_10.startPoint()) +SketchConstraintTangent_6 = Sketch_1.setTangent(SketchArc_9.results()[1], SketchArc_10.results()[1]) +SketchConstraintRadius_7 = Sketch_1.setRadius(SketchArc_10.results()[1], 17.5) +SketchLine_6 = Sketch_1.addLine(-34.91999999999937, 7.500000000006299, -32.35111919008745, 7.500000000006299) +SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchArc_8.startPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchArc_10.endPoint(), SketchLine_6.endPoint()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintTangent_7 = Sketch_1.setTangent(SketchLine_6.result(), SketchArc_10.results()[1]) +SketchArc_11 = Sketch_1.addArc(2.841203857564676e-031, -1.848261526152319e-031, -2.46098224513173, -13.52797347680525, 10.54941392733564, -8.818864200663077, False) +SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_11.center()) +SketchConstraintRadius_8 = Sketch_1.setRadius(SketchArc_11.results()[1], 13.75) +SketchLine_7 = Sketch_1.addLine(-36.26235395189003, -7.378894623711957, -2.460982245131729, -13.52797347680525) +SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchArc_11.startPoint(), SketchLine_7.endPoint()) +SketchConstraintTangent_8 = Sketch_1.setTangent(SketchLine_7.result(), SketchArc_8.results()[1]) +SketchConstraintTangent_9 = Sketch_1.setTangent(SketchLine_7.result(), SketchArc_11.results()[1]) +SketchArc_12 = Sketch_1.addArc(23.12, 7.384930033544359e-028, 18.58435121107267, -7.482672655108066, 31.87, -1.068593854246008e-030, False) +SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchArc_12.center()) +SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchLine_2.result(), SketchArc_12.endPoint()) +SketchArc_13 = Sketch_1.addArc(15.34460207612463, -12.82743883732818, 10.5494139273357, -8.818864200663123, 18.58435121107276, -7.482672655108122, True) +SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchArc_11.endPoint(), SketchArc_13.startPoint()) +SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchArc_12.startPoint(), SketchArc_13.endPoint()) +SketchConstraintTangent_10 = Sketch_1.setTangent(SketchArc_13.results()[1], SketchArc_12.results()[1]) +SketchConstraintRadius_9 = Sketch_1.setRadius(SketchArc_12.results()[1], 8.75) +SketchConstraintTangent_11 = Sketch_1.setTangent(SketchArc_13.results()[1], SketchArc_11.results()[1]) +SketchArc_14 = Sketch_1.addArc(7.217739748128488e-031, -7.397577026331382e-031, 31.87, 1.64056023214913e-033, 24.41383640220182, 20.48564112071002, False) +SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_14.center()) +SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_12.endPoint(), SketchArc_14.startPoint()) +SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchArc_14.endPoint(), SketchLine_1.result()) +SketchArc_15 = Sketch_1.addArc(17.71094752491077, 14.86124953595279, 24.41383640220183, 20.48564112071001, 10.79776038328427, 20.22504889320414, False) +SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchArc_15.center()) +SketchConstraintCoincidence_38 = Sketch_1.setCoincident(SketchArc_14.endPoint(), SketchArc_15.startPoint()) +SketchArc_16 = Sketch_1.addArc(5.859769567836763, 24.05633414838368, 10.79776038328427, 20.22504889320414, 0.05117410355990894, 21.7492323447386, True) +SketchConstraintCoincidence_39 = Sketch_1.setCoincident(SketchArc_15.endPoint(), SketchArc_16.startPoint()) +SketchConstraintCoincidence_40 = Sketch_1.setCoincident(SketchArc_9.startPoint(), SketchArc_16.endPoint()) +SketchConstraintTangent_12 = Sketch_1.setTangent(SketchArc_16.results()[1], SketchArc_15.results()[1]) +SketchConstraintTangent_13 = Sketch_1.setTangent(SketchArc_16.results()[1], SketchArc_9.results()[1]) +SketchConstraintRadius_10 = Sketch_1.setRadius(SketchArc_16.results()[1], 6.25) +SketchConstraintRadius_11 = Sketch_1.setRadius(SketchArc_13.results()[1], 6.25) +SketchConstraintTangent_14 = Sketch_1.setTangent(SketchLine_6.result(), SketchArc_8.results()[1]) +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchArc_8_2f-SketchLine_7f-SketchArc_11_2f-SketchArc_13_2r-SketchArc_12_2f-SketchArc_14_2f-SketchArc_15_2f-SketchArc_16_2r-SketchArc_9_2f-SketchArc_10_2r-SketchLine_6r-SketchCircle_1_2r-SketchArc_3_2f-SketchArc_5_2r-SketchArc_4_2r-SketchArc_2_2r-SketchLine_3r-SketchArc_7_2r-SketchLine_4f-SketchArc_6_2r-SketchCircle_2_2r")], model.selection(), 0, 2) +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchArc_7")) +SketchArc_17 = Sketch_2.addArc(-24.92, -4.314010717669617e-016, -24.92, 7.500000000006299, -24.92, -7.500000000006299, True) +SketchConstraintCoincidence_41 = Sketch_2.setCoincident(SketchPoint_1.result(), SketchArc_17.center()) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchArc_8_2_StartVertex")) +SketchPoint_3 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchArc_6")) +SketchArc_18 = Sketch_2.addArc(-34.92, 0, -34.91999999999937, 7.500000000006299, -34.92003434105975, -7.500000000006299, False) +SketchConstraintCoincidence_42 = Sketch_2.setCoincident(SketchPoint_3.result(), SketchArc_18.center()) +SketchConstraintCoincidence_43 = Sketch_2.setCoincident(SketchPoint_2.result(), SketchArc_18.startPoint()) +SketchLine_8 = Sketch_2.addLine(-34.91999999999937, 7.500000000006299, -24.92, 7.500000000006299) +SketchConstraintCoincidence_44 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_8.startPoint()) +SketchConstraintCoincidence_45 = Sketch_2.setCoincident(SketchArc_17.startPoint(), SketchLine_8.endPoint()) +SketchLine_9 = Sketch_2.addLine(-34.92003434105975, -7.500000000006299, -24.92, -7.500000000006299) +SketchConstraintCoincidence_46 = Sketch_2.setCoincident(SketchArc_18.endPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_47 = Sketch_2.setCoincident(SketchArc_17.endPoint(), SketchLine_9.endPoint()) +SketchConstraintHorizontal_4 = Sketch_2.setHorizontal(SketchLine_8.result()) +SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_9.result()) +SketchConstraintTangent_15 = Sketch_2.setTangent(SketchLine_8.result(), SketchArc_17.results()[1]) +SketchConstraintTangent_16 = Sketch_2.setTangent(SketchArc_17.results()[1], SketchLine_9.result()) +SketchPoint_4 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchCircle_2_2__cc")) +SketchCircle_3 = Sketch_2.addCircle(-7.5, 18.75, 8.125) +SketchConstraintCoincidence_48 = Sketch_2.setCoincident(SketchPoint_4.result(), SketchCircle_3.center()) +SketchArc_19 = Sketch_2.addArc(model.selection("EDGE", "Sketch_1/SketchArc_9_2")) +SketchConstraintEqual_1 = Sketch_2.setEqual(SketchCircle_3.results()[1], SketchArc_19.results()[1]) +SketchPoint_5 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchCircle_1_2__cc")) +SketchCircle_4 = Sketch_2.addCircle(0, 0, 8.75) +SketchConstraintCoincidence_49 = Sketch_2.setCoincident(SketchPoint_5.result(), SketchCircle_4.center()) +SketchConstraintRadius_12 = Sketch_2.setRadius(SketchCircle_4.results()[1], "17.5/2") +model.do() +Face_1 = model.addFace(Part_1_doc, [model.selection("EDGE", "Sketch_2/SketchLine_8"), model.selection("EDGE", "Sketch_2/SketchArc_17_2"), model.selection("EDGE", "Sketch_2/SketchLine_9"), model.selection("EDGE", "Sketch_2/SketchArc_18_2"), model.selection("EDGE", "Sketch_1/SketchArc_6_2"), model.selection("EDGE", "Sketch_1/SketchLine_3"), model.selection("EDGE", "Sketch_1/SketchArc_7_2"), model.selection("EDGE", "Sketch_1/SketchLine_4")]) +Face_2 = model.addFace(Part_1_doc, [model.selection("EDGE", "Sketch_2/SketchCircle_3_2"), model.selection("EDGE", "Sketch_1/SketchCircle_2_2")]) +Face_3 = model.addFace(Part_1_doc, [model.selection("EDGE", "Sketch_2/SketchCircle_4_2"), model.selection("EDGE", "Sketch_1/SketchCircle_1_2")]) +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Face_1_1"), model.selection("FACE", "Face_2_1"), model.selection("FACE", "Face_3_1")], model.selection(), 2, 0) +Boolean_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "Extrusion_2_2"), model.selection("SOLID", "Extrusion_2_3")], []) +model.do() + +# Test reexecution after parameter change +Parameter_trou.setValue(3.5) +model.do() +model.testResultsVolumes(Boolean_1, [4039.112573151546712324488908052]) +Parameter_trou.setValue(7.5) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Boolean_1, 1) +model.testNbSubShapes(Boolean_1, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/piece_02.py b/test.compatibility/piece_02.py new file mode 100644 index 000000000..15a6df746 --- /dev/null +++ b/test.compatibility/piece_02.py @@ -0,0 +1,582 @@ +# -*- coding: utf-8 -*- + +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(0, 4.99999999998656, 0, 40.99999999998656) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_2.result()) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.result()) +SketchLine_3 = Sketch_1.addLine(4.999999999986844, 0, 36.99999999998685, 0) +SketchLine_4 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_4.result()) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.result()) +SketchLine_5 = Sketch_1.addLine(4.999999999999999, 45.99999999998655, 37, 45.99999999998655) +SketchLine_6 = Sketch_1.addLine(42, 40.99999999998655, 42, 4.999999999986548) +SketchArc_1 = Sketch_1.addArc(5, 40.99999999998656, 0, 40.99999999998656, 4.999999999999999, 45.99999999998656, True) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchArc_1.startPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchLine_1.result(), SketchArc_1.results()[1]) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_5.result(), SketchArc_1.endPoint()) +SketchArc_2 = Sketch_1.addArc(37, 40.99999999998655, 37, 45.99999999998655, 42, 40.99999999998655, True) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_2.startPoint()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchLine_5.result(), SketchArc_2.results()[1]) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_6.result(), SketchArc_2.endPoint()) +SketchArc_3 = Sketch_1.addArc(4.999999999986827, 4.999999999986823, 0, 4.99999999998656, 4.999999999986844, 0, False) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_3.startPoint()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchLine_1.result(), SketchArc_3.results()[1]) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_3.result(), SketchArc_3.endPoint()) +SketchArc_4 = Sketch_1.addArc(36.99999999998375, 5.000000000004257, 36.99999999998685, 0, 42, 4.999999999986548, False) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_4.startPoint()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_4.results()[1]) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_6.result(), SketchArc_4.endPoint()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_6.result()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_5.result()) +SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_3.result()) +SketchConstraintEqual_2 = Sketch_1.setEqual(SketchLine_6.result(), SketchLine_1.result()) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint()) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchArc_4.endPoint()) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_3.startPoint()) +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_6.result()) +SketchConstraintTangent_6 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result()) +SketchConstraintTangent_7 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_3.result()) +SketchConstraintEqual_3 = Sketch_1.setEqual(SketchArc_1.results()[1], SketchArc_2.results()[1]) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 5) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 36) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_5.result(), 32) +SketchConstraintTangent_8 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_6.result()) +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchArc_3_2f-SketchLine_3f-SketchArc_4_2f-SketchLine_6r-SketchArc_2_2f-SketchLine_5r-SketchArc_1_2f-SketchLine_1r")], model.selection(), 76, 0) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face")) +SketchLine_7 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/To_Face]")) +SketchLine_7.setName("SketchLine_8") +SketchLine_7.result().setName("SketchLine_8") +SketchLine_8 = Sketch_2.addLine(21, 45.99999999998655, 20.99999999998684, 0) +SketchLine_8.setName("SketchLine_9") +SketchLine_8.result().setName("SketchLine_9") +SketchLine_8.setAuxiliary(True) +SketchLine_9 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5][Extrusion_1_1/To_Face]")) +SketchLine_9.setName("SketchLine_10") +SketchLine_9.result().setName("SketchLine_10") +SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchLine_8.startPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_18") +SketchLine_10 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/To_Face]")) +SketchLine_10.setName("SketchLine_11") +SketchLine_10.result().setName("SketchLine_11") +SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchLine_8.endPoint(), SketchLine_10.result()) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_19") +SketchConstraintMiddle_1 = Sketch_2.setMiddlePoint(SketchLine_8.startPoint(), SketchLine_9.result()) +SketchConstraintMiddle_2 = Sketch_2.setMiddlePoint(SketchLine_8.endPoint(), SketchLine_10.result()) +SketchLine_11 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/To_Face]")) +SketchLine_11.setName("SketchLine_12") +SketchLine_11.result().setName("SketchLine_12") +SketchPoint_1 = Sketch_2.addPoint(20.99999999999342, 22.99999999999327) +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchLine_8.result()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_20") +SketchConstraintMiddle_3 = Sketch_2.setMiddlePoint(SketchPoint_1.coordinates(), SketchLine_8.result()) +SketchCircle_1 = Sketch_2.addCircle(20.99999999999342, 22.99999999999327, 19) +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchCircle_1.center()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_21") +SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_1.results()[1], 19) +SketchCircle_2 = Sketch_2.addCircle(12.99999999999342, 22.99999999998655, 2.5) +SketchCircle_3 = Sketch_2.addCircle(28.99999999999342, 22.99999999998655, 2.5) +SketchCircle_4 = Sketch_2.addCircle(20.99999999999113, 14.99999999998655, 2.5) +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchLine_8.result(), SketchCircle_4.center()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_22") +SketchConstraintEqual_4 = Sketch_2.setEqual(SketchCircle_2.results()[1], SketchCircle_3.results()[1]) +SketchConstraintEqual_5 = Sketch_2.setEqual(SketchCircle_3.results()[1], SketchCircle_4.results()[1]) +SketchLine_12 = Sketch_2.addLine(2.465190328815662e-32, 22.99999999998655, 41.99999999999999, 22.99999999998655) +SketchLine_12.setName("SketchLine_13") +SketchLine_12.result().setName("SketchLine_13") +SketchLine_12.setAuxiliary(True) +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_12.startPoint(), SketchLine_7.result()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_23") +SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_12.endPoint(), SketchLine_11.result()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_24") +SketchConstraintHorizontal_2 = Sketch_2.setHorizontal(SketchLine_12.result()) +SketchConstraintDistance_1 = Sketch_2.setDistance(SketchCircle_2.center(), SketchCircle_3.center(), 16) +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchCircle_2.center(), SketchLine_12.result()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_25") +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchLine_12.result()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_26") +SketchConstraintDistance_2 = Sketch_2.setDistance(SketchCircle_2.center(), SketchLine_8.result(), 8) +SketchConstraintMiddle_4 = Sketch_2.setMiddlePoint(SketchLine_12.endPoint(), SketchLine_11.result()) +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_2.results()[1], 2.5) +SketchConstraintDistance_3 = Sketch_2.setDistance(SketchLine_12.result(), SketchCircle_4.center(), 8) +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f-SketchCircle_2_2r-SketchCircle_3_2r-SketchCircle_4_2r_wire"), model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f-SketchCircle_2_2r-SketchCircle_3_2r-SketchCircle_4_2r_wire_2"), model.selection("WIRE", "Sketch_2/Face-SketchCircle_3_2f_wire")], model.selection(), 0, 15, [model.selection("SOLID", "Extrusion_1_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_4_2f")], model.selection(), model.selection("FACE", "Extrusion_1_1/From_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchCircle_5 = Sketch_3.addCircle(20.99999999999342, 22.99999999999327, 19) +SketchConstraintRadius_4 = Sketch_3.setRadius(SketchCircle_5.results()[1], 19) +SketchLine_13 = Sketch_3.addLine(41.99999999999999, 22.99999999998655, 0, 22.99999999998656) +SketchLine_13.setName("SketchLine_14") +SketchLine_13.result().setName("SketchLine_14") +SketchLine_13.setAuxiliary(True) +SketchLine_14 = Sketch_3.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]")) +SketchLine_14.setName("SketchLine_15") +SketchLine_14.result().setName("SketchLine_15") +SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_13.startPoint(), SketchLine_14.result()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_27") +SketchLine_15 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face]")) +SketchLine_15.setName("SketchLine_16") +SketchLine_15.result().setName("SketchLine_16") +SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchLine_15.result()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_28") +SketchLine_16 = Sketch_3.addLine(21, 45.99999999998655, 20.99999999998684, 0) +SketchLine_16.setName("SketchLine_17") +SketchLine_16.result().setName("SketchLine_17") +SketchLine_16.setAuxiliary(True) +SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5]")) +SketchLine_17.setName("SketchLine_18") +SketchLine_17.result().setName("SketchLine_18") +SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchLine_16.startPoint(), SketchLine_17.result()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_29") +SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_3")) +SketchLine_18.setName("SketchLine_19") +SketchLine_18.result().setName("SketchLine_19") +SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchLine_18.result()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_30") +SketchConstraintMiddle_5 = Sketch_3.setMiddlePoint(SketchLine_16.startPoint(), SketchLine_17.result()) +SketchConstraintMiddle_6 = Sketch_3.setMiddlePoint(SketchLine_16.endPoint(), SketchLine_18.result()) +SketchConstraintMiddle_7 = Sketch_3.setMiddlePoint(SketchLine_13.endPoint(), SketchLine_15.result()) +SketchConstraintMiddle_8 = Sketch_3.setMiddlePoint(SketchLine_13.startPoint(), SketchLine_14.result()) +SketchPoint_2 = Sketch_3.addPoint(20.99999999999342, 22.99999999999327) +SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchPoint_2.coordinates(), SketchLine_16.result()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_31") +SketchConstraintMiddle_9 = Sketch_3.setMiddlePoint(SketchLine_16.result(), SketchPoint_2.coordinates()) +SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchCircle_5.center(), SketchPoint_2.coordinates()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_32") +SketchCircle_6 = Sketch_3.addCircle(28.99999999999342, 22.99999999998655, 2.5) +SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_6.center()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_33") +SketchCircle_7 = Sketch_3.addCircle(12.99999999999342, 22.99999999998656, 2.5) +SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_7.center()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_34") +SketchConstraintEqual_6 = Sketch_3.setEqual(SketchCircle_7.results()[1], SketchCircle_6.results()[1]) +SketchConstraintRadius_5 = Sketch_3.setRadius(SketchCircle_7.results()[1], 2.5) +SketchConstraintDistance_4 = Sketch_3.setDistance(SketchCircle_6.center(), SketchCircle_7.center(), 16) +SketchConstraintDistance_5 = Sketch_3.setDistance(SketchCircle_6.center(), SketchLine_16.result(), 8) +model.do() +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_5_2r-SketchCircle_7_2r-SketchCircle_6_2r")], model.selection(), 15, 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +ExtrusionCut_3.result().setName("ExtrusionCut_3_1") +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5")) +SketchProjection_1 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2]"), False) +SketchLine_19 = SketchProjection_1.createdFeature() +SketchLine_19.setName("SketchLine_20") +SketchLine_19.result().setName("SketchLine_20") +SketchProjection_2 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2]"), False) +SketchLine_20 = SketchProjection_2.createdFeature() +SketchLine_20.setName("SketchLine_21") +SketchLine_20.result().setName("SketchLine_21") +SketchLine_21 = Sketch_4.addLine(4.999999999999999, -28, 37, -28) +SketchLine_21.setName("SketchLine_22") +SketchLine_21.result().setName("SketchLine_22") +SketchLine_22 = Sketch_4.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5]")) +SketchLine_22.setName("SketchLine_23") +SketchLine_22.result().setName("SketchLine_23") +SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_21.startPoint(), SketchLine_22.result()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_35") +SketchLine_23 = Sketch_4.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2]")) +SketchLine_23.setName("SketchLine_24") +SketchLine_23.result().setName("SketchLine_24") +SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_23.result()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_36") +SketchLine_24 = Sketch_4.addLine(4.999999999999999, -48, 37, -48) +SketchLine_24.setName("SketchLine_25") +SketchLine_24.result().setName("SketchLine_25") +SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_22.result()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_37") +SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchLine_23.result()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_38") +SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_21.result()) +SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_24.result()) +SketchLine_25 = Sketch_4.addLine(3.593262427359596e-30, -33, 0, -43) +SketchLine_25.setName("SketchLine_26") +SketchLine_25.result().setName("SketchLine_26") +SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_19.result()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_39") +SketchLine_26 = Sketch_4.addLine(42, -33, 42, -43) +SketchLine_26.setName("SketchLine_27") +SketchLine_26.result().setName("SketchLine_27") +SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchLine_20.result()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_41") +SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_20.result()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_42") +SketchArc_5 = Sketch_4.addArc(5, -33, 3.593262427359596e-30, -33, 4.999999999999999, -28, True) +SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchArc_5.startPoint()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43") +SketchConstraintTangent_9 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_5.results()[1]) +SketchArc_6 = Sketch_4.addArc(5, -43, 0, -43, 4.999999999999999, -48, False) +SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.startPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_44") +SketchConstraintTangent_10 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_6.results()[1]) +SketchArc_7 = Sketch_4.addArc(37, -33, 37, -28, 42, -33, True) +SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchArc_7.startPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_45") +SketchConstraintTangent_11 = Sketch_4.setTangent(SketchLine_21.result(), SketchArc_7.results()[1]) +SketchArc_8 = Sketch_4.addArc(37, -43, 37, -48, 42, -43, False) +SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchArc_8.startPoint()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_46") +SketchConstraintTangent_12 = Sketch_4.setTangent(SketchLine_24.result(), SketchArc_8.results()[1]) +SketchConstraintDistance_6 = Sketch_4.setDistance(SketchLine_21.startPoint(), SketchLine_24.startPoint(), 20) +SketchConstraintEqual_7 = Sketch_4.setEqual(SketchLine_26.result(), SketchLine_25.result()) +SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_21.startPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_47") +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchArc_7.endPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchArc_8.endPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_49") +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchArc_6.endPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_50") +SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchLine_21.result()) +SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_26.result()) +SketchConstraintTangent_15 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_26.result()) +SketchLine_27 = Sketch_4.addLine(0, -38, 42, -38) +SketchLine_27.setName("SketchLine_28") +SketchLine_27.result().setName("SketchLine_28") +SketchLine_27.setAuxiliary(True) +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_20.result()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_52") +SketchConstraintMiddle_10 = Sketch_4.setMiddlePoint(SketchLine_27.endPoint(), SketchLine_20.result()) +SketchConstraintMiddle_11 = Sketch_4.setMiddlePoint(SketchLine_27.startPoint(), SketchLine_19.result()) +SketchConstraintMiddle_12 = Sketch_4.setMiddlePoint(SketchLine_25.result(), SketchLine_27.startPoint()) +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchArc_5_2f-SketchLine_26f-SketchArc_6_2f-SketchLine_25f-SketchArc_8_2f-SketchLine_27r-SketchArc_7_2f-SketchLine_22r")], model.selection(), 2, 17) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_2_1/To_Face")) +SketchLine_28 = Sketch_5.addLine(5.000000000000001, -46, 37.00000000000001, -46) +SketchLine_28.setName("SketchLine_29") +SketchLine_28.result().setName("SketchLine_29") +SketchLine_29 = Sketch_5.addLine(5, -30, 37.00000000000001, -30) +SketchLine_29.setName("SketchLine_30") +SketchLine_29.result().setName("SketchLine_30") +SketchLine_30 = Sketch_5.addLine(2, -43, 2, -33) +SketchLine_30.setName("SketchLine_31") +SketchLine_30.result().setName("SketchLine_31") +SketchLine_31 = Sketch_5.addLine(40.00000000000001, -33, 40.00000000000001, -43) +SketchLine_31.setName("SketchLine_32") +SketchLine_31.result().setName("SketchLine_32") +SketchConstraintHorizontal_5 = Sketch_5.setHorizontal(SketchLine_29.result()) +SketchConstraintHorizontal_6 = Sketch_5.setHorizontal(SketchLine_28.result()) +SketchConstraintVertical_2 = Sketch_5.setVertical(SketchLine_30.result()) +SketchConstraintVertical_3 = Sketch_5.setVertical(SketchLine_31.result()) +SketchConstraintEqual_8 = Sketch_5.setEqual(SketchLine_29.result(), SketchLine_28.result()) +SketchConstraintEqual_9 = Sketch_5.setEqual(SketchLine_31.result(), SketchLine_30.result()) +SketchLine_32 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_26][Extrusion_2_1/To_Face]")) +SketchLine_32.setName("SketchLine_33") +SketchLine_32.result().setName("SketchLine_33") +SketchConstraintDistance_7 = Sketch_5.setDistance(SketchLine_30.endPoint(), SketchLine_32.result(), 2) +SketchLine_33 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_27][Extrusion_2_1/To_Face]")) +SketchLine_33.setName("SketchLine_34") +SketchLine_33.result().setName("SketchLine_34") +SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_31.startPoint(), SketchLine_33.result(), 2) +SketchLine_34 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_22][Extrusion_2_1/To_Face]")) +SketchLine_34.setName("SketchLine_35") +SketchLine_34.result().setName("SketchLine_35") +SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_29.startPoint(), SketchLine_34.result(), 2) +SketchLine_35 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_25][Extrusion_2_1/To_Face]")) +SketchLine_35.setName("SketchLine_36") +SketchLine_35.result().setName("SketchLine_36") +SketchConstraintDistance_10 = Sketch_5.setDistance(SketchLine_28.startPoint(), SketchLine_35.result(), 2) +SketchArc_9 = Sketch_5.addArc(5, -33, 2, -33, 5, -30, True) +SketchConstraintCoincidence_52 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchArc_9.startPoint()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_53") +SketchConstraintTangent_16 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_9.results()[1]) +SketchArc_10 = Sketch_5.addArc(5, -43, 2, -43, 5.000000000000001, -46, False) +SketchConstraintCoincidence_53 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchArc_10.startPoint()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_54") +SketchConstraintTangent_17 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_10.results()[1]) +SketchArc_11 = Sketch_5.addArc(37.00000000000001, -33, 37.00000000000001, -30, 40.00000000000001, -33, True) +SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchLine_29.endPoint(), SketchArc_11.startPoint()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_55") +SketchConstraintTangent_18 = Sketch_5.setTangent(SketchLine_29.result(), SketchArc_11.results()[1]) +SketchArc_12 = Sketch_5.addArc(37.00000000000001, -43, 37.00000000000001, -46, 40.00000000000001, -43, False) +SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_28.endPoint(), SketchArc_12.startPoint()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_56") +SketchConstraintTangent_19 = Sketch_5.setTangent(SketchLine_28.result(), SketchArc_12.results()[1]) +SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchArc_9.endPoint(), SketchLine_29.startPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_57") +SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchArc_11.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_58") +SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchArc_12.endPoint()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_59") +SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchArc_10.endPoint(), SketchLine_28.startPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_60") +SketchConstraintEqual_10 = Sketch_5.setEqual(SketchArc_11.results()[1], SketchArc_9.results()[1]) +SketchConstraintEqual_11 = Sketch_5.setEqual(SketchArc_10.results()[1], SketchArc_12.results()[1]) +SketchConstraintEqual_12 = Sketch_5.setEqual(SketchArc_12.results()[1], SketchArc_11.results()[1]) +SketchConstraintTangent_20 = Sketch_5.setTangent(SketchArc_9.results()[1], SketchLine_29.result()) +SketchConstraintTangent_21 = Sketch_5.setTangent(SketchArc_12.results()[1], SketchLine_31.result()) +SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_9.results()[1], 3) +SketchLine_36 = Sketch_5.addLine(2, -38, 39.99999999999998, -38) +SketchLine_36.setName("SketchLine_37") +SketchLine_36.result().setName("SketchLine_37") +SketchLine_36.setAuxiliary(True) +SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_36.startPoint(), SketchLine_30.result()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_61") +SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_36.endPoint(), SketchLine_31.result()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_62") +SketchConstraintMiddle_13 = Sketch_5.setMiddlePoint(SketchLine_31.result(), SketchLine_36.endPoint()) +SketchConstraintMiddle_14 = Sketch_5.setMiddlePoint(SketchLine_36.startPoint(), SketchLine_30.result()) +SketchCircle_8 = Sketch_5.addCircle(13.00000000000001, -38, 2.5) +SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_8.center()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_63") +SketchCircle_9 = Sketch_5.addCircle(29, -38, 2.5) +SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_9.center()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_64") +SketchConstraintEqual_13 = Sketch_5.setEqual(SketchCircle_9.results()[1], SketchCircle_8.results()[1]) +SketchConstraintRadius_7 = Sketch_5.setRadius(SketchCircle_9.results()[1], 2.5) +SketchConstraintDistance_11 = Sketch_5.setDistance(SketchCircle_8.center(), SketchCircle_9.center(), 16) +SketchLine_37 = Sketch_5.addLine(21, -28, 21, -48) +SketchLine_37.setName("SketchLine_38") +SketchLine_37.result().setName("SketchLine_38") +SketchLine_37.setAuxiliary(True) +SketchConstraintCoincidence_64 = Sketch_5.setCoincident(SketchLine_37.startPoint(), SketchLine_34.result()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_65") +SketchConstraintCoincidence_65 = Sketch_5.setCoincident(SketchLine_37.endPoint(), SketchLine_35.result()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_66") +SketchConstraintMiddle_15 = Sketch_5.setMiddlePoint(SketchLine_37.startPoint(), SketchLine_34.result()) +SketchConstraintMiddle_16 = Sketch_5.setMiddlePoint(SketchLine_37.endPoint(), SketchLine_35.result()) +SketchConstraintDistance_12 = Sketch_5.setDistance(SketchCircle_8.center(), SketchLine_37.result(), 8) +model.do() +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_29r-SketchArc_12_2f-SketchLine_32r-SketchArc_11_2f-SketchLine_30r-SketchArc_9_2f-SketchLine_31r-SketchArc_10_2f-SketchCircle_9_2r-SketchCircle_8_2r_wire")], model.selection(), 0, 15, [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "ExtrusionCut_3_1")]) +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchCircle_8_2f"), model.selection("FACE", "Sketch_5/Face-SketchCircle_9_2f")], model.selection(), 0, 20, [model.selection("SOLID", "ExtrusionCut_4_1"), model.selection("SOLID", "ExtrusionCut_4_2")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ")) +SketchLine_38 = Sketch_6.addLine(-59, 44, -59, 2) +SketchLine_38.setName("SketchLine_39") +SketchLine_38.result().setName("SketchLine_39") +SketchLine_39 = Sketch_6.addLine(-59, 2, -17, 2) +SketchLine_39.setName("SketchLine_40") +SketchLine_39.result().setName("SketchLine_40") +SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_38.endPoint(), SketchLine_39.startPoint()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_67") +SketchLine_40 = Sketch_6.addLine(-17, 2, -16.99997429885428, 44) +SketchLine_40.setName("SketchLine_41") +SketchLine_40.result().setName("SketchLine_41") +SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_68") +SketchLine_41 = Sketch_6.addLine(-16.99997429885428, 44, -27.99998714942714, 44) +SketchLine_41.setName("SketchLine_42") +SketchLine_41.result().setName("SketchLine_42") +SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_69") +SketchLine_42 = Sketch_6.addLine(-27.99998714942714, 44, -27.99998714942714, 29) +SketchLine_42.setName("SketchLine_43") +SketchLine_42.result().setName("SketchLine_43") +SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_70") +SketchLine_43 = Sketch_6.addLine(-27.99998714942714, 29, -47.99998714942714, 29) +SketchLine_43.setName("SketchLine_44") +SketchLine_43.result().setName("SketchLine_44") +SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_71") +SketchLine_44 = Sketch_6.addLine(-47.99998714942714, 29, -47.99998714942714, 44) +SketchLine_44.setName("SketchLine_45") +SketchLine_44.result().setName("SketchLine_45") +SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_72") +SketchLine_45 = Sketch_6.addLine(-47.99998714942714, 44, -59, 44) +SketchLine_45.setName("SketchLine_46") +SketchLine_45.result().setName("SketchLine_46") +SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_73") +SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_45.endPoint()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_74") +SketchConstraintEqual_14 = Sketch_6.setEqual(SketchLine_38.result(), SketchLine_40.result()) +SketchConstraintEqual_15 = Sketch_6.setEqual(SketchLine_41.result(), SketchLine_45.result()) +SketchConstraintEqual_16 = Sketch_6.setEqual(SketchLine_42.result(), SketchLine_44.result()) +SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_45.result()) +SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_43.result()) +SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_39.result()) +SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_41.result()) +SketchConstraintVertical_4 = Sketch_6.setVertical(SketchLine_38.result()) +SketchConstraintVertical_5 = Sketch_6.setVertical(SketchLine_44.result()) +SketchConstraintVertical_6 = Sketch_6.setVertical(SketchLine_42.result()) +SketchConstraintLength_3 = Sketch_6.setLength(SketchLine_38.result(), 42) +SketchConstraintLength_4 = Sketch_6.setLength(SketchLine_43.result(), 20) +SketchConstraintLength_5 = Sketch_6.setLength(SketchLine_44.result(), 15) +SketchConstraintLength_6 = Sketch_6.setLength(SketchLine_39.result(), 42) +SketchProjection_3 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2]"), False) +SketchLine_46 = SketchProjection_3.createdFeature() +SketchLine_46.setName("SketchLine_47") +SketchLine_46.result().setName("SketchLine_47") +SketchProjection_4 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_2/SketchCircle_1_2)_ExtrusionCut_5_2]"), False) +SketchLine_47 = SketchProjection_4.createdFeature() +SketchLine_47.setName("SketchLine_48") +SketchLine_47.result().setName("SketchLine_48") +SketchProjection_5 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2]"), False) +SketchLine_48 = SketchProjection_5.createdFeature() +SketchLine_48.setName("SketchLine_49") +SketchLine_48.result().setName("SketchLine_49") +SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_38.endPoint(), SketchLine_46.result(), 2) +SketchConstraintDistance_14 = Sketch_6.setDistance(SketchLine_38.startPoint(), SketchLine_47.result(), 17) +model.do() +ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6"), -2, model.selection(), -2, [model.selection("SOLID", "ExtrusionCut_5_2")]) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1")) +SketchLine_49 = Sketch_7.addLine(0, -22.99999999998656, -76, -22.99999999998655) +SketchLine_49.setName("SketchLine_50") +SketchLine_49.result().setName("SketchLine_50") +SketchLine_49.setAuxiliary(True) +SketchLine_50 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1]")) +SketchLine_50.setName("SketchLine_51") +SketchLine_50.result().setName("SketchLine_51") +SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_49.startPoint(), SketchLine_50.result()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_75") +SketchPoint_3 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_2/SketchLine_13_StartVertex")) +SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_49.endPoint(), SketchPoint_3.result()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_76") +SketchConstraintMiddle_17 = Sketch_7.setMiddlePoint(SketchLine_49.startPoint(), SketchLine_50.result()) +SketchLine_51 = Sketch_7.addLine(-38, -40.99999999998656, -38, -4.99999999998656) +SketchLine_51.setName("SketchLine_52") +SketchLine_51.result().setName("SketchLine_52") +SketchLine_51.setAuxiliary(True) +SketchLine_52 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2]")) +SketchLine_52.setName("SketchLine_53") +SketchLine_52.result().setName("SketchLine_53") +SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_51.startPoint(), SketchLine_52.result()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_77") +SketchLine_53 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1]")) +SketchLine_53.setName("SketchLine_54") +SketchLine_53.result().setName("SketchLine_54") +SketchConstraintCoincidence_77 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchLine_53.result()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_78") +SketchConstraintMiddle_18 = Sketch_7.setMiddlePoint(SketchLine_51.startPoint(), SketchLine_52.result()) +SketchConstraintMiddle_19 = Sketch_7.setMiddlePoint(SketchLine_51.endPoint(), SketchLine_53.result()) +SketchPoint_4 = Sketch_7.addPoint(-37.99999999999999, -22.99999999998656) +SketchConstraintCoincidence_78 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchLine_51.result()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_79") +SketchConstraintMiddle_20 = Sketch_7.setMiddlePoint(SketchPoint_4.coordinates(), SketchLine_51.result()) +SketchCircle_10 = Sketch_7.addCircle(-37.99999999999999, -22.99999999998656, 17) +SketchConstraintCoincidence_79 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchCircle_10.center()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_80") +SketchConstraintRadius_8 = Sketch_7.setRadius(SketchCircle_10.results()[1], 17) +model.do() +Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_7/Face-SketchCircle_10_2f_wire")], model.selection(), 16, 0) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_3_1/To_Face")) +SketchProjection_6 = Sketch_8.addProjection(model.selection("EDGE", "Sketch_2/SketchLine_9"), False) +SketchLine_54 = SketchProjection_6.createdFeature() +SketchLine_54.setName("SketchLine_55") +SketchLine_54.result().setName("SketchLine_55") +SketchProjection_7 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1]"), False) +SketchLine_55 = SketchProjection_7.createdFeature() +SketchLine_55.setName("SketchLine_56") +SketchLine_55.result().setName("SketchLine_56") +SketchLine_56 = Sketch_8.addLine(0, -22.99999999998656, -76, -22.99999999999327) +SketchLine_56.setName("SketchLine_57") +SketchLine_56.result().setName("SketchLine_57") +SketchLine_56.setAuxiliary(True) +SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_56.startPoint(), SketchLine_55.result()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_81") +SketchConstraintCoincidence_81 = Sketch_8.setCoincident(SketchLine_56.endPoint(), SketchLine_54.result()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_82") +SketchConstraintMiddle_21 = Sketch_8.setMiddlePoint(SketchLine_56.endPoint(), SketchLine_54.result()) +SketchConstraintMiddle_22 = Sketch_8.setMiddlePoint(SketchLine_55.result(), SketchLine_56.startPoint()) +SketchLine_57 = Sketch_8.addLine(-37.99999999999842, -40.99999999998655, -38.000000000002, 0) +SketchLine_57.setName("SketchLine_58") +SketchLine_57.result().setName("SketchLine_58") +SketchLine_57.setAuxiliary(True) +SketchPoint_5 = Sketch_8.addPoint(-38, -22.99999999998992) +SketchConstraintCoincidence_82 = Sketch_8.setCoincident(SketchPoint_5.coordinates(), SketchLine_56.result()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_83") +SketchConstraintMiddle_23 = Sketch_8.setMiddlePoint(SketchLine_56.result(), SketchPoint_5.coordinates()) +SketchConstraintCoincidence_83 = Sketch_8.setCoincident(SketchLine_57.result(), SketchPoint_5.coordinates()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_84") +SketchConstraintPerpendicular_1 = Sketch_8.setPerpendicular(SketchLine_57.result(), SketchLine_56.result()) +SketchProjection_8 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2]"), False) +SketchLine_58 = SketchProjection_8.createdFeature() +SketchLine_58.setName("SketchLine_59") +SketchLine_58.result().setName("SketchLine_59") +SketchProjection_9 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1]"), False) +SketchLine_59 = SketchProjection_9.createdFeature() +SketchLine_59.setName("SketchLine_60") +SketchLine_59.result().setName("SketchLine_60") +SketchConstraintCoincidence_84 = Sketch_8.setCoincident(SketchLine_57.startPoint(), SketchLine_58.result()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_85") +SketchConstraintCoincidence_85 = Sketch_8.setCoincident(SketchLine_57.endPoint(), SketchLine_59.result()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_86") +SketchCircle_11 = Sketch_8.addCircle(-30, -22.99999999998921, 2.5) +SketchConstraintCoincidence_86 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_11.center()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_87") +SketchCircle_12 = Sketch_8.addCircle(-46.00000000004985, -22.99999999999062, 2.5) +SketchConstraintCoincidence_87 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_12.center()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_88") +SketchConstraintEqual_17 = Sketch_8.setEqual(SketchCircle_12.results()[1], SketchCircle_11.results()[1]) +SketchConstraintRadius_9 = Sketch_8.setRadius(SketchCircle_11.results()[1], 2.5) +SketchConstraintDistance_15 = Sketch_8.setDistance(SketchCircle_11.center(), SketchLine_57.result(), 8) +SketchConstraintDistance_16 = Sketch_8.setDistance(SketchCircle_11.center(), SketchCircle_12.center(), 16) +model.do() +Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchCircle_11_2f"), model.selection("FACE", "Sketch_8/Face-SketchCircle_12_2f")], model.selection(), 17, 0) +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1"), 38, True) +Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchLine_60 = Sketch_9.addLine(-14, -36.99999999998992, 0, -36.99999999998992) +SketchLine_60.setName("SketchLine_61") +SketchLine_60.result().setName("SketchLine_61") +SketchLine_61 = Sketch_9.addLine(0, -36.99999999998992, 0, -22.99999999998992) +SketchLine_61.setName("SketchLine_62") +SketchLine_61.result().setName("SketchLine_62") +SketchLine_62 = Sketch_9.addLine(0, -22.99999999998992, -14, -22.99999999998992) +SketchLine_62.setName("SketchLine_63") +SketchLine_62.result().setName("SketchLine_63") +SketchLine_63 = Sketch_9.addLine(-14, -22.99999999998992, -14, -36.99999999998992) +SketchLine_63.setName("SketchLine_64") +SketchLine_63.result().setName("SketchLine_64") +SketchConstraintCoincidence_88 = Sketch_9.setCoincident(SketchLine_63.endPoint(), SketchLine_60.startPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_89") +SketchConstraintCoincidence_89 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint()) +SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_90") +SketchConstraintCoincidence_90 = Sketch_9.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint()) +SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_91") +SketchConstraintCoincidence_91 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint()) +SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_92") +SketchConstraintHorizontal_11 = Sketch_9.setHorizontal(SketchLine_60.result()) +SketchConstraintVertical_7 = Sketch_9.setVertical(SketchLine_61.result()) +SketchConstraintHorizontal_12 = Sketch_9.setHorizontal(SketchLine_62.result()) +SketchConstraintVertical_8 = Sketch_9.setVertical(SketchLine_63.result()) +SketchConstraintLength_7 = Sketch_9.setLength(SketchLine_61.result(), 14) +SketchConstraintEqual_18 = Sketch_9.setEqual(SketchLine_61.result(), SketchLine_60.result()) +SketchLine_64 = Sketch_9.addLine(-5.662490896925754, -22.99999999998992, -60.5217691188193, -22.99999999998992) +SketchLine_64.setName("SketchLine_65") +SketchLine_64.result().setName("SketchLine_65") +SketchLine_64.setAuxiliary(True) +SketchPoint_6 = Sketch_9.addPoint(model.selection("VERTEX", "Sketch_8/SketchPoint_5")) +SketchConstraintCoincidence_92 = Sketch_9.setCoincident(SketchLine_64.result(), SketchPoint_6.coordinates()) +SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_93") +SketchConstraintHorizontal_13 = Sketch_9.setHorizontal(SketchLine_64.result()) +SketchConstraintCoincidence_93 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_64.result()) +SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_94") +SketchLine_65 = Sketch_9.addLine(model.selection("EDGE", "Sketch_7/SketchLine_52")) +SketchLine_65.setName("SketchLine_66") +SketchLine_65.result().setName("SketchLine_66") +SketchConstraintCoincidence_94 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_65.result()) +SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_95") +model.do() +RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection("EDGE", "Sketch_9/SketchLine_65"), 360, 0, [model.selection("SOLID", "Extrusion_3_1")]) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Part_1, 1) +model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [5]) diff --git a/test.compatibility/piece_09.py b/test.compatibility/piece_09.py new file mode 100644 index 000000000..b0eb32bbc --- /dev/null +++ b/test.compatibility/piece_09.py @@ -0,0 +1,373 @@ +# -*- coding: utf-8 -*- + +# 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 +# + +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "languette", "20") +model.addParameter(Part_1_doc, "d1", "70") +model.addParameter(Part_1_doc, "d2", "77.5") +model.addParameter(Part_1_doc, "d3", "32.5") +model.addParameter(Part_1_doc, "h1", "10") +model.addParameter(Part_1_doc, "r_trou", "3.125") +model.addParameter(Part_1_doc, "r1", "7.5") +model.addParameter(Part_1_doc, "r_trou2", "5") +model.addParameter(Part_1_doc, "d4", "110") +model.addParameter(Part_1_doc, "d5", "21.25") +model.addParameter(Part_1_doc, "d6", "31.25") +model.addParameter(Part_1_doc, "angle", "30") +model.addParameter(Part_1_doc, "h2", "15") +model.addParameter(Part_1_doc, "h3", "7.5") +model.addParameter(Part_1_doc, "r2", "3.75") +model.addParameter(Part_1_doc, "r3", "1.25") +model.addParameter(Part_1_doc, "epaisseur", "2.5") +model.addParameter(Part_1_doc, "e1", "6.2") +model.addParameter(Part_1_doc, "e2", "15") +model.addParameter(Part_1_doc, "d7", "11.2") +model.addParameter(Part_1_doc, "h4", "40") +model.addParameter(Part_1_doc, "d_diff", "5") +model.addParameter(Part_1_doc, "e3", "35") +model.addParameter(Part_1_doc, "d8", "23.75") +model.addParameter(Part_1_doc, "d9", "6.25") +model.addParameter(Part_1_doc, "d_trou", "17.5") +model.addParameter(Part_1_doc, "coeff", "1") +model.addParameter(Part_1_doc, "epaisseur_plat", "25") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchLine_1 = Sketch_1.addLine(0, 0, 13.23223304703355, -2.874692731756102e-26) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchPoint_1.result()) +SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.result()) +SketchArc_1 = Sketch_1.addArc(13.23223304703355, 5.51776695296637, 13.23223304703355, -2.874692731756102e-26, 18.74999999999991, 5.51776695296637, False) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchArc_1.startPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchLine_1.result(), SketchArc_1.results()[1]) +SketchLine_3 = Sketch_1.addLine(18.74999999999991, 5.51776695296637, 18.74999999999991, 29.48223304703358) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_3.startPoint()) +SketchArc_2 = Sketch_1.addArc(21.76776695296633, 29.48223304703358, 18.74999999999991, 29.48223304703358, 21.76776695296638, 32.50000000000001, True) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_2.startPoint()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_2.results()[1]) +SketchLine_4 = Sketch_1.addLine(21.76776695296638, 32.50000000000001, 88.23223304703366, 32.50000000000001) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_4.startPoint()) +SketchArc_3 = Sketch_1.addArc(88.23223304703366, 29.48223304703358, 88.23223304703366, 32.50000000000001, 91.25000000000009, 29.48223304703358, True) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchArc_3.startPoint()) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchLine_4.result(), SketchArc_3.results()[1]) +SketchLine_5 = Sketch_1.addLine(91.25000000000009, 29.48223304703358, 91.25000000000009, 5.51776695296637) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_5.startPoint()) +SketchArc_4 = Sketch_1.addArc(96.76776695296645, 5.51776695296637, 91.25000000000009, 5.51776695296637, 96.76776695296645, 0, False) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_4.startPoint()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_5.result(), SketchArc_4.results()[1]) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_2.result(), SketchArc_4.endPoint()) +SketchLine_6 = Sketch_1.addLine(96.76776695296645, 0, 110, 0) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_2.result()) +SketchLine_7 = Sketch_1.addLine(0, 0, 0, 2.5) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_7.startPoint()) +SketchLine_8 = Sketch_1.addLine(0, 2.5, 14.99999999999991, 2.5) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint()) +SketchArc_5 = Sketch_1.addArc(14.99999999999991, 3.75, 14.99999999999991, 2.5, 16.24999999999991, 3.75, False) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchArc_5.startPoint()) +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchLine_8.result(), SketchArc_5.results()[1]) +SketchLine_9 = Sketch_1.addLine(16.24999999999991, 3.75, 16.24999999999991, 31.24999999999991) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_9.startPoint()) +SketchArc_6 = Sketch_1.addArc(19.99999999999991, 31.24999999999991, 16.24999999999991, 31.24999999999991, 19.99999999999996, 35, True) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchArc_6.startPoint()) +SketchConstraintTangent_6 = Sketch_1.setTangent(SketchLine_9.result(), SketchArc_6.results()[1]) +SketchLine_10 = Sketch_1.addLine(19.99999999999996, 35, 89.99999999999997, 35) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_10.startPoint()) +SketchArc_7 = Sketch_1.addArc(90.00000000000009, 31.24999999999977, 89.99999999999997, 35, 93.75000000000009, 31.24999999999977, True) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchArc_7.startPoint()) +SketchConstraintTangent_7 = Sketch_1.setTangent(SketchLine_10.result(), SketchArc_7.results()[1]) +SketchLine_11 = Sketch_1.addLine(93.75000000000009, 31.24999999999977, 93.75000000000009, 3.75) +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchArc_7.endPoint(), SketchLine_11.startPoint()) +SketchArc_8 = Sketch_1.addArc(95.00000000000009, 3.75, 93.75000000000009, 3.75, 95.00000000000009, 2.5, False) +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchArc_8.startPoint()) +SketchConstraintTangent_8 = Sketch_1.setTangent(SketchLine_11.result(), SketchArc_8.results()[1]) +SketchLine_12 = Sketch_1.addLine(95.00000000000009, 2.5, 110, 2.5) +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_12.startPoint()) +SketchLine_13 = Sketch_1.addLine(110, 2.5, 110, 0) +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_13.endPoint()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_7.result()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_3.result()) +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_9.result()) +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_5.result()) +SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_11.result()) +SketchConstraintVertical_6 = Sketch_1.setVertical(SketchLine_13.result()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_10.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_4.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_12.result()) +SketchConstraintTangent_9 = Sketch_1.setTangent(SketchArc_6.results()[1], SketchLine_10.result()) +SketchConstraintTangent_10 = Sketch_1.setTangent(SketchArc_7.results()[1], SketchLine_11.result()) +SketchConstraintTangent_11 = Sketch_1.setTangent(SketchArc_8.results()[1], SketchLine_12.result()) +SketchConstraintTangent_12 = Sketch_1.setTangent(SketchArc_5.results()[1], SketchLine_9.result()) +SketchConstraintTangent_13 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_3.result()) +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_8.result()) +SketchConstraintTangent_14 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_6.result()) +SketchConstraintTangent_15 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_4.result()) +SketchConstraintTangent_16 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_5.result()) +SketchConstraintEqual_1 = Sketch_1.setEqual(SketchArc_5.results()[1], SketchArc_8.results()[1]) +SketchConstraintEqual_2 = Sketch_1.setEqual(SketchLine_8.result(), SketchLine_12.result()) +SketchConstraintEqual_3 = Sketch_1.setEqual(SketchLine_1.result(), SketchLine_6.result()) +SketchConstraintEqual_4 = Sketch_1.setEqual(SketchArc_1.results()[1], SketchArc_4.results()[1]) +SketchConstraintEqual_5 = Sketch_1.setEqual(SketchLine_3.result(), SketchLine_5.result()) +SketchConstraintEqual_6 = Sketch_1.setEqual(SketchLine_9.result(), SketchLine_11.result()) +SketchConstraintEqual_7 = Sketch_1.setEqual(SketchLine_7.result(), SketchLine_13.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_7.result(), "epaisseur*coeff") +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchArc_5.endPoint(), SketchLine_3.result(), "epaisseur*coeff") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchArc_6.endPoint(), SketchLine_4.result(), "epaisseur*coeff") +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_5.results()[1], "r3*coeff") +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_6.results()[1], "r2*coeff") +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_12.endPoint(), SketchLine_7.result(), "d4*coeff") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchArc_5.center(), SketchArc_1.center(), "epaisseur*coeff") +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchArc_2.center(), SketchArc_6.center(), "epaisseur*coeff") +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_1.result(), SketchArc_6.endPoint(), "(h4-d_diff)*coeff") +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_10.result(), "d1*coeff") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_1r-SketchArc_1_2f-SketchLine_3f-SketchArc_2_2r-SketchLine_4f-SketchArc_3_2r-SketchLine_5f-SketchArc_4_2f-SketchLine_6f-SketchLine_13r-SketchLine_12r-SketchArc_8_2r-SketchLine_11r-SketchArc_7_2f-SketchLine_10r-SketchArc_6_2f-SketchLine_9r-SketchArc_5_2r-SketchLine_8r-SketchLine_7r_wire")], model.selection(), "epaisseur_plat*coeff", 0) +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7"), "d2*coeff", True) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_7_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10]"), False) +SketchLine_14 = SketchProjection_1.createdFeature() +SketchProjection_2 = Sketch_2.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_11][Extrusion_1_1/To_Face]"), False) +SketchLine_15 = SketchProjection_2.createdFeature() +SketchLine_16 = Sketch_2.addLine(-24.99999999999999, -35.00000000000001, -31.24999999999999, -35.00000000000001) +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchAPI_Line(SketchLine_14).endPoint(), SketchLine_16.startPoint()) +SketchArc_9 = Sketch_2.addArc(-31.24999999999999, -31.25000000000001, -31.24999999999999, -35.00000000000001, -34.99999999999999, -31.25000000000001, True) +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_16.endPoint(), SketchArc_9.startPoint()) +SketchConstraintTangent_17 = Sketch_2.setTangent(SketchLine_16.result(), SketchArc_9.results()[1]) +SketchLine_17 = Sketch_2.addLine(-35, -31.24999999999999, -35, 1.250000000000009) +SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchArc_9.endPoint(), SketchLine_17.startPoint()) +SketchArc_10 = Sketch_2.addArc(-31.25, 1.249999999999998, -35, 1.249999999999998, -31.25, 4.999999999999998, True) +SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchLine_17.endPoint(), SketchArc_10.startPoint()) +SketchConstraintTangent_18 = Sketch_2.setTangent(SketchLine_17.result(), SketchArc_10.results()[1]) +SketchLine_18 = Sketch_2.addLine(-31.25, 4.999999999999999, -11.25, 4.999999999999999) +SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchArc_10.endPoint(), SketchLine_18.startPoint()) +SketchLine_19 = Sketch_2.addLine(-11.25, 5.000000000000009, -11.25, 2.500000000000009) +SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint()) +SketchLine_20 = Sketch_2.addLine(-11.25, 2.500000000000002, -31.24999999999999, 2.500000000000017) +SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchArc_11 = Sketch_2.addArc(-31.25, 1.25, -31.25, 2.500000000000002, -32.5, 1.250000000000808, False) +SketchConstraintCoincidence_32 = Sketch_2.setCoincident(SketchLine_20.endPoint(), SketchArc_11.startPoint()) +SketchConstraintTangent_19 = Sketch_2.setTangent(SketchLine_20.result(), SketchArc_11.results()[1]) +SketchLine_21 = Sketch_2.addLine(-32.5, 1.249999999999992, -32.5, -31.24999999999999) +SketchConstraintCoincidence_33 = Sketch_2.setCoincident(SketchArc_11.endPoint(), SketchLine_21.startPoint()) +SketchArc_12 = Sketch_2.addArc(-31.25, -31.25, -32.5, -31.25, -31.25, -32.5, False) +SketchConstraintCoincidence_34 = Sketch_2.setCoincident(SketchLine_21.endPoint(), SketchArc_12.startPoint()) +SketchConstraintTangent_20 = Sketch_2.setTangent(SketchLine_21.result(), SketchArc_12.results()[1]) +SketchLine_22 = Sketch_2.addLine(-31.25, -32.50000000000001, -25.00000000000001, -32.50000000000001) +SketchConstraintCoincidence_35 = Sketch_2.setCoincident(SketchArc_12.endPoint(), SketchLine_22.startPoint()) +SketchLine_23 = Sketch_2.addLine(-24.99999999999999, -35.00000000000001, -24.99999999999999, -32.50000000000002) +SketchConstraintCoincidence_36 = Sketch_2.setCoincident(SketchAPI_Line(SketchLine_14).endPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_37 = Sketch_2.setCoincident(SketchLine_22.endPoint(), SketchLine_23.endPoint()) +SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_16.result()) +SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_22.result()) +SketchConstraintHorizontal_7 = Sketch_2.setHorizontal(SketchLine_20.result()) +SketchConstraintHorizontal_8 = Sketch_2.setHorizontal(SketchLine_18.result()) +SketchConstraintVertical_7 = Sketch_2.setVertical(SketchLine_17.result()) +SketchConstraintVertical_8 = Sketch_2.setVertical(SketchLine_21.result()) +SketchConstraintVertical_9 = Sketch_2.setVertical(SketchLine_23.result()) +SketchConstraintVertical_10 = Sketch_2.setVertical(SketchLine_19.result()) +SketchConstraintTangent_21 = Sketch_2.setTangent(SketchArc_9.results()[1], SketchLine_17.result()) +SketchConstraintTangent_22 = Sketch_2.setTangent(SketchArc_10.results()[1], SketchLine_18.result()) +SketchConstraintTangent_23 = Sketch_2.setTangent(SketchArc_11.results()[1], SketchLine_21.result()) +SketchConstraintTangent_24 = Sketch_2.setTangent(SketchArc_12.results()[1], SketchLine_22.result()) +SketchConstraintDistance_7 = Sketch_2.setDistance(SketchLine_23.startPoint(), SketchLine_18.result(), "h4*coeff") +SketchConstraintDistance_8 = Sketch_2.setDistance(SketchLine_16.startPoint(), SketchLine_22.result(), "epaisseur*coeff") +SketchConstraintDistance_9 = Sketch_2.setDistance(SketchLine_21.endPoint(), SketchLine_17.result(), "epaisseur*coeff") +SketchConstraintDistance_10 = Sketch_2.setDistance(SketchArc_11.startPoint(), SketchLine_18.result(), "epaisseur*coeff") +SketchConstraintCoincidence_39 = Sketch_2.setCoincident(SketchLine_16.startPoint(), SketchAPI_Line(SketchLine_14).endPoint()) +SketchPoint_2 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchConstraintDistance_11 = Sketch_2.setDistance(SketchPoint_2.coordinates(), SketchLine_17.result(), "e3*coeff", False) +SketchConstraintRadius_3 = Sketch_2.setRadius(SketchArc_9.results()[1], "r2*coeff") +SketchConstraintEqual_9 = Sketch_2.setEqual(SketchArc_9.results()[1], SketchArc_10.results()[1]) +SketchConstraintEqual_10 = Sketch_2.setEqual(SketchArc_11.results()[1], SketchArc_12.results()[1]) +SketchConstraintRadius_4 = Sketch_2.setRadius(SketchArc_12.results()[1], "r3*coeff") +SketchConstraintDistance_13 = Sketch_2.setDistance(SketchArc_10.startPoint(), SketchLine_19.result(), "d8*coeff") +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchLine_23f-SketchLine_22r-SketchArc_12_2r-SketchLine_21r-SketchArc_11_2r-SketchLine_20r-SketchLine_19r-SketchLine_18r-SketchArc_10_2f-SketchLine_17r-SketchArc_9_2f-SketchLine_16r_wire")], model.selection(), "d6*coeff", 0) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_2_1/Generated_Face&Sketch_2/SketchLine_17")) +SketchLine_24 = Sketch_3.addLine(46.25, 22.91561885925604, 51.3, 20.00000000000001) +SketchLine_25 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_2/SketchLine_17][Extrusion_2_1/To_Face]")) +SketchLine_26 = Sketch_3.addLine(51.3, 20.00000000000001, 62.50000000000001, 20.00000000000001) +SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchLine_24.endPoint(), SketchLine_26.startPoint()) +SketchLine_27 = Sketch_3.addLine(62.50000000000001, 20.00000000000001, 62.5, -4.999999999999999) +SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_26.endPoint(), SketchLine_27.startPoint()) +SketchLine_28 = Sketch_3.addLine(62.5, -4.999999999999999, 46.25, -4.999999999999999) +SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_27.endPoint(), SketchLine_28.startPoint()) +SketchLine_29 = Sketch_3.addLine(46.25, -4.999999999999999, 46.25, 22.91561885925604) +SketchConstraintCoincidence_45 = Sketch_3.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint()) +SketchLine_30 = Sketch_3.addLine(46.25, 35.00000000000001, 56.25000000000002, 35.00000000000001) +SketchLine_31 = Sketch_3.addLine(56.25000000000002, 35.00000000000001, 56.25000000000002, 27.50000000000001) +SketchConstraintCoincidence_46 = Sketch_3.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchLine_32 = Sketch_3.addLine(56.25000000000002, 27.50000000000001, 46.25, 27.50000000000001) +SketchConstraintCoincidence_47 = Sketch_3.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint()) +SketchConstraintCoincidence_48 = Sketch_3.setCoincident(SketchLine_32.endPoint(), SketchLine_25.result()) +SketchLine_33 = Sketch_3.addLine(46.25, 27.50000000000001, 46.25, 35.00000000000001) +SketchConstraintCoincidence_49 = Sketch_3.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint()) +SketchConstraintCoincidence_50 = Sketch_3.setCoincident(SketchLine_30.startPoint(), SketchLine_33.endPoint()) +SketchConstraintHorizontal_9 = Sketch_3.setHorizontal(SketchLine_28.result()) +SketchConstraintHorizontal_10 = Sketch_3.setHorizontal(SketchLine_26.result()) +SketchConstraintHorizontal_11 = Sketch_3.setHorizontal(SketchLine_32.result()) +SketchConstraintHorizontal_12 = Sketch_3.setHorizontal(SketchLine_30.result()) +SketchConstraintVertical_11 = Sketch_3.setVertical(SketchLine_29.result()) +SketchConstraintVertical_12 = Sketch_3.setVertical(SketchLine_27.result()) +SketchConstraintVertical_13 = Sketch_3.setVertical(SketchLine_33.result()) +SketchConstraintVertical_14 = Sketch_3.setVertical(SketchLine_31.result()) +SketchConstraintAngle_1 = Sketch_3.setAngleComplementary(SketchLine_26.result(), SketchLine_24.result(), "angle") +SketchProjection_3 = Sketch_3.addProjection(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_2/SketchLine_18][Extrusion_2_1/Generated_Face&Sketch_2/SketchArc_10_2]"), False) +SketchLine_34 = SketchProjection_3.createdFeature() +SketchProjection_4 = Sketch_3.addProjection(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_2/SketchArc_9_2][Extrusion_2_1/Generated_Face&Sketch_2/SketchLine_16]"), False) +SketchLine_35 = SketchProjection_4.createdFeature() +SketchConstraintCoincidence_51 = Sketch_3.setCoincident(SketchLine_28.endPoint(), SketchLine_34.result()) +SketchConstraintDistance_15 = Sketch_3.setDistance(SketchLine_31.result(), SketchLine_33.endPoint(), "(d6-d5)*coeff") +SketchConstraintLength_3 = Sketch_3.setLength(SketchLine_33.result(), "h3*coeff") +SketchConstraintCoincidence_52 = Sketch_3.setCoincident(SketchLine_30.endPoint(), SketchLine_35.result()) +SketchConstraintDistance_16 = Sketch_3.setDistance(SketchLine_27.result(), SketchLine_28.endPoint(), "(d6-e2)*coeff") +SketchConstraintCoincidence_53 = Sketch_3.setCoincident(SketchLine_28.endPoint(), SketchLine_25.result()) +SketchConstraintCoincidence_54 = Sketch_3.setCoincident(SketchLine_29.endPoint(), SketchLine_24.startPoint()) +SketchConstraintDistance_17 = Sketch_3.setDistance(SketchLine_26.result(), SketchAPI_Line(SketchLine_35).startPoint(), "h2*coeff") +SketchConstraintLength_4 = Sketch_3.setLength(SketchLine_26.result(), "d7*coeff") +model.do() +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchLine_29r-SketchLine_28r-SketchLine_27r-SketchLine_26r-SketchLine_24r")], model.selection(), model.selection("FACE", "Extrusion_2_1/Generated_Face&Sketch_2/SketchLine_19"), 0, model.selection(), 0, [model.selection("SOLID", "Extrusion_2_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchLine_33r-SketchLine_32r-SketchLine_31r-SketchLine_30r")], model.selection(), model.selection("FACE", "Extrusion_1_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7"), "d3*coeff", True) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2")) +SketchProjection_5 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_9][Extrusion_1_1/To_Face]"), False) +SketchLine_36 = SketchProjection_5.createdFeature() +SketchProjection_6 = Sketch_4.addProjection(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Sketch_2/SketchLine_23][ExtrusionCut_2_1/Generated_Face&Sketch_3/SketchLine_31]"), False) +SketchLine_37 = SketchProjection_6.createdFeature() +SketchProjection_7 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_6_2]"), False) +SketchLine_38 = SketchProjection_7.createdFeature() +SketchLine_39 = Sketch_4.addLine(-25, -35.00000000000001, -31.24999999999999, -35.00000000000001) +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_37).startPoint(), SketchLine_39.startPoint()) +SketchArc_13 = Sketch_4.addArc(-31.25, -31.25000000000001, -31.24999999999999, -35.00000000000001, -34.99999999999999, -31.25000000000001, True) +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchLine_39.endPoint(), SketchArc_13.startPoint()) +SketchConstraintTangent_25 = Sketch_4.setTangent(SketchLine_39.result(), SketchArc_13.results()[1]) +SketchLine_40 = Sketch_4.addLine(-34.99999999999999, -31.25000000000001, -34.99999999999999, -20) +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchArc_13.endPoint(), SketchLine_40.startPoint()) +SketchLine_41 = Sketch_4.addLine(-34.99999999999999, -20, -32.49999999999999, -20) +SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint()) +SketchLine_42 = Sketch_4.addLine(-32.49999999999999, -20, -32.49999999999999, -31.24999999999389) +SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint()) +SketchArc_14 = Sketch_4.addArc(-31.24999999999999, -31.24999999999393, -32.49999999999999, -31.24999999999389, -31.25000000000371, -32.50000000000001, False) +SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchLine_42.endPoint(), SketchArc_14.startPoint()) +SketchConstraintTangent_26 = Sketch_4.setTangent(SketchLine_42.result(), SketchArc_14.results()[1]) +SketchLine_43 = Sketch_4.addLine(-31.25000000000371, -32.50000000000001, -25, -32.50000000000001) +SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_14.endPoint(), SketchLine_43.startPoint()) +SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_37).endPoint(), SketchLine_43.endPoint()) +SketchLine_44 = Sketch_4.addLine(-25, -35.00000000000001, -25, -32.50000000000001) +SketchConstraintCoincidence_63 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_37).startPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_64 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_37).endPoint(), SketchLine_44.endPoint()) +SketchConstraintHorizontal_13 = Sketch_4.setHorizontal(SketchLine_41.result()) +SketchConstraintHorizontal_14 = Sketch_4.setHorizontal(SketchLine_43.result()) +SketchConstraintHorizontal_15 = Sketch_4.setHorizontal(SketchLine_39.result()) +SketchConstraintVertical_15 = Sketch_4.setVertical(SketchLine_42.result()) +SketchConstraintVertical_16 = Sketch_4.setVertical(SketchLine_40.result()) +SketchConstraintTangent_27 = Sketch_4.setTangent(SketchArc_13.results()[1], SketchLine_40.result()) +SketchConstraintTangent_28 = Sketch_4.setTangent(SketchArc_14.results()[1], SketchLine_43.result()) +SketchConstraintDistance_18 = Sketch_4.setDistance(SketchLine_40.result(), SketchLine_44.startPoint(), "h1*coeff") +SketchConstraintRadius_5 = Sketch_4.setRadius(SketchArc_13.results()[1], "r2*coeff") +SketchConstraintRadius_6 = Sketch_4.setRadius(SketchArc_14.results()[1], "r3*coeff") +SketchConstraintDistance_19 = Sketch_4.setDistance(SketchLine_41.endPoint(), SketchLine_40.result(), "epaisseur*coeff") +SketchConstraintDistance_20 = Sketch_4.setDistance(SketchLine_41.startPoint(), SketchLine_39.result(), "h2") +model.do() +Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_4/Face-SketchLine_44f-SketchLine_43r-SketchArc_14_2r-SketchLine_42r-SketchLine_41r-SketchLine_40r-SketchArc_13_2f-SketchLine_39r_wire")], model.selection(), 0, "e1*coeff") +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_2/SketchLine_18")) +SketchCircle_1 = Sketch_5.addCircle(70, 17.5, 3.125) +SketchLine_45 = Sketch_5.addLine(model.selection("EDGE", "[ExtrusionCut_1_1/Modified_Face&Sketch_2/SketchLine_19][ExtrusionCut_1_1/Modified_Face&Sketch_2/SketchLine_18]")) +SketchConstraintDistance_21 = Sketch_5.setDistance(SketchCircle_1.center(), SketchLine_45.result(), "d9*coeff") +SketchProjection_8 = Sketch_5.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_13]")) +SketchLine_46 = SketchProjection_8.createdFeature() +SketchProjection_9 = Sketch_5.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7]"), False) +SketchLine_47 = SketchProjection_9.createdFeature() +SketchConstraintDistance_22 = Sketch_5.setDistance(SketchCircle_1.center(), SketchLine_47.result(), "d1*coeff") +SketchConstraintRadius_7 = Sketch_5.setRadius(SketchCircle_1.results()[1], "r_trou") +model.do() +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchCircle_1_2r")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&Sketch_2/SketchLine_20"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) +Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10")) +SketchCircle_2 = Sketch_6.addCircle(70, -17.5, 5) +SketchLine_48 = Sketch_6.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_1_1/To_Face]")) +SketchProjection_10 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_8][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7]"), False) +SketchLine_49 = SketchProjection_10.createdFeature() +SketchConstraintDistance_23 = Sketch_6.setDistance(SketchCircle_2.center(), SketchLine_49.result(), "d1*coeff") +SketchConstraintDistance_23.setName("SketchConstraintDistance_24") +SketchConstraintRadius_8 = Sketch_6.setRadius(SketchCircle_2.results()[1], "r_trou2") +SketchLine_50 = Sketch_6.addLine(model.selection("EDGE", "Sketch_1/SketchLine_10")) +SketchConstraintDistance_24 = Sketch_6.setDistance(SketchCircle_2.center(), SketchLine_50.result(), "d_trou") +SketchConstraintDistance_24.setName("SketchConstraintDistance_25") +model.do() +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchCircle_2_2r")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_4"), 0, model.selection(), 0, [model.selection("SOLID", "Extrusion_1_1")]) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6")) +SketchLine_51 = Sketch_7.addLine(110, 21.46600893000899, 110, 7.22841614740048) +SketchLine_51.setAuxiliary(True) +SketchLine_52 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_13]")) +SketchConstraintCoincidence_65 = Sketch_7.setCoincident(SketchLine_51.startPoint(), SketchLine_52.result()) +SketchConstraintCoincidence_66 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchLine_52.result()) +SketchLine_53 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]")) +SketchArc_15 = Sketch_7.addArc(102.5, 7.22841614740048, 110, 7.22841614740048, 104.5, 0, True) +SketchConstraintCoincidence_67 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchArc_15.startPoint()) +SketchConstraintTangent_29 = Sketch_7.setTangent(SketchLine_51.result(), SketchArc_15.results()[1]) +SketchConstraintCoincidence_68 = Sketch_7.setCoincident(SketchLine_53.result(), SketchArc_15.endPoint()) +SketchConstraintRadius_9 = Sketch_7.setRadius(SketchArc_15.results()[1], "r1") +SketchLine_54 = Sketch_7.addLine(104.5, 0, 110, 0) +SketchConstraintCoincidence_69 = Sketch_7.setCoincident(SketchArc_15.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_70 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_54.endPoint()) +SketchPoint_3 = Sketch_7.addPoint(0, 0) +SketchLine_55 = Sketch_7.addLine(110, 7.22841614740048, 110, 0) +SketchConstraintCoincidence_71 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchLine_55.startPoint()) +SketchConstraintCoincidence_72 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_55.endPoint()) +SketchConstraintLength_5 = Sketch_7.setLength(SketchLine_54.result(), "5.5*coeff") +SketchLine_56 = Sketch_7.addLine(110, 12.5, 0, 12.5) +SketchLine_56.setAuxiliary(True) +SketchConstraintCoincidence_73 = Sketch_7.setCoincident(SketchLine_56.startPoint(), SketchLine_52.result()) +SketchLine_57 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_7]")) +SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_57.result()) +SketchConstraintMiddle_1 = Sketch_7.setMiddlePoint(SketchLine_56.endPoint(), SketchLine_57.result()) +SketchConstraintMiddle_2 = Sketch_7.setMiddlePoint(SketchLine_56.startPoint(), SketchLine_52.result()) +SketchProjection_11 = Sketch_7.addProjection(model.selection("EDGE", "[Extrusion_1_1/To_Face][ExtrusionCut_4_1/Modified_Face&Sketch_1/SketchLine_4]"), False) +SketchLine_58 = SketchProjection_11.createdFeature() +SketchLine_59 = Sketch_7.addLine(55.00000000000002, 0, 55.00000000000002, 25) +SketchLine_59.setAuxiliary(True) +SketchLine_60 = Sketch_7.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_59.startPoint(), SketchLine_60.result()) +SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_58.result()) +SketchConstraintMiddle_3 = Sketch_7.setMiddlePoint(SketchLine_59.endPoint(), SketchLine_58.result()) +SketchConstraintVertical_17 = Sketch_7.setVertical(SketchLine_59.result()) +SketchConstraintMirror_1_objects = [SketchArc_15.results()[1], SketchLine_55.result(), SketchLine_54.result()] +SketchConstraintMirror_1 = Sketch_7.addMirror(SketchLine_56.result(), SketchConstraintMirror_1_objects) +[SketchArc_16, SketchLine_61, SketchLine_62] = SketchConstraintMirror_1.mirrored() +SketchConstraintMirror_2_objects = [SketchArc_15.results()[1], SketchLine_55.result(), SketchLine_54.result(), SketchArc_16.results()[1], SketchLine_62.result(), SketchLine_52.result()] +SketchConstraintMirror_2 = Sketch_7.addMirror(SketchLine_59.result(), SketchConstraintMirror_2_objects) +[SketchArc_17, SketchLine_63, SketchLine_64, SketchArc_18, SketchLine_65, SketchLine_66] = SketchConstraintMirror_2.mirrored() +model.do() +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Face-SketchLine_61f-SketchLine_62r-SketchArc_16_2r_wire"), model.selection("FACE", "Sketch_7/Face-SketchLine_65f-SketchLine_66r-SketchArc_18_2r"), model.selection("FACE", "Sketch_7/Face-SketchLine_63f-SketchLine_64r-SketchArc_17_2r"), model.selection("WIRE", "Sketch_7/Face-SketchLine_54f-SketchLine_55r-SketchArc_15_2r_wire")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_12"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_4_1")]) +Boolean_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "ExtrusionCut_5_1")], [model.selection("SOLID", "Extrusion_3_1"), model.selection("SOLID", "ExtrusionCut_3_1")]) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Part_1, 1) +model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1]) diff --git a/test.compatibility/piece_12.py b/test.compatibility/piece_12.py new file mode 100644 index 000000000..6bee9ac23 --- /dev/null +++ b/test.compatibility/piece_12.py @@ -0,0 +1,770 @@ +# -*- coding: utf-8 -*- + +# 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 +# + +from GeomAPI import * +from SketchAPI import * + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +model.addParameter(Part_1_doc, "r1", "26.5") +model.addParameter(Part_1_doc, "r2", "22") +model.addParameter(Part_1_doc, "entraxe", "80") +Parameter_Epaisseur = model.addParameter(Part_1_doc, "epaisseur", "34") +model.addParameter(Part_1_doc, "ep", "4") +model.addParameter(Part_1_doc, "d1", "112") +model.addParameter(Part_1_doc, "d2", "24") +model.addParameter(Part_1_doc, "d3", "5") +model.addParameter(Part_1_doc, "r3", "2.5") +model.addParameter(Part_1_doc, "dtrou", "9") +model.addParameter(Part_1_doc, "ep_o", "24") +model.addParameter(Part_1_doc, "d_per", "2.5") +model.addParameter(Part_1_doc, "r4", "15") +model.addParameter(Part_1_doc, "h", "45") +model.addParameter(Part_1_doc, "ep_o2", "5") +model.addParameter(Part_1_doc, "d_o", "10") +model.addParameter(Part_1_doc, "h_o", "57") +model.addParameter(Part_1_doc, "p_trou1", "29.2") +model.addParameter(Part_1_doc, "p2_trou1", "19.2") +model.addParameter(Part_1_doc, "p_trou2", "46") +model.addParameter(Part_1_doc, "p2_trou", "36.5") +model.addParameter(Part_1_doc, "h_p", "40") +model.addParameter(Part_1_doc, "M8", "4") +model.addParameter(Part_1_doc, "r_trou2", "10") +model.addParameter(Part_1_doc, "r_al1", "12.5") +model.addParameter(Part_1_doc, "r_al2", "14") +model.addParameter(Part_1_doc, "coeff", "1") +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ")) +SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchCircle_1 = Sketch_1.addCircle(0, 0, 15) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchCircle_1.center()) +SketchCircle_2 = Sketch_1.addCircle(80, 0, 15) +SketchCircle_3 = Sketch_1.addCircle(0, 0, 12.5) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchCircle_3.center()) +SketchCircle_4 = Sketch_1.addCircle(80, 0, 14) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchCircle_4.center()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchCircle_3.results()[1], "r_al1*coeff") +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchCircle_4.results()[1], "r_al2*coeff") +SketchConstraintRadius_3 = Sketch_1.setRadius(SketchCircle_1.results()[1], "r4*coeff") +SketchConstraintRadius_4 = Sketch_1.setRadius(SketchCircle_2.results()[1], "r4*coeff") +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchCircle_3.center(), SketchCircle_4.center(), "entraxe*coeff") +SketchArc_1 = Sketch_1.addArc(0, 0, 13.96424004376894, -17, 13.96424004376894, 17, True) +SketchArc_1.setName("SketchArc_4") +SketchArc_1.result().setName("SketchArc_4") +SketchArc_1.results()[1].setName("SketchArc_4_2") +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchCircle_3.center(), SketchArc_1.center()) +SketchConstraintCoincidence_4.setName("SketchConstraintCoincidence_7") +SketchLine_1 = Sketch_1.addLine(13.96424004376894, 17, 66.03575995620928, 17) +SketchLine_1.setName("SketchLine_6") +SketchLine_1.result().setName("SketchLine_6") +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_1.startPoint()) +SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_18") +SketchLine_2 = Sketch_1.addLine(13.96424004376894, -17, 66.03575995623092, -17) +SketchLine_2.setName("SketchLine_10") +SketchLine_2.result().setName("SketchLine_10") +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result()) +SketchConstraintHorizontal_1.setName("SketchConstraintHorizontal_5") +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_1.result()) +SketchConstraintHorizontal_2.setName("SketchConstraintHorizontal_6") +SketchLine_3 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_3.setName("SketchLine_11") +SketchLine_3.result().setName("SketchLine_11") +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_2.startPoint()) +SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_15") +SketchConstraintRadius_5 = Sketch_1.setRadius(SketchArc_1.results()[1], "r2*coeff") +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchArc_1.endPoint(), SketchLine_3.result(), "epaisseur/2*coeff") +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchArc_1.endPoint(), SketchLine_2.result(), "epaisseur*coeff") +SketchArc_2 = Sketch_1.addArc(80, 0, 66.03575995623092, -17, 66.03575995620928, 17, False) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchArc_2.center()) +SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_8") +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_9") +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.endPoint()) +SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_10") +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchLine_3.result()) +SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_11") +SketchConstraintEqual_1 = Sketch_1.setEqual(SketchArc_1.results()[1], SketchArc_2.results()[1]) +SketchArc_3 = Sketch_1.addArc(0, 0, 15.46247221747307, -11.0413745939477, 18.89444362769119, -2, False) +SketchArc_3.setName("SketchArc_7") +SketchArc_3.result().setName("SketchArc_7") +SketchArc_3.results()[1].setName("SketchArc_7_2") +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_3.center()) +SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_54") +SketchArc_4 = Sketch_1.addArc(0, 0, 18.89444362769119, 2, 15.46247221747308, 11.04137459394768, False) +SketchArc_4.setName("SketchArc_8") +SketchArc_4.result().setName("SketchArc_8") +SketchArc_4.results()[1].setName("SketchArc_8_2") +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_4.center()) +SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_55") +SketchConstraintEqual_2 = Sketch_1.setEqual(SketchArc_4.results()[1], SketchArc_3.results()[1]) +SketchConstraintEqual_2.setName("SketchConstraintEqual_8") +SketchArc_5 = Sketch_1.addArc(17.5, 12.49632352941176, 15.46247221747308, 11.04137459394768, 17.5, 15, True) +SketchArc_5.setName("SketchArc_9") +SketchArc_5.result().setName("SketchArc_9") +SketchArc_5.results()[1].setName("SketchArc_9_2") +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchArc_5.startPoint()) +SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_56") +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchArc_5.results()[1]) +SketchArc_6 = Sketch_1.addArc(17.5, -12.49632352941177, 15.46247221747307, -11.0413745939477, 17.5, -15, False) +SketchArc_6.setName("SketchArc_10") +SketchArc_6.result().setName("SketchArc_10") +SketchArc_6.results()[1].setName("SketchArc_10_2") +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchArc_6.startPoint()) +SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_57") +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchArc_6.results()[1]) +SketchLine_4 = Sketch_1.addLine(17.5, 15, 38, 15) +SketchLine_4.setName("SketchLine_42") +SketchLine_4.result().setName("SketchLine_42") +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_4.startPoint()) +SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_58") +SketchLine_5 = Sketch_1.addLine(18.89444362769119, -2, 34.49444362769118, -2) +SketchLine_5.setName("SketchLine_44") +SketchLine_5.result().setName("SketchLine_44") +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_5.startPoint()) +SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_60") +SketchLine_6 = Sketch_1.addLine(18.89444362769119, 2, 34.49444362769118, 2) +SketchLine_6.setName("SketchLine_45") +SketchLine_6.result().setName("SketchLine_45") +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_4.startPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_61") +SketchLine_7 = Sketch_1.addLine(38, 15, 38, 5.505556372308819) +SketchLine_7.setName("SketchLine_46") +SketchLine_7.result().setName("SketchLine_46") +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_62") +SketchConstraintEqual_3 = Sketch_1.setEqual(SketchArc_5.results()[1], SketchArc_6.results()[1]) +SketchConstraintEqual_3.setName("SketchConstraintEqual_9") +SketchConstraintEqual_4 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_6.result()) +SketchConstraintEqual_4.setName("SketchConstraintEqual_11") +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_6.result()) +SketchConstraintHorizontal_3.setName("SketchConstraintHorizontal_12") +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_4.result()) +SketchConstraintHorizontal_4.setName("SketchConstraintHorizontal_13") +SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_5.result()) +SketchConstraintHorizontal_5.setName("SketchConstraintHorizontal_14") +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_7.result()) +SketchConstraintVertical_1.setName("SketchConstraintVertical_7") +SketchLine_8 = Sketch_1.addLine(40, 17, 40, -17) +SketchLine_8.setName("SketchLine_47") +SketchLine_8.result().setName("SketchLine_47") +SketchLine_8.setAuxiliary(True) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_8.startPoint(), SketchLine_1.result()) +SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_63") +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_2.result()) +SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_64") +SketchConstraintMiddle_1 = Sketch_1.setMiddlePoint(SketchLine_8.startPoint(), SketchLine_1.result()) +SketchConstraintMiddle_1.setName("SketchConstraintMiddle_4") +SketchConstraintMiddle_2 = Sketch_1.setMiddlePoint(SketchLine_8.endPoint(), SketchLine_2.result()) +SketchConstraintMiddle_2.setName("SketchConstraintMiddle_5") +SketchPoint_2 = Sketch_1.addPoint(40, 2.220450266386716e-15) +SketchPoint_2.setName("SketchPoint_7") +SketchPoint_2.result().setName("SketchPoint_7") +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchLine_8.result()) +SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_65") +SketchConstraintMiddle_3 = Sketch_1.setMiddlePoint(SketchLine_8.result(), SketchPoint_2.coordinates()) +SketchConstraintMiddle_3.setName("SketchConstraintMiddle_6") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.startPoint(), SketchLine_3.result(), "2*coeff") +SketchConstraintDistance_4.setName("SketchConstraintDistance_17") +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchArc_3.endPoint(), SketchLine_3.result(), "2*coeff") +SketchConstraintDistance_5.setName("SketchConstraintDistance_18") +SketchConstraintRadius_6 = Sketch_1.setRadius(SketchArc_4.results()[1], "(r4+4)*coeff") +SketchConstraintRadius_6.setName("SketchConstraintRadius_13") +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_4.endPoint(), SketchLine_8.result(), "2*coeff") +SketchConstraintDistance_6.setName("SketchConstraintDistance_19") +SketchArc_7 = Sketch_1.addArc(40, 0, 34.49444362769118, 2, 38, 5.505556372308819, True) +SketchArc_7.setName("SketchArc_11") +SketchArc_7.result().setName("SketchArc_11") +SketchArc_7.results()[1].setName("SketchArc_11_2") +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchArc_7.center()) +SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_66") +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchArc_7.startPoint()) +SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_67") +SketchArc_8 = Sketch_1.addArc(40, 0, 34.49444362769118, -2, 37.95784774655168, -5.490060577298436, False) +SketchArc_8.setName("SketchArc_12") +SketchArc_8.result().setName("SketchArc_12") +SketchArc_8.results()[1].setName("SketchArc_12_2") +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchArc_8.center()) +SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_68") +SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_8.startPoint()) +SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_69") +SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchArc_7.endPoint(), SketchLine_7.endPoint()) +SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_72") +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchArc_5.endPoint(), SketchLine_1.result(), "2*coeff") +SketchConstraintDistance_7.setName("SketchConstraintDistance_21") +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_5.results()[1], SketchLine_4.result()) +SketchCircle_5 = Sketch_1.addCircle(40, -13, 2.5) +SketchCircle_5.setName("SketchCircle_11") +SketchCircle_5.result().setName("SketchCircle_11") +SketchCircle_5.results()[1].setName("SketchCircle_11_2") +SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_8.result(), SketchCircle_5.center()) +SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_70") +SketchConstraintRadius_7 = Sketch_1.setRadius(SketchCircle_5.results()[1], "2.5*coeff") +SketchConstraintRadius_7.setName("SketchConstraintRadius_14") +SketchArc_9 = Sketch_1.addArc(40, -13, 35.51437699680511, -13.35942492012782, 37.95784774655168, -8.990060577298436, True) +SketchArc_9.setName("SketchArc_13") +SketchArc_9.result().setName("SketchArc_13") +SketchArc_9.results()[1].setName("SketchArc_13_2") +SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchCircle_5.center(), SketchArc_9.center()) +SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_71") +SketchLine_9 = Sketch_1.addLine(37.95784774655168, -5.490060577298436, 37.95784774655168, -8.990060577298436) +SketchLine_9.setName("SketchLine_48") +SketchLine_9.result().setName("SketchLine_48") +SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_9.startPoint()) +SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_74") +SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_9.endPoint(), SketchLine_9.endPoint()) +SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_75") +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result()) +SketchConstraintVertical_2.setName("SketchConstraintVertical_8") +SketchConstraintRadius_8 = Sketch_1.setRadius(SketchArc_9.results()[1], "(2.5+2)*coeff") +SketchConstraintRadius_8.setName("SketchConstraintRadius_15") +SketchConstraintDistance_8 = Sketch_1.setDistance(SketchCircle_5.center(), SketchLine_2.result(), "4*coeff") +SketchConstraintDistance_8.setName("SketchConstraintDistance_22") +SketchLine_10 = Sketch_1.addLine(17.5, -15, 34, -15) +SketchLine_10.setName("SketchLine_43") +SketchLine_10.result().setName("SketchLine_43") +SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_10.startPoint()) +SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_73") +SketchArc_10 = Sketch_1.addArc(34, -13.48076923076937, 34, -15, 35.51437699680511, -13.35942492012782, False) +SketchArc_10.setName("SketchArc_14") +SketchArc_10.result().setName("SketchArc_14") +SketchArc_10.results()[1].setName("SketchArc_14_2") +SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchArc_10.startPoint()) +SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_76") +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_10.result(), SketchArc_10.results()[1]) +SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchArc_9.results()[1], SketchArc_10.endPoint()) +SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_77") +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_9.results()[1], SketchArc_10.results()[1]) +SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_9.startPoint(), SketchArc_10.endPoint()) +SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_78") +SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_10.endPoint(), SketchLine_2.result(), "2*coeff") +SketchConstraintDistance_9.setName("SketchConstraintDistance_20") +SketchConstraintHorizontal_6 = Sketch_1.setHorizontal(SketchLine_10.result()) +SketchConstraintHorizontal_6.setName("SketchConstraintHorizontal_15") +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_10.result(), "16.5*coeff") +SketchConstraintLength_1.setName("SketchConstraintLength_8") +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_4.result(), "20.5*coeff") +SketchConstraintLength_2.setName("SketchConstraintLength_9") +SketchLine_11 = Sketch_1.addLine(17.5, 15, 17.5, -15) +SketchLine_11.setName("SketchLine_49") +SketchLine_11.result().setName("SketchLine_49") +SketchLine_11.setAuxiliary(True) +SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_79") +SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_11.endPoint()) +SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_80") +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_11.result()) +SketchConstraintVertical_3.setName("SketchConstraintVertical_9") +SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_5.result(), "15.6*coeff") +SketchConstraintLength_3.setName("SketchConstraintLength_10") +SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_9.result(), "3.5*coeff") +SketchConstraintLength_4.setName("SketchConstraintLength_11") +SketchConstraintMirror_1_objects = [SketchLine_4.result(), SketchArc_5.results()[1], SketchArc_4.results()[1], SketchLine_6.result(), SketchArc_7.results()[1], SketchLine_7.result(), SketchLine_5.result(), SketchArc_8.results()[1], SketchLine_9.result(), SketchArc_9.results()[1], SketchArc_10.results()[1], SketchLine_10.result(), SketchArc_6.results()[1], SketchArc_3.results()[1]] +SketchConstraintMirror_1 = Sketch_1.addMirror(SketchLine_8.result(), SketchConstraintMirror_1_objects) +[SketchLine_12, SketchArc_11, SketchArc_12, SketchLine_13, SketchArc_13, SketchLine_14, SketchLine_15, SketchArc_14, SketchLine_16, SketchArc_15, SketchArc_16, SketchLine_17, SketchArc_17, SketchArc_18] = SketchConstraintMirror_1.mirrored() +SketchArc_18.setName("SketchArc_22") +SketchArc_18.result().setName("SketchArc_22") +SketchArc_18.results()[1].setName("SketchArc_22_2") +SketchArc_17.setName("SketchArc_21") +SketchArc_17.result().setName("SketchArc_21") +SketchArc_17.results()[1].setName("SketchArc_21_2") +SketchLine_17.setName("SketchLine_55") +SketchLine_17.result().setName("SketchLine_55") +SketchArc_16.setName("SketchArc_20") +SketchArc_16.result().setName("SketchArc_20") +SketchArc_16.results()[1].setName("SketchArc_20_2") +SketchArc_15.setName("SketchArc_19") +SketchArc_15.result().setName("SketchArc_19") +SketchArc_15.results()[1].setName("SketchArc_19_2") +SketchLine_16.setName("SketchLine_54") +SketchLine_16.result().setName("SketchLine_54") +SketchArc_14.setName("SketchArc_18") +SketchArc_14.result().setName("SketchArc_18") +SketchArc_14.results()[1].setName("SketchArc_18_2") +SketchLine_15.setName("SketchLine_53") +SketchLine_15.result().setName("SketchLine_53") +SketchLine_14.setName("SketchLine_52") +SketchLine_14.result().setName("SketchLine_52") +SketchArc_13.setName("SketchArc_17") +SketchArc_13.result().setName("SketchArc_17") +SketchArc_13.results()[1].setName("SketchArc_17_2") +SketchLine_13.setName("SketchLine_51") +SketchLine_13.result().setName("SketchLine_51") +SketchArc_12.setName("SketchArc_16") +SketchArc_12.result().setName("SketchArc_16") +SketchArc_12.results()[1].setName("SketchArc_16_2") +SketchArc_11.setName("SketchArc_15") +SketchArc_11.result().setName("SketchArc_15") +SketchArc_11.results()[1].setName("SketchArc_15_2") +SketchLine_12.setName("SketchLine_50") +SketchLine_12.result().setName("SketchLine_50") +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire")], model.selection(), "h_p*coeff", 0) +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face")) +SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "Sketch_1/SketchCircle_2_2")) +SketchCircle_6 = SketchProjection_1.createdFeature() +SketchCircle_6.setName("SketchCircle_5") +SketchCircle_6.result().setName("SketchCircle_5") +SketchCircle_6.results()[1].setName("SketchCircle_5_2") +SketchProjection_2 = Sketch_2.addProjection(model.selection("EDGE", "Sketch_1/SketchCircle_4_2")) +SketchCircle_7 = SketchProjection_2.createdFeature() +SketchCircle_7.setName("SketchCircle_6") +SketchCircle_7.result().setName("SketchCircle_6") +SketchCircle_7.results()[1].setName("SketchCircle_6_2") +SketchCircle_8 = Sketch_2.addCircle(80, 0, 22) +SketchCircle_8.setName("SketchCircle_7") +SketchCircle_8.result().setName("SketchCircle_7") +SketchCircle_8.results()[1].setName("SketchCircle_7_2") +SketchConstraintCoincidence_37 = Sketch_2.setCoincident(SketchCircle_6.result(), SketchCircle_8.center()) +SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_12") +SketchConstraintRadius_9 = Sketch_2.setRadius(SketchCircle_8.results()[1], "r2*coeff") +SketchConstraintRadius_9.setName("SketchConstraintRadius_6") +model.do() +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), "10*coeff", 0) +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchCircle_3_2f_wire")], model.selection(), "p_trou1*coeff", 0, [model.selection("SOLID", "Extrusion_1_1")]) +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire_7")], model.selection(), "p2_trou1*coeff", 0, [model.selection("SOLID", "ExtrusionCut_1_1")]) +ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchCircle_4_2f")], model.selection(), "p_trou2*coeff", 0, [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "ExtrusionCut_2_1")]) +ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire_8")], model.selection(), "p2_trou*coeff", 0, [model.selection("SOLID", "ExtrusionCut_3_2")]) +Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), "22.5*coeff", False) +Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Plane_1"), "45*coeff", True) +Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2")) +SketchProjection_3 = Sketch_3.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]"), False) +SketchLine_18 = SketchProjection_3.createdFeature() +SketchLine_18.setName("SketchLine_4") +SketchLine_18.result().setName("SketchLine_4") +SketchProjection_4 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_6")) +SketchLine_19 = SketchProjection_4.createdFeature() +SketchLine_19.setName("SketchLine_5") +SketchLine_19.result().setName("SketchLine_5") +SketchProjection_5 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OY")) +SketchLine_20 = SketchProjection_5.createdFeature() +SketchLine_20.setName("SketchLine_7") +SketchLine_20.result().setName("SketchLine_7") +SketchProjection_6 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OX")) +SketchLine_21 = SketchProjection_6.createdFeature() +SketchLine_21.setName("SketchLine_8") +SketchLine_21.result().setName("SketchLine_8") +SketchLine_22 = Sketch_3.addLine(72.5, 0, 87.5, 0) +SketchLine_22.setName("SketchLine_9") +SketchLine_22.result().setName("SketchLine_9") +SketchConstraintCoincidence_38 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_21.result()) +SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_13") +SketchLine_23 = Sketch_3.addLine(87.5, 0, 87.5, -12) +SketchLine_23.setName("SketchLine_12") +SketchLine_23.result().setName("SketchLine_12") +SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_14") +SketchLine_24 = Sketch_3.addLine(72.5, -12, 72.5, 0) +SketchLine_24.setName("SketchLine_14") +SketchLine_24.result().setName("SketchLine_14") +SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_24.endPoint()) +SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_19") +SketchConstraintHorizontal_7 = Sketch_3.setHorizontal(SketchLine_22.result()) +SketchConstraintHorizontal_7.setName("SketchConstraintHorizontal_4") +SketchConstraintVertical_4 = Sketch_3.setVertical(SketchLine_24.result()) +SketchConstraintVertical_4.setName("SketchConstraintVertical_1") +SketchConstraintVertical_5 = Sketch_3.setVertical(SketchLine_23.result()) +SketchConstraintVertical_5.setName("SketchConstraintVertical_2") +SketchConstraintEqual_5 = Sketch_3.setEqual(SketchLine_24.result(), SketchLine_23.result()) +SketchConstraintEqual_5.setName("SketchConstraintEqual_3") +SketchConstraintLength_5 = Sketch_3.setLength(SketchLine_22.result(), "15*coeff") +SketchConstraintLength_5.setName("SketchConstraintLength_1") +SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_24.result(), "12*coeff") +SketchConstraintLength_6.setName("SketchConstraintLength_2") +SketchCircle_9 = Sketch_3.addCircle(80, -9, 4) +SketchCircle_9.setName("SketchCircle_8") +SketchCircle_9.result().setName("SketchCircle_8") +SketchCircle_9.results()[1].setName("SketchCircle_8_2") +SketchConstraintDistance_10 = Sketch_3.setDistance(SketchCircle_9.center(), SketchLine_22.result(), "dtrou*coeff") +SketchConstraintDistance_10.setName("SketchConstraintDistance_5") +SketchConstraintRadius_10 = Sketch_3.setRadius(SketchCircle_9.results()[1], "M8*coeff") +SketchConstraintRadius_10.setName("SketchConstraintRadius_7") +SketchConstraintDistance_11 = Sketch_3.setDistance(SketchLine_20.result(), SketchLine_24.endPoint(), "(entraxe-15/2)*coeff") +SketchConstraintDistance_11.setName("SketchConstraintDistance_7") +SketchConstraintDistance_12 = Sketch_3.setDistance(SketchCircle_9.center(), SketchLine_24.result(), "15/2*coeff") +SketchConstraintDistance_12.setName("SketchConstraintDistance_8") +SketchLine_25 = Sketch_3.addLine(85, -17, 75, -17) +SketchLine_25.setName("SketchLine_26") +SketchLine_25.result().setName("SketchLine_26") +SketchLine_26 = Sketch_3.addLine(75, -17, 72.5, -12) +SketchLine_26.setName("SketchLine_27") +SketchLine_26.result().setName("SketchLine_27") +SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint()) +SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_31") +SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchLine_24.startPoint(), SketchLine_26.endPoint()) +SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_32") +SketchLine_27 = Sketch_3.addLine(87.5, -12, 85, -17) +SketchLine_27.setName("SketchLine_28") +SketchLine_27.result().setName("SketchLine_28") +SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_23.endPoint(), SketchLine_27.startPoint()) +SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_33") +SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_25.startPoint(), SketchLine_27.endPoint()) +SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_34") +SketchConstraintHorizontal_8 = Sketch_3.setHorizontal(SketchLine_25.result()) +SketchConstraintHorizontal_8.setName("SketchConstraintHorizontal_7") +SketchConstraintEqual_6 = Sketch_3.setEqual(SketchLine_27.result(), SketchLine_26.result()) +SketchConstraintEqual_6.setName("SketchConstraintEqual_7") +SketchConstraintDistance_13 = Sketch_3.setDistance(SketchLine_22.endPoint(), SketchLine_25.result(), "17*coeff") +SketchConstraintDistance_13.setName("SketchConstraintDistance_11") +SketchConstraintDistance_14 = Sketch_3.setDistance(SketchLine_23.result(), SketchLine_25.startPoint(), "2.5*coeff") +SketchConstraintDistance_14.setName("SketchConstraintDistance_12") +model.do() +Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_3/Face-SketchLine_14r-SketchLine_27r-SketchLine_26r-SketchLine_28r-SketchLine_12r-SketchLine_9r-SketchCircle_8_2r_wire")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10"), 0, model.selection(), 0) +Smash_1 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "ExtrusionCut_4_1")]) +ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_3/Face-SketchCircle_8_2f_wire")], model.selection(), 10, 0, [model.selection("SOLID", "Smash_1_1_1")]) +ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_8_2f")], model.selection(), 10, 0, [model.selection("SOLID", "ExtrusionCut_5_1_1")]) +Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchProjection_7 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OY")) +SketchLine_28 = SketchProjection_7.createdFeature() +SketchLine_28.setName("SketchLine_17") +SketchLine_28.result().setName("SketchLine_17") +SketchProjection_8 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OX")) +SketchLine_29 = SketchProjection_8.createdFeature() +SketchLine_29.setName("SketchLine_18") +SketchLine_29.result().setName("SketchLine_18") +SketchLine_30 = Sketch_4.addLine(7.5, 0, -7.5, 0) +SketchLine_30.setName("SketchLine_19") +SketchLine_30.result().setName("SketchLine_19") +SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_29.result()) +SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_22") +SketchLine_31 = Sketch_4.addLine(-7.5, 0, -7.5, -12) +SketchLine_31.setName("SketchLine_20") +SketchLine_31.result().setName("SketchLine_20") +SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_23") +SketchLine_32 = Sketch_4.addLine(7.5, -12, 7.5, 0) +SketchLine_32.setName("SketchLine_24") +SketchLine_32.result().setName("SketchLine_24") +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_32.endPoint()) +SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_28") +SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_31.result()) +SketchConstraintVertical_6.setName("SketchConstraintVertical_3") +SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_32.result()) +SketchConstraintVertical_7.setName("SketchConstraintVertical_4") +SketchConstraintEqual_7 = Sketch_4.setEqual(SketchLine_31.result(), SketchLine_32.result()) +SketchConstraintEqual_7.setName("SketchConstraintEqual_5") +SketchConstraintMiddle_4 = Sketch_4.setMiddlePoint(SketchLine_30.result(), SketchAPI_Line(SketchLine_29).startPoint()) +SketchConstraintMiddle_4.setName("SketchConstraintMiddle_1") +SketchLine_33 = Sketch_4.addLine(-7.5, -12, -5, -17) +SketchLine_33.setName("SketchLine_21") +SketchLine_33.result().setName("SketchLine_21") +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_31.endPoint(), SketchLine_33.startPoint()) +SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_24") +SketchLine_34 = Sketch_4.addLine(-5, -17, 5, -17) +SketchLine_34.setName("SketchLine_22") +SketchLine_34.result().setName("SketchLine_22") +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_25") +SketchLine_35 = Sketch_4.addLine(5, -17, 7.5, -12) +SketchLine_35.setName("SketchLine_23") +SketchLine_35.result().setName("SketchLine_23") +SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_34.endPoint(), SketchLine_35.startPoint()) +SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_26") +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_35.endPoint()) +SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_27") +SketchConstraintEqual_8 = Sketch_4.setEqual(SketchLine_35.result(), SketchLine_33.result()) +SketchConstraintEqual_8.setName("SketchConstraintEqual_6") +SketchConstraintHorizontal_10 = Sketch_4.setHorizontal(SketchLine_34.result()) +SketchConstraintHorizontal_10.setName("SketchConstraintHorizontal_8") +SketchConstraintLength_7 = Sketch_4.setLength(SketchLine_30.result(), "15*coeff") +SketchConstraintLength_7.setName("SketchConstraintLength_4") +SketchConstraintLength_8 = Sketch_4.setLength(SketchLine_31.result(), "12*coeff") +SketchConstraintLength_8.setName("SketchConstraintLength_5") +SketchConstraintDistance_15 = Sketch_4.setDistance(SketchLine_30.result(), SketchLine_34.endPoint(), "17*coeff") +SketchConstraintDistance_15.setName("SketchConstraintDistance_9") +SketchConstraintLength_9 = Sketch_4.setLength(SketchLine_34.result(), "10*coeff") +SketchConstraintLength_9.setName("SketchConstraintLength_6") +SketchCircle_10 = Sketch_4.addCircle(0, -9, 4) +SketchCircle_10.setName("SketchCircle_9") +SketchCircle_10.result().setName("SketchCircle_9") +SketchCircle_10.results()[1].setName("SketchCircle_9_2") +SketchConstraintRadius_11 = Sketch_4.setRadius(SketchCircle_10.results()[1], "M8*coeff") +SketchConstraintRadius_11.setName("SketchConstraintRadius_8") +SketchLine_36 = Sketch_4.addLine(0, 0, 0, -12.97564207914519) +SketchLine_36.setName("SketchLine_25") +SketchLine_36.result().setName("SketchLine_25") +SketchLine_36.setAuxiliary(True) +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_28).startPoint(), SketchLine_36.startPoint()) +SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_29") +SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_36.result()) +SketchConstraintVertical_8.setName("SketchConstraintVertical_5") +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchCircle_10.center(), SketchLine_36.result()) +SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_30") +SketchConstraintDistance_16 = Sketch_4.setDistance(SketchCircle_10.center(), SketchLine_30.result(), "dtrou*coeff") +SketchConstraintDistance_16.setName("SketchConstraintDistance_10") +SketchConstraintLength_10 = Sketch_4.setLength(SketchLine_36.result(), 12.975642079145) +SketchConstraintLength_10.setName("SketchConstraintLength_7") +model.do() +Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_4/Face-SketchLine_19f-SketchLine_20f-SketchLine_21f-SketchLine_22f-SketchLine_23f-SketchLine_24f-SketchCircle_9_2r_wire")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6"), 0, model.selection(), 0) +Smash_2 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Extrusion_4_1")], [model.selection("COMPSOLID", "ExtrusionCut_6_1")]) +ExtrusionCut_7 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchCircle_9_2f")], model.selection(), 0, 10, [model.selection("SOLID", "Smash_2_1_3")]) +ExtrusionCut_8 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchCircle_9_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_7_1_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Smash_2_1_3/Modified_Face&Extrusion_1_1/From_Face")) +SketchPoint_3 = Sketch_5.addPoint(model.selection("VERTEX", "PartSet/Origin")) +SketchPoint_3.setName("SketchPoint_2") +SketchPoint_3.result().setName("SketchPoint_2") +SketchLine_37 = Sketch_5.addLine(-13.96424004376894, -17, -32, -17) +SketchLine_37.setName("SketchLine_29") +SketchLine_37.result().setName("SketchLine_29") +SketchLine_38 = Sketch_5.addLine(-32, 17, -13.96424004376904, 17) +SketchLine_38.setName("SketchLine_30") +SketchLine_38.result().setName("SketchLine_30") +SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_37.result()) +SketchConstraintHorizontal_11.setName("SketchConstraintHorizontal_10") +SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_38.result()) +SketchConstraintHorizontal_12.setName("SketchConstraintHorizontal_11") +SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OX")) +SketchLine_39.setName("SketchLine_31") +SketchLine_39.result().setName("SketchLine_31") +SketchConstraintDistance_17 = Sketch_5.setDistance(SketchLine_37.result(), SketchLine_38.startPoint(), "epaisseur*coeff") +SketchConstraintDistance_17.setName("SketchConstraintDistance_13") +SketchArc_19 = Sketch_5.addArc(0, 0, -13.964240043769, 17, -13.964240043769, -17, False) +SketchArc_19.setName("SketchArc_5") +SketchArc_19.result().setName("SketchArc_5") +SketchArc_19.results()[1].setName("SketchArc_5_2") +SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchPoint_3.coordinates(), SketchArc_19.center()) +SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_36") +SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_38.endPoint(), SketchArc_19.startPoint()) +SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_37") +SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchLine_37.result(), SketchArc_19.endPoint()) +SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_39") +SketchConstraintRadius_12 = Sketch_5.setRadius(SketchArc_19.results()[1], "r2*coeff") +SketchConstraintRadius_12.setName("SketchConstraintRadius_11") +SketchLine_40 = Sketch_5.addLine(-32, -17, -32, 17) +SketchLine_40.setName("SketchLine_32") +SketchLine_40.result().setName("SketchLine_32") +SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchLine_38.startPoint(), SketchLine_40.endPoint()) +SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_35") +SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_40.startPoint(), SketchLine_37.endPoint()) +SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_38") +SketchConstraintDistance_18 = Sketch_5.setDistance(SketchLine_40.result(), SketchArc_19.center(), "d1*coeff-entraxe*coeff") +SketchConstraintDistance_18.setName("SketchConstraintDistance_14") +SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_40.result()) +SketchConstraintVertical_9.setName("SketchConstraintVertical_6") +SketchConstraintDistance_19 = Sketch_5.setDistance(SketchLine_37.result(), SketchArc_19.center(), "epaisseur/2*coeff") +SketchConstraintDistance_19.setName("SketchConstraintDistance_15") +SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchArc_19.endPoint(), SketchLine_37.startPoint()) +SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_40") +model.do() +Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_5_2r-SketchLine_30r-SketchLine_32r-SketchLine_29r")], model.selection(), 0, "22*coeff") +Sketch_6_origin = GeomAPI_Pnt(0, 0, 0) +Sketch_6_norm = GeomAPI_Dir(0, 1, 0) +Sketch_6_dirx = GeomAPI_Dir(1, 0, 0) +Sketch_6 = model.addSketch(Part_1_doc, GeomAPI_Ax3(Sketch_6_origin, Sketch_6_dirx, Sketch_6_norm)) +SketchLine_41 = Sketch_6.addLine(-32, -17, -32, 17) +SketchLine_41.setName("SketchLine_33") +SketchLine_41.result().setName("SketchLine_33") +SketchPoint_4 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchLine_29_EndVertex")) +SketchPoint_4.setName("SketchPoint_3") +SketchPoint_4.result().setName("SketchPoint_3") +SketchConstraintCoincidence_60 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchPoint_4.result()) +SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_41") +SketchPoint_5 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchLine_30_StartVertex")) +SketchPoint_5.setName("SketchPoint_4") +SketchPoint_5.result().setName("SketchPoint_4") +SketchConstraintCoincidence_61 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchPoint_5.result()) +SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_42") +SketchPoint_6 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchPoint_2")) +SketchPoint_6.setName("SketchPoint_5") +SketchPoint_6.result().setName("SketchPoint_5") +SketchLine_42 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_30")) +SketchLine_42.setName("SketchLine_34") +SketchLine_42.result().setName("SketchLine_34") +SketchLine_43 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_29")) +SketchLine_43.setName("SketchLine_35") +SketchLine_43.result().setName("SketchLine_35") +SketchArc_20 = Sketch_6.addArc(0, 0, -20.32855135026245, 17, -20.32855135026245, -17, False) +SketchArc_20.setName("SketchArc_6") +SketchArc_20.result().setName("SketchArc_6") +SketchArc_20.results()[1].setName("SketchArc_6_2") +SketchConstraintCoincidence_62 = Sketch_6.setCoincident(SketchPoint_6.result(), SketchArc_20.center()) +SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_43") +SketchConstraintCoincidence_63 = Sketch_6.setCoincident(SketchLine_42.result(), SketchArc_20.startPoint()) +SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_44") +SketchConstraintCoincidence_64 = Sketch_6.setCoincident(SketchLine_43.result(), SketchArc_20.endPoint()) +SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_45") +SketchLine_44 = Sketch_6.addLine(-20.32855135026245, -17, -32, -17) +SketchLine_44.setName("SketchLine_36") +SketchLine_44.result().setName("SketchLine_36") +SketchConstraintCoincidence_65 = Sketch_6.setCoincident(SketchArc_20.endPoint(), SketchLine_44.startPoint()) +SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_46") +SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_44.endPoint()) +SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_47") +SketchLine_45 = Sketch_6.addLine(-20.32855135026245, 17, -32, 17) +SketchLine_45.setName("SketchLine_37") +SketchLine_45.result().setName("SketchLine_37") +SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchArc_20.startPoint(), SketchLine_45.startPoint()) +SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_48") +SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_45.endPoint()) +SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_49") +SketchConstraintRadius_13 = Sketch_6.setRadius(SketchArc_20.results()[1], "r1*coeff") +SketchConstraintRadius_13.setName("SketchConstraintRadius_10") +model.do() +Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchLine_36r-SketchArc_6_2r-SketchLine_37f-SketchLine_33r")], model.selection(), "77*coeff-h_p*coeff", 0) +Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_33")) +SketchLine_46 = Sketch_7.addLine(37, -8.881784197001252e-16, -22, 1.665334536937735e-15) +SketchLine_46.setName("SketchLine_38") +SketchLine_46.result().setName("SketchLine_38") +SketchLine_46.setAuxiliary(True) +SketchLine_47 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_33][Extrusion_6_1/To_Face]")) +SketchLine_47.setName("SketchLine_39") +SketchLine_47.result().setName("SketchLine_39") +SketchConstraintCoincidence_69 = Sketch_7.setCoincident(SketchLine_46.startPoint(), SketchLine_47.result()) +SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_50") +SketchLine_48 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_32][Extrusion_5_1/From_Face]")) +SketchLine_48.setName("SketchLine_40") +SketchLine_48.result().setName("SketchLine_40") +SketchConstraintCoincidence_70 = Sketch_7.setCoincident(SketchLine_46.endPoint(), SketchLine_48.result()) +SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_51") +SketchConstraintMiddle_5 = Sketch_7.setMiddlePoint(SketchLine_46.startPoint(), SketchLine_47.result()) +SketchConstraintMiddle_5.setName("SketchConstraintMiddle_2") +SketchConstraintMiddle_6 = Sketch_7.setMiddlePoint(SketchLine_48.result(), SketchLine_46.endPoint()) +SketchConstraintMiddle_6.setName("SketchConstraintMiddle_3") +SketchPoint_7 = Sketch_7.addPoint(17, -1.95597787542754e-16) +SketchPoint_7.setName("SketchPoint_6") +SketchPoint_7.result().setName("SketchPoint_6") +SketchConstraintCoincidence_71 = Sketch_7.setCoincident(SketchPoint_7.coordinates(), SketchLine_46.result()) +SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_52") +SketchProjection_9 = Sketch_7.addProjection(model.selection("EDGE", "PartSet/OZ")) +SketchLine_49 = SketchProjection_9.createdFeature() +SketchLine_49.setName("SketchLine_41") +SketchLine_49.result().setName("SketchLine_41") +SketchConstraintDistance_20 = Sketch_7.setDistance(SketchLine_49.result(), SketchPoint_7.coordinates(), "(h_o-h_p)*coeff") +SketchConstraintDistance_20.setName("SketchConstraintDistance_16") +SketchCircle_11 = Sketch_7.addCircle(17, -1.95597787542754e-16, 2.5) +SketchCircle_11.setName("SketchCircle_10") +SketchCircle_11.result().setName("SketchCircle_10") +SketchCircle_11.results()[1].setName("SketchCircle_10_2") +SketchConstraintCoincidence_72 = Sketch_7.setCoincident(SketchPoint_7.coordinates(), SketchCircle_11.center()) +SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_53") +SketchConstraintRadius_14 = Sketch_7.setRadius(SketchCircle_11.results()[1], "r3") +SketchConstraintRadius_14.setName("SketchConstraintRadius_12") +model.do() +ExtrusionCut_9 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Face-SketchCircle_10_2f_wire")], model.selection(), 0, "10*coeff", [model.selection("SOLID", "Extrusion_6_1")]) +ExtrusionCut_10_objects_1 = [model.selection("WIRE", "Sketch_1/Face-SketchArc_10_2f-SketchLine_43f-SketchArc_14_2f-SketchArc_13_2r-SketchLine_48r-SketchArc_12_2r-SketchLine_44r-SketchArc_7_2r_wire"), model.selection("FACE", "Sketch_1/Face-SketchCircle_11_2f"), model.selection("WIRE", "Sketch_1/Face-SketchLine_50f-SketchLine_52f-SketchArc_17_2r-SketchLine_51r-SketchArc_16_2r-SketchArc_15_2f_wire"), model.selection("FACE", "Sketch_1/Face-SketchLine_53f-SketchArc_18_2r-SketchLine_54f-SketchArc_19_2r-SketchArc_20_2f-SketchLine_55r-SketchArc_21_2f-SketchArc_22_2r"), model.selection("FACE", "Sketch_1/Face-SketchLine_45f-SketchArc_11_2r-SketchLine_46r-SketchLine_42r-SketchArc_9_2f-SketchArc_8_2r")] +ExtrusionCut_10 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_10_objects_1, model.selection(), model.selection("FACE", "ExtrusionCut_3_2/Modified_Face&Extrusion_1_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_8_1_2")]) +Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33")) +SketchLine_50 = Sketch_8.addLine(37, 14.80042035331162, 37, -14) +SketchLine_50.setName("SketchLine_56") +SketchLine_50.result().setName("SketchLine_56") +SketchLine_50.setAuxiliary(True) +SketchLine_51 = Sketch_8.addLine(model.selection("EDGE", "[ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33][Extrusion_6_1/To_Face]")) +SketchLine_51.setName("SketchLine_57") +SketchLine_51.result().setName("SketchLine_57") +SketchConstraintCoincidence_73 = Sketch_8.setCoincident(SketchLine_50.startPoint(), SketchLine_51.result()) +SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_81") +SketchConstraintCoincidence_74 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchLine_51.result()) +SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_82") +SketchLine_52 = Sketch_8.addLine(model.selection("EDGE", "[Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_36][ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33]")) +SketchLine_52.setName("SketchLine_58") +SketchLine_52.result().setName("SketchLine_58") +SketchArc_21 = Sketch_8.addArc(34, -14, 37, -14, 33.9999999583228, -17, True) +SketchArc_21.setName("SketchArc_23") +SketchArc_21.result().setName("SketchArc_23") +SketchArc_21.results()[1].setName("SketchArc_23_2") +SketchConstraintCoincidence_75 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchArc_21.startPoint()) +SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_83") +SketchConstraintTangent_6 = Sketch_8.setTangent(SketchLine_50.result(), SketchArc_21.results()[1]) +SketchConstraintCoincidence_76 = Sketch_8.setCoincident(SketchLine_52.result(), SketchArc_21.endPoint()) +SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_84") +SketchConstraintTangent_7 = Sketch_8.setTangent(SketchArc_21.results()[1], SketchLine_52.result()) +SketchLine_53 = Sketch_8.addLine(34, -17, 37, -17) +SketchLine_53.setName("SketchLine_59") +SketchLine_53.result().setName("SketchLine_59") +SketchConstraintCoincidence_77 = Sketch_8.setCoincident(SketchArc_21.endPoint(), SketchLine_53.startPoint()) +SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_85") +SketchConstraintCoincidence_78 = Sketch_8.setCoincident(SketchLine_51.startPoint(), SketchLine_53.endPoint()) +SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_86") +SketchLine_54 = Sketch_8.addLine(37, -14, 37, -17) +SketchLine_54.setName("SketchLine_60") +SketchLine_54.result().setName("SketchLine_60") +SketchConstraintCoincidence_79 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_87") +SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_51.startPoint(), SketchLine_54.endPoint()) +SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_88") +SketchConstraintRadius_15 = Sketch_8.setRadius(SketchArc_21.results()[1], "3*coeff") +SketchConstraintRadius_15.setName("SketchConstraintRadius_16") +SketchLine_55 = Sketch_8.addLine(model.selection("EDGE", "Sketch_7/SketchLine_38")) +SketchLine_55.setName("SketchLine_61") +SketchLine_55.result().setName("SketchLine_61") +SketchConstraintMirror_2_objects = [SketchArc_21.results()[1], SketchLine_54.result(), SketchLine_53.result()] +SketchConstraintMirror_2 = Sketch_8.addMirror(SketchLine_55.result(), SketchConstraintMirror_2_objects) +[SketchArc_22, SketchLine_56, SketchLine_57] = SketchConstraintMirror_2.mirrored() +SketchLine_57.setName("SketchLine_63") +SketchLine_57.result().setName("SketchLine_63") +SketchLine_56.setName("SketchLine_62") +SketchLine_56.result().setName("SketchLine_62") +SketchArc_22.setName("SketchArc_24") +SketchArc_22.result().setName("SketchArc_24") +SketchArc_22.results()[1].setName("SketchArc_24_2") +model.do() +ExtrusionCut_11 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchLine_59f-SketchLine_60r-SketchArc_23_2r"), model.selection("WIRE", "Sketch_8/Face-SketchLine_62f-SketchLine_63r-SketchArc_24_2r_wire")], model.selection(), 0, "100*coeff", [model.selection("SOLID", "ExtrusionCut_9_1")]) +Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29")) +SketchLine_58 = Sketch_9.addLine(-32, -19, -32, -3.575047476349699) +SketchLine_58.setName("SketchLine_64") +SketchLine_58.result().setName("SketchLine_64") +SketchLine_58.setAuxiliary(True) +SketchLine_59 = Sketch_9.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_32][Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29]")) +SketchLine_59.setName("SketchLine_65") +SketchLine_59.result().setName("SketchLine_65") +SketchConstraintCoincidence_81 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchLine_59.result()) +SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_89") +SketchConstraintCoincidence_82 = Sketch_9.setCoincident(SketchLine_58.endPoint(), SketchLine_59.result()) +SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_90") +SketchLine_60 = Sketch_9.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29][Extrusion_5_1/From_Face]")) +SketchLine_60.setName("SketchLine_66") +SketchLine_60.result().setName("SketchLine_66") +SketchArc_23 = Sketch_9.addArc(-29, -19, -32, -19, -29.00002201340376, -22, False) +SketchArc_23.setName("SketchArc_25") +SketchArc_23.result().setName("SketchArc_25") +SketchArc_23.results()[1].setName("SketchArc_25_2") +SketchConstraintCoincidence_83 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchArc_23.startPoint()) +SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_91") +SketchConstraintTangent_8 = Sketch_9.setTangent(SketchLine_58.result(), SketchArc_23.results()[1]) +SketchConstraintCoincidence_84 = Sketch_9.setCoincident(SketchLine_60.result(), SketchArc_23.endPoint()) +SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_92") +SketchConstraintTangent_9 = Sketch_9.setTangent(SketchArc_23.results()[1], SketchLine_60.result()) +SketchLine_61 = Sketch_9.addLine(-32, -19, -32, -22) +SketchLine_61.setName("SketchLine_67") +SketchLine_61.result().setName("SketchLine_67") +SketchConstraintCoincidence_85 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchLine_61.startPoint()) +SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_93") +SketchConstraintCoincidence_86 = Sketch_9.setCoincident(SketchLine_59.startPoint(), SketchLine_61.endPoint()) +SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_94") +SketchLine_62 = Sketch_9.addLine(-32, -22, -29.00002201340376, -22) +SketchLine_62.setName("SketchLine_68") +SketchLine_62.result().setName("SketchLine_68") +SketchConstraintCoincidence_87 = Sketch_9.setCoincident(SketchLine_59.startPoint(), SketchLine_62.startPoint()) +SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_95") +SketchConstraintCoincidence_88 = Sketch_9.setCoincident(SketchArc_23.endPoint(), SketchLine_62.endPoint()) +SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_96") +SketchConstraintRadius_16 = Sketch_9.setRadius(SketchArc_23.results()[1], "3*coeff") +SketchConstraintRadius_16.setName("SketchConstraintRadius_17") +model.do() +ExtrusionCut_12 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_9/Face-SketchLine_67f-SketchLine_68f-SketchArc_25_2r")], model.selection(), 0, "100*coeff", [model.selection("SOLID", "Extrusion_5_1")]) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Part_1, 1) +model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [6]) diff --git a/test.compatibility/plug.py b/test.compatibility/plug.py new file mode 100644 index 000000000..4d4586d12 --- /dev/null +++ b/test.compatibility/plug.py @@ -0,0 +1,393 @@ +# Copyright (C) 2017-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 +# + +from SketchAPI import * +from GeomAPI import GeomAPI_Shape + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() + +Param_Width = model.addParameter(Part_1_doc, "Width", "64") +Param_Depth = model.addParameter(Part_1_doc, "Depth", "33") +Param_D1out = model.addParameter(Part_1_doc, "D1_out", "38") +Param_D2out = model.addParameter(Part_1_doc, "D2_out", "33") +Param_D3out = model.addParameter(Part_1_doc, "D3_out", "30") +Param_D4out = model.addParameter(Part_1_doc, "D4_out", "20") +Param_D1in = model.addParameter(Part_1_doc, "D1_in", "21") +Param_D2in = model.addParameter(Part_1_doc, "D2_in", "5") +Param_ChannelDepth = model.addParameter(Part_1_doc, "Channel_Depth", "1.3") +Param_ChannelWidth = model.addParameter(Part_1_doc, "Channel_Width", "1.5") +Param_Drill1Loc = model.addParameter(Part_1_doc, "Drill1_Loc", "7.5") +Param_Drill1Radius = model.addParameter(Part_1_doc, "Drill1_Radius", "2.25") +Param_Drill1Holder = model.addParameter(Part_1_doc, "Drill1Holder_Width", "8") +Param_Drill2Loc = model.addParameter(Part_1_doc, "Drill2_Loc", "6.5") +Param_Drill2Radius = model.addParameter(Part_1_doc, "Drill2_Radius", "1.4") +Param_Drill2InnerRadius = model.addParameter(Part_1_doc, "Drill2_InnerRadius", "0.5") +Param_Drill2DepthMin = model.addParameter(Part_1_doc, "Drill2_DepthMin", "6.5") +Param_Drill2DepthMax = model.addParameter(Part_1_doc, "Drill2_DepthMax", "7.5") +Param_Chamfer = model.addParameter(Part_1_doc, "Chamfer", "0.5") +Param_Fillet1 = model.addParameter(Part_1_doc, "Fillet1", "5") +Param_Fillet2 = model.addParameter(Part_1_doc, "Fillet2", "0.3") +Param_Fillet3 = model.addParameter(Part_1_doc, "Fillet3", "0.5") +Param_SlotWidth = model.addParameter(Part_1_doc, "Slot_Width", "8") + +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(0, 3, 0.5, 2.5) +SketchLine_2 = Sketch_1.addLine(0.5, 2.5, 9.5, 2.5) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchLine_3 = Sketch_1.addLine(9.5, 2.5, 9.5, 3.1) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint()) +SketchLine_4 = Sketch_1.addLine(9.5, 3.1, 24.86574363608673, 3.1) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchLine_5 = Sketch_1.addLine(24.86574363608673, 3.1, 26, 3.3) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint()) +SketchLine_6 = Sketch_1.addLine(26, 3.3, 26, 5.5) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint()) +SketchLine_7 = Sketch_1.addLine(31, 10.5, 64, 10.5) +SketchLine_8 = Sketch_1.addLine(64, 10.5, 64, 15) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint()) +SketchLine_9 = Sketch_1.addLine(64, 15, 61, 15) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint()) +SketchLine_10 = Sketch_1.addLine(61, 15, 61, 12.75) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint()) +SketchLine_11 = Sketch_1.addLine(61, 12.75, 58, 12.75) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint()) +SketchLine_12 = Sketch_1.addLine(58, 12.75, 58, 14) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint()) +SketchLine_13 = Sketch_1.addLine(58, 14, 57, 15) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint()) +SketchLine_14 = Sketch_1.addLine(57, 15, 54, 15) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint()) +SketchLine_15 = Sketch_1.addLine(54, 15, 52.5, 16.5) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint()) +SketchLine_16 = Sketch_1.addLine(52.5, 16.5, 35, 16.5) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint()) +SketchLine_17 = Sketch_1.addLine(35, 16.5, 34, 15.5) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint()) +SketchLine_18 = Sketch_1.addLine(34, 15.5, 32, 15.5) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_17.endPoint(), SketchLine_18.startPoint()) +SketchLine_19 = Sketch_1.addLine(32, 15.5, 32, 19) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint()) +SketchLine_20 = Sketch_1.addLine(32, 19, 22.5, 19) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchLine_21 = Sketch_1.addLine(22.5, 19, 22.5, 13) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_20.endPoint(), SketchLine_21.startPoint()) +SketchLine_22 = Sketch_1.addLine(22.5, 13, 22, 12.5) +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_21.endPoint(), SketchLine_22.startPoint()) +SketchLine_23 = Sketch_1.addLine(22, 12.5, 22, 10) +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint()) +SketchLine_24 = Sketch_1.addLine(22, 10, 20, 10) +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_23.endPoint(), SketchLine_24.startPoint()) +SketchLine_25 = Sketch_1.addLine(20, 10, 20, 8.7) +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_24.endPoint(), SketchLine_25.startPoint()) +SketchLine_26 = Sketch_1.addLine(20, 8.7, 18.5, 8.7) +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint()) +SketchLine_27 = Sketch_1.addLine(18.5, 8.7, 18.5, 10) +SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_26.endPoint(), SketchLine_27.startPoint()) +SketchLine_28 = Sketch_1.addLine(18.5, 10, 10.5, 10) +SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchLine_27.endPoint(), SketchLine_28.startPoint()) +SketchLine_29 = Sketch_1.addLine(10.5, 10, 10.5, 8.7) +SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint()) +SketchLine_30 = Sketch_1.addLine(10.5, 8.7, 9, 8.7) +SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchLine_29.endPoint(), SketchLine_30.startPoint()) +SketchLine_31 = Sketch_1.addLine(9, 8.7, 9, 10) +SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) +SketchLine_32 = Sketch_1.addLine(9, 10, 0.5, 10) +SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint()) +SketchLine_33 = Sketch_1.addLine(0.5, 10, 0, 9.5) +SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint()) +SketchLine_34 = Sketch_1.addLine(0, 9.5, 0, 3) +SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint()) +SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_34.endPoint()) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result()) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_4.result()) +SketchConstraintAngle_1 = Sketch_1.setAngleComplementary(SketchLine_4.result(), SketchLine_5.result(), 10) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_6.result()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_7.result()) +SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "PartSet/Origin"), False) +SketchPoint_1 = SketchProjection_1.createdFeature() +SketchConstraintDistanceVertical_1 = Sketch_1.setVerticalDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_1.endPoint(), "D2_in/2") +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_8.result()) +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_9.result()) +SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_16.result(), SketchLine_7.result()) +SketchConstraintAngle_2 = Sketch_1.setAngleComplementary(SketchLine_15.result(), SketchLine_16.result(), 45) +SketchConstraintAngle_3 = Sketch_1.setAngleComplementary(SketchLine_13.result(), SketchLine_14.result(), 45) +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_12.result()) +SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_10.result()) +SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_11.result()) +SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_17.result(), SketchLine_15.result()) +SketchConstraintVertical_6 = Sketch_1.setVertical(SketchLine_19.result()) +SketchConstraintHorizontal_6 = Sketch_1.setHorizontal(SketchLine_18.result()) +SketchConstraintParallel_2 = Sketch_1.setParallel(SketchLine_20.result(), SketchLine_7.result()) +SketchConstraintParallel_3 = Sketch_1.setParallel(SketchLine_21.result(), SketchLine_19.result()) +SketchConstraintVertical_7 = Sketch_1.setVertical(SketchLine_23.result()) +SketchConstraintHorizontal_7 = Sketch_1.setHorizontal(SketchLine_24.result()) +SketchConstraintCollinear_1 = Sketch_1.setCollinear(SketchLine_28.result(), SketchLine_24.result()) +SketchConstraintCollinear_2 = Sketch_1.setCollinear(SketchLine_32.result(), SketchLine_28.result()) +SketchConstraintVertical_8 = Sketch_1.setVertical(SketchLine_34.result()) +SketchConstraintHorizontal_8 = Sketch_1.setHorizontal(SketchLine_30.result()) +SketchConstraintCollinear_3 = Sketch_1.setCollinear(SketchLine_26.result(), SketchLine_30.result()) +SketchConstraintVertical_9 = Sketch_1.setVertical(SketchLine_31.result()) +SketchConstraintVertical_10 = Sketch_1.setVertical(SketchLine_29.result()) +SketchConstraintVertical_11 = Sketch_1.setVertical(SketchLine_27.result()) +SketchConstraintVertical_12 = Sketch_1.setVertical(SketchLine_25.result()) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_24.result(), "D4_out/2", True) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_30.result(), "D4_out/2-Channel_Depth", True) +SketchConstraintDistanceHorizontal_1 = Sketch_1.setHorizontalDistance(SketchLine_34.endPoint(), SketchLine_1.endPoint(), "Chamfer") +SketchConstraintDistanceVertical_2 = Sketch_1.setVerticalDistance(SketchLine_1.endPoint(), SketchLine_1.startPoint(), "Chamfer") +SketchConstraintDistanceHorizontal_2 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_33.startPoint(), "Chamfer") +SketchConstraintDistanceVertical_3 = Sketch_1.setVerticalDistance(SketchLine_34.startPoint(), SketchLine_33.startPoint(), "Chamfer") +SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OX"), False) +SketchLine_35 = SketchProjection_2.createdFeature() +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_35.result(), "D2_in/2+0.6", True) +SketchConstraintDistanceHorizontal_3 = Sketch_1.setHorizontalDistance(SketchLine_3.endPoint(), SketchLine_5.endPoint(), "Depth/2") +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_5.endPoint(), SketchLine_35.result(), "D2_in/2+0.8", True) +SketchArc_1 = Sketch_1.addArc(31, 5.5, 31, 10.5, 26, 5.5, False) +SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_6.endPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_7.result()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_6.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "Fillet1") +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_7.endPoint(), SketchLine_35.result(), "D1_in/2", True) +SketchConstraintAngle_4 = Sketch_1.setAngleComplementary(SketchLine_23.result(), SketchLine_22.result(), 45) +SketchConstraintCollinear_4 = Sketch_1.setCollinear(SketchLine_14.result(), SketchLine_9.result()) +SketchConstraintDistanceHorizontal_4 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_23.startPoint(), "Width/32*11") +SketchConstraintDistanceHorizontal_5 = Sketch_1.setHorizontalDistance(SketchLine_23.startPoint(), SketchLine_22.startPoint(), "Chamfer") +SketchConstraintDistanceHorizontal_6 = Sketch_1.setHorizontalDistance(SketchLine_15.startPoint(), SketchLine_8.endPoint(), 10) +SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_8.endPoint(), SketchLine_35.result(), "D3_out/2", True) +SketchConstraintDistance_7 = Sketch_1.setDistance(SketchLine_11.startPoint(), SketchLine_35.result(), "(D3_out+D1_in)/4", True) +SketchConstraintDistanceHorizontal_7 = Sketch_1.setHorizontalDistance(SketchLine_10.startPoint(), SketchLine_8.endPoint(), 3) +SketchConstraintDistanceHorizontal_8 = Sketch_1.setHorizontalDistance(SketchLine_12.endPoint(), SketchLine_10.startPoint(), 3) +SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_30.result(), SketchLine_26.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_26.result(), "Channel_Width") +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_28.result(), "Drill1Holder_Width") +SketchConstraintDistanceHorizontal_9 = Sketch_1.setHorizontalDistance(SketchArc_1.center(), SketchLine_7.endPoint(), "Depth") +SketchConstraintDistance_8 = Sketch_1.setDistance(SketchLine_16.startPoint(), SketchLine_35.result(), "D2_out/2", True) +SketchConstraintDistanceHorizontal_10 = Sketch_1.setHorizontalDistance(SketchLine_20.startPoint(), SketchLine_8.endPoint(), "Width/2") +SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_17.endPoint(), SketchLine_35.result(), "D2_out/2-1", True) +SketchConstraintDistanceHorizontal_11 = Sketch_1.setHorizontalDistance(SketchLine_20.startPoint(), SketchLine_17.endPoint(), 2) +SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_35).startPoint(), SketchLine_34.result()) +SketchConstraintDistance_10 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_35).startPoint(), SketchLine_20.result(), "D1_out/2", True) +SketchPoint_2 = Sketch_1.addPoint(14.5, 10) +SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchLine_28.result()) +SketchConstraintMiddle_1 = Sketch_1.setMiddlePoint(SketchPoint_2.coordinates(), SketchLine_28.result()) +SketchConstraintDistanceHorizontal_12 = Sketch_1.setHorizontalDistance(SketchPoint_2.coordinates(), SketchLine_24.startPoint(), "Drill1_Loc") +SketchConstraintDistanceHorizontal_13 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_9.startPoint(), "Width") +SketchConstraintDistanceHorizontal_14 = Sketch_1.setHorizontalDistance(SketchLine_14.startPoint(), SketchLine_12.endPoint(), 1) +SketchConstraintDistance_11 = Sketch_1.setDistance(SketchLine_23.startPoint(), SketchLine_35.result(), "(D4_out+D2_in)/2", True) +model.do() +# check Sketch_1 +model.checkSketch(Sketch_1, 0) + +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection("EDGE", "PartSet/OX"), 360, 0) + +Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "PartSet/OY"), model.selection("VERTEX", "Sketch_1/SketchPoint_2"), True) + +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) +SketchProjection_3 = Sketch_2.addProjection(model.selection("VERTEX", "Sketch_1/SketchPoint_2"), False) +SketchPoint_3 = SketchProjection_3.createdFeature() +SketchProjection_4 = Sketch_2.addProjection(model.selection("EDGE", "([Revolution_1_1/Generated_Face&Sketch_1/SketchArc_1_2][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_7])([Revolution_1_1/Generated_Face&Sketch_1/SketchLine_7][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_8])"), False) +SketchLine_36 = SketchProjection_4.createdFeature() +SketchCircle_1 = Sketch_2.addCircle(14.5, 0, 2.25) +SketchConstraintCoincidence_38 = Sketch_2.setCoincident(SketchPoint_3.result(), SketchCircle_1.center()) +SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_1.results()[1], "Drill1_Radius") +model.do() +# check Sketch_2 +model.checkSketch(Sketch_2, 0) + +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_1_2f")], model.selection(), model.selection("FACE", "PartSet/XOZ"), 0, model.selection(), 0, [model.selection("SOLID", "Revolution_1_1")]) + +Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Revolution_1_1/Generated_Face&Sketch_1/SketchLine_21][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_20]")], "Fillet1") + +Fillet_2 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_31"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_29"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_27"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_25")], "Fillet2") + +Fillet_3 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_19")], "Fillet3") + +Fillet_4 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_11")], "Fillet3") + +Fillet_5 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_9")], "Fillet2") + +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [], model.selection(), "D4_out/2", "D4_out/2", [model.selection("SOLID", "Fillet_5_1")]) +Sketch_3 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchLine_37 = Sketch_3.addLine(9, -9.914857089637437, 9, -18.52898094212539) +SketchLine_38 = Sketch_3.addLine(9, -18.52898094212539, -2.5, -18.52898094212539) +SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_37.endPoint(), SketchLine_38.startPoint()) +SketchLine_39 = Sketch_3.addLine(-2.5, -18.52898094212539, -2.5, -10.52898094212539) +SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_38.endPoint(), SketchLine_39.startPoint()) +SketchLine_40 = Sketch_3.addLine(-2.5, -10.52898094212539, 7.788407623149843, -8.714857089637437) +SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint()) +SketchLine_41 = Sketch_3.addLine(7.788407623149843, -8.714857089637437, 8, -9.914857089637437) +SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint()) +SketchLine_42 = Sketch_3.addLine(8, -9.914857089637437, 9, -9.914857089637437) +SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint()) +SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_42.endPoint(), SketchLine_37.startPoint()) +SketchProjection_5 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OX"), False) +SketchLine_43 = SketchProjection_5.createdFeature() +SketchProjection_6 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_33"), False) +SketchLine_44 = SketchProjection_6.createdFeature() +SketchProjection_7 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_33"), False) +SketchLine_45 = SketchProjection_7.createdFeature() +SketchProjection_8 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_33"), False) +SketchLine_46 = SketchProjection_8.createdFeature() +SketchProjection_9 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_32"), False) +SketchLine_47 = SketchProjection_9.createdFeature() +SketchProjection_10 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_32"), False) +SketchLine_48 = SketchProjection_10.createdFeature() +SketchProjection_11 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_32"), False) +SketchLine_49 = SketchProjection_11.createdFeature() +SketchConstraintVertical_13 = Sketch_3.setVertical(SketchLine_37.result()) +SketchConstraintVertical_14 = Sketch_3.setVertical(SketchLine_39.result()) +SketchConstraintHorizontal_9 = Sketch_3.setHorizontal(SketchLine_38.result()) +SketchConstraintHorizontal_10 = Sketch_3.setHorizontal(SketchLine_42.result()) +SketchConstraintPerpendicular_2 = Sketch_3.setPerpendicular(SketchLine_40.result(), SketchLine_41.result()) +SketchConstraintDistanceVertical_4 = Sketch_3.setVerticalDistance(SketchLine_42.startPoint(), SketchLine_40.endPoint(), 1.2) +SketchConstraintMirror_1 = Sketch_3.addMirror(SketchLine_43.result(), [SketchLine_46.result(), SketchLine_49.result()]) +[SketchLine_50, SketchLine_51] = SketchConstraintMirror_1.mirrored() +SketchLine_50.setAuxiliary(True) +SketchLine_51.setAuxiliary(True) +SketchConstraintCoincidence_45 = Sketch_3.setCoincident(SketchAPI_Line(SketchLine_51).startPoint(), SketchLine_37.result()) +SketchConstraintCoincidence_46 = Sketch_3.setCoincident(SketchAPI_Line(SketchLine_50).startPoint(), SketchLine_40.result()) +SketchConstraintAngle_5 = Sketch_3.setAngle(SketchLine_51.result(), SketchLine_40.result(), 10) +SketchConstraintDistanceHorizontal_15 = Sketch_3.setHorizontalDistance(SketchAPI_Line(SketchLine_50).endPoint(), SketchLine_42.startPoint(), "Slot_Width") +SketchConstraintDistanceVertical_5 = Sketch_3.setVerticalDistance(SketchLine_39.startPoint(), SketchLine_39.endPoint(), 8) +SketchConstraintDistanceHorizontal_16 = Sketch_3.setHorizontalDistance(SketchLine_39.endPoint(), SketchAPI_Line(SketchLine_50).startPoint(), 3) +ExtrusionCut_2.setNestedSketch(Sketch_3) +model.do() +# check Sketch_3 +model.checkSketch(Sketch_3, 0) + +Folder_1 = model.addFolder(Part_1_doc, Fillet_1, Fillet_5) + +Sketch_4 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchLine_52 = Sketch_4.addLine(28.5, -19.5, 28.5, 0) +SketchProjection_12 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OX"), False) +SketchLine_53 = SketchProjection_12.createdFeature() +SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_52.endPoint(), SketchLine_53.result()) +SketchLine_54 = Sketch_4.addLine(28.5, 0, 29, 0) +SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint()) +SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_54.endPoint(), SketchLine_53.result()) +SketchLine_55 = Sketch_4.addLine(29, 0, 29, -11.5) +SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_54.endPoint(), SketchLine_55.startPoint()) +SketchLine_56 = Sketch_4.addLine(28.5, -19.5, 30.4, -19.5) +SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_52.startPoint(), SketchLine_56.startPoint()) +SketchLine_57 = Sketch_4.addLine(30.4, -19.5, 29.4, -18.5) +SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_56.endPoint(), SketchLine_57.startPoint()) +SketchLine_58 = Sketch_4.addLine(29.4, -18.5, 29.4, -12.5) +SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_57.endPoint(), SketchLine_58.startPoint()) +SketchArc_2 = Sketch_4.addArc(27.95, -12.5, 29.4, -12.5, 29, -11.5, False) +SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchLine_58.endPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchLine_55.endPoint(), SketchArc_2.endPoint()) +SketchConstraintVertical_15 = Sketch_4.setVertical(SketchLine_52.result()) +SketchConstraintVertical_16 = Sketch_4.setVertical(SketchLine_55.result()) +SketchConstraintVertical_17 = Sketch_4.setVertical(SketchLine_58.result()) +SketchConstraintHorizontal_11 = Sketch_4.setHorizontal(SketchLine_56.result()) +SketchProjection_13 = Sketch_4.addProjection(model.selection("VERTEX", "Sketch_1/SketchLine_23_EndVertex"), False) +SketchPoint_4 = SketchProjection_13.createdFeature() +SketchConstraintDistanceHorizontal_17 = Sketch_4.setHorizontalDistance(SketchAPI_Point(SketchPoint_4).coordinates(), SketchLine_52.endPoint(), "Drill2_Loc") +SketchConstraintDistanceHorizontal_18 = Sketch_4.setHorizontalDistance(SketchLine_54.startPoint(), SketchLine_54.endPoint(), "Drill2_InnerRadius") +SketchProjection_14 = Sketch_4.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_20"), False) +SketchLine_59 = SketchProjection_14.createdFeature() +SketchConstraintAngle_6 = Sketch_4.setAngle(SketchLine_57.result(), SketchLine_56.result(), 45) +SketchConstraintMirror_2 = Sketch_4.addMirror(SketchLine_53.result(), [SketchLine_59.result()]) +[SketchLine_60] = SketchConstraintMirror_2.mirrored() +SketchLine_60.setAuxiliary(True) +SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_2.endPoint(), SketchLine_60.result(), "Drill2_DepthMax", True) +SketchConstraintDistance_13 = Sketch_4.setDistance(SketchLine_58.endPoint(), SketchLine_60.result(), "Drill2_DepthMin", True) +SketchConstraintDistance_14 = Sketch_4.setDistance(SketchLine_57.endPoint(), SketchLine_60.result(), 0.5, True) +SketchConstraintTangent_3 = Sketch_4.setTangent(SketchLine_58.result(), SketchArc_2.results()[1]) +SketchPoint_5 = Sketch_4.addPoint(29.9, -19) +SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchPoint_5.coordinates(), SketchLine_60.result()) +SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchPoint_5.coordinates(), SketchLine_57.result()) +SketchConstraintDistance_15 = Sketch_4.setDistance(SketchPoint_5.coordinates(), SketchLine_52.result(), "Drill2_Radius", True) +SketchConstraintDistanceVertical_6 = Sketch_4.setVerticalDistance(SketchLine_56.endPoint(), SketchPoint_5.coordinates(), 0.5) +model.do() +# check Sketch_4 +model.checkSketch(Sketch_4, 0) + +RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchLine_56f-SketchLine_57f-SketchLine_58f-SketchArc_2_2f-SketchLine_55r-SketchLine_54r-SketchLine_52r")], model.selection("EDGE", "Sketch_4/SketchLine_52"), 360, 0, [model.selection("SOLID", "ExtrusionCut_2_1")]) + +RevolutionCut_2 = model.addRevolutionCut(Part_1_doc, [], model.selection("EDGE", "PartSet/OX"), 360, 0, [model.selection("SOLID", "RevolutionCut_1_1")]) +Sketch_5 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) +SketchLine_61 = Sketch_5.addLine(63.5, 10.5, 64, 10.5) +SketchLine_61.setAuxiliary(True) +SketchProjection_15 = Sketch_5.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_7"), False) +SketchLine_62 = SketchProjection_15.createdFeature() +SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_62.result()) +SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchAPI_Line(SketchLine_62).endPoint(), SketchLine_61.endPoint()) +SketchLine_63 = Sketch_5.addLine(64.25, 10.25, 64.25, 11.25) +SketchLine_64 = Sketch_5.addLine(64.25, 11.25, 63.25, 10.25) +SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint()) +SketchConstraintLength_3 = Sketch_5.setLength(SketchLine_61.result(), "Chamfer") +SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_64.result()) +SketchLine_65 = Sketch_5.addLine(63.25, 10.25, 64.25, 10.25) +SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_64.endPoint(), SketchLine_65.startPoint()) +SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_63.startPoint(), SketchLine_65.endPoint()) +SketchConstraintEqual_2 = Sketch_5.setEqual(SketchLine_65.result(), SketchLine_63.result()) +SketchConstraintVertical_18 = Sketch_5.setVertical(SketchLine_63.result()) +SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_65.result()) +SketchConstraintDistanceVertical_7 = Sketch_5.setVerticalDistance(SketchLine_65.startPoint(), SketchLine_61.startPoint(), "Chamfer/2") +SketchConstraintDistanceVertical_8 = Sketch_5.setVerticalDistance(SketchLine_61.startPoint(), SketchLine_63.endPoint(), "Chamfer*1.5") +RevolutionCut_2.setNestedSketch(Sketch_5) +model.do() +# check Sketch_5 +model.checkSketch(Sketch_5, 0) + +Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), 0, False) +Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "RevolutionCut_2_1"), model.selection("FACE", "Plane_2")]) + +Result = model.addRemoveSubShapes(Part_1_doc, model.selection("COMPSOLID", "Partition_1_1")) +Result.setSubShapesToRemove([model.selection("SOLID", "Partition_1_1_2")]) +Result.result().setName("Plug") +# check Remove_SubShapes_1 + +model.do() + +# change parameters of the model +Param_Width.setValue(100) +model.do() + +# do small steps in parameter here to avoid "conflicting constraints" message coming from PlaneGCS +Param_Depth.setValue(40) +model.do() +Param_Depth.setValue(50) +model.do() +Param_Depth.setValue(55) +model.do() + +Param_Drill1Loc.setValue(15) +model.do() + +Param_Drill1Holder.setValue(16) +model.do() + +Param_Drill2Loc.setValue(7.5) +model.do() + +Param_Drill2Radius.setValue(1.9) +model.do() + +Param_Fillet1.setValue(3) +model.do() + +model.end() diff --git a/test.compatibility/sprocket.py b/test.compatibility/sprocket.py new file mode 100644 index 000000000..01ae55f06 --- /dev/null +++ b/test.compatibility/sprocket.py @@ -0,0 +1,223 @@ +# Copyright (C) 2018-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 +# + +from SketchAPI import * +from GeomAPI import GeomAPI_Shape + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() + +Param_m = model.addParameter(Part_1_doc, "m", "1") +Param_Z = model.addParameter(Part_1_doc, "Z", "30") +model.addParameter(Part_1_doc, "d", "m*Z") +model.addParameter(Part_1_doc, "da", "d+2*m") +model.addParameter(Part_1_doc, "df", "d-2.5*m") +model.addParameter(Part_1_doc, "ha", "m") +model.addParameter(Part_1_doc, "hf", "1.25*m") +model.addParameter(Part_1_doc, "h", "2.25*m") +model.addParameter(Part_1_doc, "e", "d/8.") +model.addParameter(Part_1_doc, "angle_L", "360/(d*2)") +model.addParameter(Part_1_doc, "R", "d*(13/16)") +model.addParameter(Part_1_doc, "r_1", "d/4") +model.addParameter(Part_1_doc, "r_2", "d/10") +model.addParameter(Part_1_doc, "r_3", "d/40") +model.addParameter(Part_1_doc, "R_1", "d*(3/20)") +model.addParameter(Part_1_doc, "ep", "1.5") +model.addParameter(Part_1_doc, "angle_1", "15") +model.addParameter(Part_1_doc, "angle_2", "21") +Param_NB = model.addParameter(Part_1_doc, "NB", "6") + +Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("YOZ")) +SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "PartSet/Origin"), False) +SketchPoint_1 = SketchProjection_1.createdFeature() +SketchCircle_1 = Sketch_1.addCircle(0, 0, 30) +SketchCircle_1.setAuxiliary(True) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchCircle_1.center()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchCircle_1.results()[1], "d") +SketchLine_1 = Sketch_1.addLine(-1.83495963955651, 27.43871212577585, -1.570078687288315, 29.95888604263722) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchCircle_1.results()[1]) +SketchLine_2 = Sketch_1.addLine(-1.570078687288315, 29.95888604263722, -0.7903152816259503, 31.99023916377664) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint()) +SketchLine_3 = Sketch_1.addLine(1.834959639556546, 27.43871212577585, 1.570078687288318, 29.95888604263721) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchCircle_1.results()[1]) +SketchLine_4 = Sketch_1.addLine(1.570078687288318, 29.95888604263721, 0.7903152816259467, 31.99023916377664) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) +SketchCircle_2 = Sketch_1.addCircle(0, 0, 27.5) +SketchCircle_2.setAuxiliary(True) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchAPI_Point(SketchPoint_1).coordinates(), SketchCircle_2.center()) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchCircle_2.results()[1]) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchCircle_2.results()[1]) +SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_2.result(), SketchLine_4.result()) +SketchArc_1 = Sketch_1.addArc(0, 0, 0.7903152816259467, 31.99023916377664, -0.7903152816259503, 31.99023916377664, False) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchAPI_Point(SketchPoint_1).coordinates(), SketchArc_1.center()) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchArc_1.startPoint()) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchArc_1.endPoint()) +SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OZ"), False) +SketchLine_5 = SketchProjection_2.createdFeature() +SketchConstraintAngle_1 = Sketch_1.setAngleComplementary(SketchLine_2.result(), SketchLine_5.result(), "angle_2") +SketchConstraintAngle_2 = Sketch_1.setAngle(SketchLine_3.result(), SketchLine_4.result(), "180+angle_1") +SketchConstraintEqual_2 = Sketch_1.setEqual(SketchLine_3.result(), SketchLine_1.result()) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_1.results()[1], "da") +SketchConstraintRadius_3 = Sketch_1.setRadius(SketchCircle_2.results()[1], "df") +SketchLine_6 = Sketch_1.addLine(1.570078687288318, 29.95888604263721, 0, 0) +SketchLine_6.setAuxiliary(True) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_6.endPoint()) +SketchLine_7 = Sketch_1.addLine(-1.570078687288315, 29.95888604263722, 0, 0) +SketchLine_7.setAuxiliary(True) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_7.endPoint()) +SketchConstraintAngle_3 = Sketch_1.setAngle(SketchLine_6.result(), SketchLine_5.result(), "angle_L/2") +SketchConstraintAngle_4 = Sketch_1.setAngle(SketchLine_5.result(), SketchLine_7.result(), "angle_L/2") +SketchMultiRotation_1 = Sketch_1.addRotation([SketchLine_3.result()], SketchAPI_Line(SketchLine_5).startPoint(), "360/Z", 2) +[SketchLine_8] = SketchMultiRotation_1.rotated() +SketchLine_8.setAuxiliary(True) +SketchArc_2 = Sketch_1.addArc(0, 0, -1.83495963955651, 27.43871212577585, -3.909967663056207, 27.22061999429577, False) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchAPI_Point(SketchPoint_1).coordinates(), SketchArc_2.center()) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_2.startPoint()) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_8.result(), SketchArc_2.endPoint()) +SketchProjection_3 = Sketch_1.addProjection(model.selection("VERTEX", "PartSet/Origin"), False) +SketchPoint_2 = SketchProjection_3.createdFeature() +SketchMultiRotation_2_objects = [SketchArc_2.results()[1], SketchLine_1.result(), SketchLine_2.result(), SketchArc_1.results()[1], SketchLine_4.result(), SketchLine_3.result()] +SketchMultiRotation_2 = Sketch_1.addRotation(SketchMultiRotation_2_objects, SketchAPI_Point(SketchPoint_2).coordinates(), "360/Z", "Z") +[SketchArc_3, SketchArc_4, SketchArc_5, SketchArc_6, SketchArc_7, SketchArc_8, SketchArc_9, SketchArc_10, SketchArc_11, SketchArc_12, SketchArc_13, SketchArc_14, SketchArc_15, SketchArc_16, SketchArc_17, SketchArc_18, SketchArc_19, SketchArc_20, SketchArc_21, SketchArc_22, SketchArc_23, SketchArc_24, SketchArc_25, SketchArc_26, SketchArc_27, SketchArc_28, SketchArc_29, SketchArc_30, SketchArc_31, SketchLine_9, SketchLine_10, SketchLine_11, SketchLine_12, SketchLine_13, SketchLine_14, SketchLine_15, SketchLine_16, SketchLine_17, SketchLine_18, SketchLine_19, SketchLine_20, SketchLine_21, SketchLine_22, SketchLine_23, SketchLine_24, SketchLine_25, SketchLine_26, SketchLine_27, SketchLine_28, SketchLine_29, SketchLine_30, SketchLine_31, SketchLine_32, SketchLine_33, SketchLine_34, SketchLine_35, SketchLine_36, SketchLine_37, SketchLine_38, SketchLine_39, SketchLine_40, SketchLine_41, SketchLine_42, SketchLine_43, SketchLine_44, SketchLine_45, SketchLine_46, SketchLine_47, SketchLine_48, SketchLine_49, SketchLine_50, SketchLine_51, SketchLine_52, SketchLine_53, SketchLine_54, SketchLine_55, SketchLine_56, SketchLine_57, SketchLine_58, SketchLine_59, SketchLine_60, SketchLine_61, SketchLine_62, SketchLine_63, SketchLine_64, SketchLine_65, SketchLine_66, SketchArc_32, SketchArc_33, SketchArc_34, SketchArc_35, SketchArc_36, SketchArc_37, SketchArc_38, SketchArc_39, SketchArc_40, SketchArc_41, SketchArc_42, SketchArc_43, SketchArc_44, SketchArc_45, SketchArc_46, SketchArc_47, SketchArc_48, SketchArc_49, SketchArc_50, SketchArc_51, SketchArc_52, SketchArc_53, SketchArc_54, SketchArc_55, SketchArc_56, SketchArc_57, SketchArc_58, SketchArc_59, SketchArc_60, SketchLine_67, SketchLine_68, SketchLine_69, SketchLine_70, SketchLine_71, SketchLine_72, SketchLine_73, SketchLine_74, SketchLine_75, SketchLine_76, SketchLine_77, SketchLine_78, SketchLine_79, SketchLine_80, SketchLine_81, SketchLine_82, SketchLine_83, SketchLine_84, SketchLine_85, SketchLine_86, SketchLine_87, SketchLine_88, SketchLine_89, SketchLine_90, SketchLine_91, SketchLine_92, SketchLine_93, SketchLine_94, SketchLine_95, SketchLine_96, SketchLine_97, SketchLine_98, SketchLine_99, SketchLine_100, SketchLine_101, SketchLine_102, SketchLine_103, SketchLine_104, SketchLine_105, SketchLine_106, SketchLine_107, SketchLine_108, SketchLine_109, SketchLine_110, SketchLine_111, SketchLine_112, SketchLine_113, SketchLine_114, SketchLine_115, SketchLine_116, SketchLine_117, SketchLine_118, SketchLine_119, SketchLine_120, SketchLine_121, SketchLine_122, SketchLine_123, SketchLine_124] = SketchMultiRotation_2.rotated() +model.do() +model.checkSketch(Sketch_1, 0) + +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection(), "e", 0) + +Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face")) +SketchCircle_3 = Sketch_2.addCircle(0, 0, 4.5) +SketchLine_125 = Sketch_2.addLine(0, 0, -24.375, 0) +SketchLine_125.setAuxiliary(True) +SketchLine_126 = Sketch_2.addLine(0, 0, -12.18750000000149, 21.10936921724762) +SketchLine_126.setAuxiliary(True) +SketchLine_127 = Sketch_2.addLine(-5.267665072275066, 6.123863542435089, -11.74701189249443, 17.34642143491413) +SketchConstraintParallel_1 = Sketch_2.setParallel(SketchLine_127.result(), SketchLine_126.result()) +SketchConstraintHorizontal_1 = Sketch_2.setHorizontal(SketchLine_125.result()) +SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchLine_125.startPoint(), SketchLine_126.startPoint()) +SketchProjection_4 = Sketch_2.addProjection(model.selection("VERTEX", "PartSet/Origin"), False) +SketchPoint_3 = SketchProjection_4.createdFeature() +SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchLine_125.startPoint(), SketchAPI_Point(SketchPoint_3).coordinates()) +SketchCircle_4 = Sketch_2.addCircle(0, 0, 7.5) +SketchCircle_4.setAuxiliary(True) +SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchCircle_4.center()) +SketchCircle_5 = Sketch_2.addCircle(0, 0, 24.375) +SketchCircle_5.setAuxiliary(True) +SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchAPI_Point(SketchPoint_3).coordinates(), SketchCircle_5.center()) +SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_126.endPoint(), SketchCircle_5.results()[1]) +SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_125.endPoint(), SketchCircle_5.results()[1]) +SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchAPI_Point(SketchPoint_3).coordinates()) +SketchArc_61 = Sketch_2.addArc(0, 0, -5.379258295557134, 5.22623958403169, -7.21568539381252, 2.045454545454545, False) +SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchArc_61.center()) +SketchArc_62 = Sketch_2.addArc(0, 0, -16.35843380263332, 18.07048058367397, -23.82871214537519, 5.131578947350746, False) +SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchArc_62.center()) +SketchArc_63 = Sketch_2.addArc(-14.34508810384774, 15.8464214349141, -11.74701189249443, 17.34642143491413, -16.35843380263332, 18.07048058367397, False) +SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchArc_63.startPoint(), SketchLine_127.endPoint()) +SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchArc_63.endPoint(), SketchArc_62.startPoint()) +SketchConstraintTangent_1 = Sketch_2.setTangent(SketchArc_63.results()[1], SketchLine_127.result()) +SketchConstraintTangent_2 = Sketch_2.setTangent(SketchArc_63.results()[1], SketchArc_62.results()[1]) +SketchArc_64 = Sketch_2.addArc(-5.917184125113392, 5.74886354243508, -5.379258295557134, 5.22623958403169, -5.267665072275066, 6.123863542435089, False) +SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchArc_64.startPoint(), SketchArc_61.startPoint()) +SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchArc_64.endPoint(), SketchLine_127.startPoint()) +SketchConstraintTangent_3 = Sketch_2.setTangent(SketchArc_64.results()[1], SketchArc_61.results()[1]) +SketchConstraintTangent_4 = Sketch_2.setTangent(SketchArc_64.results()[1], SketchLine_127.result()) +SketchLine_128 = Sketch_2.addLine(-20.8959475736328, 1.5, -7.937253933193772, 1.5) +SketchArc_65 = Sketch_2.addArc(-20.89594757363278, 4.500000000000018, -23.82871214537519, 5.131578947350746, -20.8959475736328, 1.5, False) +SketchConstraintCoincidence_32 = Sketch_2.setCoincident(SketchArc_65.startPoint(), SketchArc_62.endPoint()) +SketchConstraintCoincidence_33 = Sketch_2.setCoincident(SketchArc_65.endPoint(), SketchLine_128.startPoint()) +SketchConstraintTangent_5 = Sketch_2.setTangent(SketchArc_65.results()[1], SketchLine_128.result()) +SketchConstraintTangent_6 = Sketch_2.setTangent(SketchArc_65.results()[1], SketchArc_62.results()[1]) +SketchArc_66 = Sketch_2.addArc(-7.937253933193772, 2.25, -7.937253933193772, 1.5, -7.21568539381252, 2.045454545454545, False) +SketchConstraintCoincidence_34 = Sketch_2.setCoincident(SketchArc_66.startPoint(), SketchLine_128.endPoint()) +SketchConstraintCoincidence_35 = Sketch_2.setCoincident(SketchArc_66.endPoint(), SketchArc_61.endPoint()) +SketchConstraintTangent_7 = Sketch_2.setTangent(SketchArc_66.results()[1], SketchLine_128.result()) +SketchConstraintTangent_8 = Sketch_2.setTangent(SketchArc_66.results()[1], SketchArc_61.results()[1]) +SketchConstraintParallel_2 = Sketch_2.setParallel(SketchLine_128.result(), SketchLine_125.result()) +SketchConstraintRadius_4 = Sketch_2.setRadius(SketchCircle_3.results()[1], "R_1") +SketchConstraintRadius_5 = Sketch_2.setRadius(SketchArc_61.results()[1], "r_1") +SketchConstraintEqual_3 = Sketch_2.setEqual(SketchArc_64.results()[1], SketchArc_66.results()[1]) +SketchConstraintEqual_4 = Sketch_2.setEqual(SketchArc_63.results()[1], SketchArc_65.results()[1]) +SketchConstraintRadius_6 = Sketch_2.setRadius(SketchArc_64.results()[1], "r_3") +SketchConstraintRadius_7 = Sketch_2.setRadius(SketchArc_63.results()[1], "r_2") +SketchConstraintDistanceVertical_1 = Sketch_2.setVerticalDistance(SketchArc_65.endPoint(), SketchLine_125.endPoint(), "ep") +SketchConstraintRadius_8 = Sketch_2.setRadius(SketchArc_62.results()[1], "R") +SketchConstraintAngle_5 = Sketch_2.setAngle(SketchLine_126.result(), SketchLine_125.result(), "360/NB") +SketchConstraintRadius_9 = Sketch_2.setRadius(SketchCircle_5.results()[1], "R") +SketchConstraintRadius_10 = Sketch_2.setRadius(SketchCircle_4.results()[1], "r_1") +SketchConstraintDistance_1 = Sketch_2.setDistance(SketchLine_127.endPoint(), SketchLine_126.result(), "ep", True) +SketchMultiRotation_3_objects = [SketchArc_61.results()[1], SketchArc_64.results()[1], SketchLine_127.result(), SketchArc_63.results()[1], SketchArc_62.results()[1], SketchArc_65.results()[1], SketchLine_128.result(), SketchArc_66.results()[1]] +SketchMultiRotation_3 = Sketch_2.addRotation(SketchMultiRotation_3_objects, SketchCircle_5.center(), "360/NB", "NB") +[SketchArc_67, SketchArc_68, SketchArc_69, SketchArc_70, SketchArc_71, SketchArc_72, SketchArc_73, SketchArc_74, SketchArc_75, SketchArc_76, SketchLine_129, SketchLine_130, SketchLine_131, SketchLine_132, SketchLine_133, SketchArc_77, SketchArc_78, SketchArc_79, SketchArc_80, SketchArc_81, SketchArc_82, SketchArc_83, SketchArc_84, SketchArc_85, SketchArc_86, SketchArc_87, SketchArc_88, SketchArc_89, SketchArc_90, SketchArc_91, SketchLine_134, SketchLine_135, SketchLine_136, SketchLine_137, SketchLine_138, SketchArc_92, SketchArc_93, SketchArc_94, SketchArc_95, SketchArc_96] = SketchMultiRotation_3.rotated() +model.do() +model.checkSketch(Sketch_2, 0) + +Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), 0, "e") +NB_SUBRES = 0 +NB_SUBSH = 1 +NB_F = [3, 10] +NB_E = [6, 48] +VOL = [238.564692131974851463382947259, 844.585236664367812409182079136] + +Boolean_1_objects_2 = [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "Extrusion_2_2"), model.selection("SOLID", "Extrusion_2_3"), model.selection("SOLID", "Extrusion_2_4"), model.selection("SOLID", "Extrusion_2_5"), model.selection("SOLID", "Extrusion_2_6"), model.selection("SOLID", "Extrusion_2_7")] +Boolean_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], Boolean_1_objects_2) +model.do() + +# Change parameter 'Z' and check validity of result +Z_REF_DATA = [(20, 171, 1014, 2028, 1667.562983801989503263030201197), + (22, 183, 1086, 2172, 2160.297076967755856458097696304), + (25, 201, 1194, 2388, 3068.115476944114561774767935276), + (40, 291, 1734, 3468, 11471.942563079033789108507335186), + (34, 255, 1518, 3036, 7238.123725381414260482415556908), + (30, 231, 1374, 2748, 5092.377854112805835029575973749)] +for z in Z_REF_DATA: + Param_Z.setValue(z[0]) + model.do() + Part_1_doc.setCurrentFeature(Boolean_1.feature(), False) + model.do() + +# Change parameter 'm' and check validity of result +M_REF_DATA = [(1.5, 14094.989002197671652538701891899), + (1.2, 8007.778784522399291745387017727), + (1.0, 5092.377854113199646235443651676)] +for m in M_REF_DATA: + Param_m.setValue(m[0]) + model.do() + +# change parameter 'NB' and check validity of result +NB_REF_DATA = [(4, 215, 1278, 2556, 4669.256782562274565862026065588), + (8, 247, 1470, 2940, 5515.498925714943652565125375986), + (7, 239, 1422, 2844, 5303.938389925016963388770818710), + (6, 231, 1374, 2748, 5092.377854112805835029575973749)] +for n in NB_REF_DATA: + Param_NB.setValue(n[0]) + model.do() + Part_1_doc.setCurrentFeature(Boolean_1.feature(), False) + model.do() + Boolean_1_objects_2 = [] + for res in Extrusion_2.results(): + Boolean_1_objects_2.append(model.selection("SOLID", res.name())) + Boolean_1.setToolObjects(Boolean_1_objects_2) + model.do() + +model.end() diff --git a/test.compatibility/wheel_rim.py b/test.compatibility/wheel_rim.py new file mode 100644 index 000000000..bc8ba6981 --- /dev/null +++ b/test.compatibility/wheel_rim.py @@ -0,0 +1,211 @@ +# 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 +# + +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(-70.81663645026607, 190, 229.1833635497339, 190) +SketchLine_1.setAuxiliary(True) +SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result()) +SketchLine_2 = Sketch_1.addLine(16.64097565470627, 190, 22.64097565470627, 190) +SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_1.result()) +SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_1.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_2.result(), 6) +SketchArc_1 = Sketch_1.addArc(32.64097565470627, 190, 42.64097565470627, 190, 22.64097565470627, 190, True) +SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_1.result()) +SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchArc_1.endPoint()) +SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.center(), SketchLine_1.result()) +SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 10) +SketchLine_3 = Sketch_1.addLine(42.64097565470627, 190, 147.6409756547063, 190) +SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_3.startPoint()) +SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_1.result()) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_3.result(), 105) +SketchLine_4 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX")) +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.result(), 190) +SketchLine_5 = Sketch_1.addLine(167.6409756547062, 232.4170641625502, 167.6409756547062, 155.6475648742598) +SketchLine_5.setAuxiliary(True) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_5.result()) +SketchArc_2 = Sketch_1.addArc(147.6409756547063, 202.5, 147.6409756547063, 190, 160.1409756547063, 202.5, False) +SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_2.startPoint()) +SketchConstraintTangent_1 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_2.results()[1]) +SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], 12.5) +SketchLine_6 = Sketch_1.addLine(147.6409756547063, 202.5, 147.6409756547063, 190) +SketchLine_6.setAuxiliary(True) +SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_2.center(), SketchLine_6.startPoint()) +SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.endPoint()) +SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_6.endPoint()) +SketchLine_7 = Sketch_1.addLine(160.1409756547063, 202.5, 147.6409756547063, 202.5) +SketchLine_7.setAuxiliary(True) +SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_7.startPoint()) +SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.center(), SketchLine_7.endPoint()) +SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchLine_7.endPoint()) +SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_6.result(), SketchLine_7.result(), 90) +SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_2.endPoint(), SketchLine_5.result(), 145) +SketchPoint_1 = Sketch_1.addPoint(167.6409756547062, 218.5857086760099) +SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_5.result()) +SketchArc_3 = Sketch_1.addArc(181.1409756547063, 202.5, 167.6409756547062, 218.5857086760099, 160.1409756547063, 202.5, False) +SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_3.startPoint()) +SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchArc_3.endPoint()) +SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_7.startPoint(), SketchArc_3.endPoint()) +SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchArc_3.results()[1]) +SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchArc_2.results()[1]) +model.do() + +# check overconstraint message appears +assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation" +# remove duplicated Tangent constraint +Part_1_doc.removeFeature(SketchConstraintTangent_3.feature()) +model.do() +assert Sketch_1.solverError().value() == "", "FAILED: Sketch should NOT report over-constrained situation" + +# continue creating model +SketchLine_8 = Sketch_1.addLine(16.64097565470627, 190, 16.64097565470627, 184) +SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_8.startPoint()) +SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_8.result()) +SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_8.result(), 6) +SketchLine_9 = Sketch_1.addLine(16.64097565470627, 184, 169.1531000589648, 184) +SketchLine_9.setAuxiliary(True) +SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint()) +SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_9.result()) +SketchLine_10 = Sketch_1.addLine(16.64097565470627, 184, 18.2409756547065, 184) +SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_10.startPoint(), SketchLine_8.endPoint()) +SketchLine_11 = Sketch_1.addLine(147.6409756547063, 190, 147.6409756547063, 184) +SketchLine_11.setAuxiliary(True) +SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_11.startPoint()) +SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_9.result()) +SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_11.result(), SketchLine_9.result()) +SketchArc_4 = Sketch_1.addArc(147.6409756547063, 202.5, 147.6409756547063, 184, 166.1409756547063, 202.5, False) +SketchArc_4.setName("SketchArc_5") +SketchArc_4.result().setName("SketchArc_5") +SketchArc_4.results()[1].setName("SketchArc_5_2") +SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchArc_2.center(), SketchArc_4.center()) +SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchArc_4.center()) +SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchArc_4.center()) +SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchArc_4.startPoint()) +SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_7.result()) +SketchLine_12 = Sketch_1.addLine(47.47337262898633, 184, 147.6409756547063, 184) +SketchArc_5 = Sketch_1.addArc(32.64097565470627, 190, 32.64097565470627, 174, 47.47337262898633, 184, False) +SketchArc_5.setName("SketchArc_10") +SketchArc_5.result().setName("SketchArc_10") +SketchArc_5.results()[1].setName("SketchArc_10_2") +SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_12.startPoint()) +SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.endPoint()) +SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchArc_4.startPoint(), SketchLine_12.endPoint()) +SketchArc_6 = Sketch_1.addArc(181.1409756547063, 202.5, 166.1409756547063, 202.5, 171.498118511849, 213.9897921211111, True) +SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchArc_6.startPoint()) +SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_6.center(), SketchArc_3.center()) +SketchLine_13 = Sketch_1.addLine(181.1409756547063, 202.5, 167.6409756547062, 218.5857086760099) +SketchLine_13.setAuxiliary(True) +SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchArc_6.center(), SketchLine_13.startPoint()) +SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_13.endPoint()) +SketchConstraintCoincidence_38 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchLine_13.endPoint()) +SketchConstraintCoincidence_39 = Sketch_1.setCoincident(SketchLine_13.result(), SketchArc_6.endPoint()) +SketchLine_14 = Sketch_1.addLine(167.6409756547062, 218.5857086760099, 171.498118511849, 213.9897921211111) +SketchConstraintCoincidence_40 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_41 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_42 = Sketch_1.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint()) +SketchConstraintCoincidence_43 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_14.endPoint()) +SketchLine_15 = Sketch_1.addLine(32.64097565470627, 190, 32.64097565470627, 174) +SketchLine_15.setAuxiliary(True) +SketchConstraintCoincidence_44 = Sketch_1.setCoincident(SketchArc_1.center(), SketchLine_15.startPoint()) +SketchConstraintCoincidence_45 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchArc_5.startPoint()) +SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_15.result()) +SketchLine_16 = Sketch_1.addLine(32.64097565470627, 174, 12.64097565470628, 174) +SketchConstraintCoincidence_46 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint()) +SketchArc_7 = Sketch_1.addArc(12.64097565470628, 165, 12.64097565470628, 174, 3.640975654706275, 165, False) +SketchConstraintCoincidence_47 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchArc_7.startPoint()) +SketchLine_17 = Sketch_1.addLine(3.640975654706275, 165, 3.640975654706275, 100) +SketchConstraintCoincidence_48 = Sketch_1.setCoincident(SketchArc_7.endPoint(), SketchLine_17.startPoint()) +SketchLine_18 = Sketch_1.addLine(3.640975654706275, 100, -5.359024345293726, 100) +SketchConstraintCoincidence_49 = Sketch_1.setCoincident(SketchLine_17.endPoint(), SketchLine_18.startPoint()) +SketchLine_19 = Sketch_1.addLine(-5.359024345293726, 100, -5.359024345293726, 165) +SketchConstraintCoincidence_50 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint()) +SketchLine_20 = Sketch_1.addLine(-5.359024345293726, 165, -5.359024345293726, 100) +SketchConstraintCoincidence_51 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint()) +SketchConstraintCoincidence_52 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_20.endPoint()) +SketchConstraintCoincidence_53 = Sketch_1.setCoincident(SketchLine_19.startPoint(), SketchLine_20.endPoint()) +SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_16.result()) +SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_18.result()) +SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_17.result()) +SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_20.result()) +SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_16.result(), SketchArc_7.results()[1]) +SketchConstraintTangent_5 = Sketch_1.setTangent(SketchLine_17.result(), SketchArc_7.results()[1]) +SketchConstraintRadius_3 = Sketch_1.setRadius(SketchArc_7.results()[1], 9) +SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_20.result(), 65) +SketchLine_21 = Sketch_1.addLine(12.64097565470628, 174, 12.64097565470628, 192.2067667108204) +SketchLine_21.setName("SketchLine_22") +SketchLine_21.result().setName("SketchLine_22") +SketchLine_21.setAuxiliary(True) +SketchConstraintCoincidence_54 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchLine_21.startPoint()) +SketchConstraintCoincidence_55 = Sketch_1.setCoincident(SketchArc_7.startPoint(), SketchLine_21.startPoint()) +SketchConstraintVertical_6 = Sketch_1.setVertical(SketchLine_21.result()) +SketchConstraintLength_5 = Sketch_1.setLength(SketchLine_16.result(), 20) +SketchArc_8 = Sketch_1.addArc(12.64097565470628, 165, -5.359024345293726, 165, 12.64097565470625, 183, True) +SketchConstraintCoincidence_56 = Sketch_1.setCoincident(SketchArc_7.center(), SketchArc_8.center()) +SketchConstraintCoincidence_57 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchArc_8.startPoint()) +SketchConstraintCoincidence_58 = Sketch_1.setCoincident(SketchLine_20.startPoint(), SketchArc_8.startPoint()) +SketchConstraintCoincidence_59 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_21.result()) +SketchLine_22 = Sketch_1.addLine(12.64097565470625, 183, 18.2409756547065, 183) +SketchLine_22.setName("SketchLine_23") +SketchLine_22.result().setName("SketchLine_23") +SketchConstraintCoincidence_60 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_22.startPoint()) +SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_22.result()) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_18.startPoint(), SketchLine_19.result(), 9) +SketchLine_23 = Sketch_1.addLine(18.2409756547065, 183, 18.2409756547065, 184) +SketchLine_23.setName("SketchLine_24") +SketchLine_23.result().setName("SketchLine_24") +SketchConstraintCoincidence_61 = Sketch_1.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint()) +SketchConstraintCoincidence_62 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_23.endPoint()) +SketchConstraintVertical_7 = Sketch_1.setVertical(SketchLine_23.result()) +SketchConstraintCoincidence_63 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_64 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_9.result()) +SketchConstraintCoincidence_65 = Sketch_1.setCoincident(SketchArc_5.center(), SketchLine_15.startPoint()) +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_10.startPoint(), SketchLine_23.result(), 1.6, True) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_10.startPoint(), SketchLine_22.result(), 1, True) +SketchConstraintRadius_4 = Sketch_1.setRadius(SketchArc_6.results()[1], 15) +model.do() +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_8f-SketchLine_10f-SketchLine_24r-SketchLine_23r-SketchArc_8_2f-SketchLine_19r-SketchLine_18r-SketchLine_17r-SketchArc_7_2r-SketchLine_16r-SketchArc_10_2f-SketchLine_12f-SketchArc_5_2f-SketchArc_6_2r-SketchLine_14r-SketchArc_3_2f-SketchArc_2_2r-SketchLine_3r-SketchArc_1_2r-SketchLine_2r")], model.selection("EDGE", "PartSet/OX"), 360, 0) +Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) +SketchCircle_1 = Sketch_2.addCircle(0, 120, 7.5) +SketchLine_24 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OZ")) +SketchLine_24.setName("SketchLine_25") +SketchLine_24.result().setName("SketchLine_25") +SketchConstraintCoincidence_66 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchLine_24.result()) +SketchLine_25 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OY")) +SketchLine_25.setName("SketchLine_26") +SketchLine_25.result().setName("SketchLine_26") +SketchConstraintDistance_6 = Sketch_2.setDistance(SketchCircle_1.center(), SketchLine_25.result(), 120) +SketchConstraintRadius_5 = Sketch_2.setRadius(SketchCircle_1.results()[1], 7.5) +SketchMultiRotation_1 = Sketch_2.addRotation([SketchCircle_1.results()[1]], SketchLine_24.startPoint(), 24, 15) +[SketchCircle_2, SketchCircle_3, SketchCircle_4, SketchCircle_5, SketchCircle_6, SketchCircle_7, SketchCircle_8, SketchCircle_9, SketchCircle_10, SketchCircle_11, SketchCircle_12, SketchCircle_13, SketchCircle_14, SketchCircle_15] = SketchMultiRotation_1.rotated() +model.do() +Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), 10, 10) +Boolean_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Revolution_1_1")], [model.selection("SOLID", "Extrusion_1_6"), model.selection("SOLID", "Extrusion_1_8"), model.selection("SOLID", "Extrusion_1_9"), model.selection("SOLID", "Extrusion_1_3"), model.selection("SOLID", "Extrusion_1_2"), model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_1_4"), model.selection("SOLID", "Extrusion_1_14"), model.selection("SOLID", "Extrusion_1_5"), model.selection("SOLID", "Extrusion_1_15"), model.selection("SOLID", "Extrusion_1_11"), model.selection("SOLID", "Extrusion_1_10"), model.selection("SOLID", "Extrusion_1_12"), model.selection("SOLID", "Extrusion_1_13"), model.selection("SOLID", "Extrusion_1_7")]) +model.end() + +from GeomAPI import GeomAPI_Shape + +model.testNbResults(Boolean_1, 1) +model.testNbSubShapes(Boolean_1, GeomAPI_Shape.SOLID, [1])