]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Implementation of python dump of SHAPER STUDY for results and groups using XAO file...
authormpv <mpv@opencascade.com>
Wed, 5 Feb 2020 15:07:16 +0000 (18:07 +0300)
committermpv <mpv@opencascade.com>
Wed, 5 Feb 2020 15:07:16 +0000 (18:07 +0300)
CMakeLists.txt
src/PythonAPI/model/services/__init__.py
src/XAO/CMakeLists.txt

index c63a22307b8a5cfe57f62eec4202265d439c847a..e8cbbbfef7d77fc8a9c47225f4c343169e5a205e 100644 (file)
@@ -97,6 +97,7 @@ IF(${HAVE_SALOME})
     SET(SHAPER_INSTALL_BIN lib/salome CACHE INTERNAL "" FORCE)
     SET(SHAPER_INSTALL_PLUGIN_FILES lib/salome CACHE INTERNAL "" FORCE)
     SET(SHAPER_INSTALL_PYTHON_FILES bin/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_HEADERS include/salome CACHE INTERNAL "" FORCE)
     SET(SHAPER_INSTALL_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
     SET(SHAPER_INSTALL_QM_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
     SET(SHAPER_INSTALL_XML_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
index d585c1891f9f763f7c72b283abf3af3268d7c1f0..e5bc144781375b027324426e6c45959e8e40e104 100644 (file)
@@ -29,3 +29,9 @@ from ModelHighAPI import reset
 from ModelHighAPI import addFolder, removeFolder
 from ModelHighAPI import ModelHighAPI_Selection as selection
 from ModelHighAPI import checkPythonDump as checkPythonDump
+
+# a method used for the python dump of the SHAPER STUDY
+def publishToShaperStudy():
+  begin()
+  activeDocument().addFeature("PublishToStudy")
+  end()
index a4fa551c1f874e057706104d9d912e682b838cbf..0ea99e989ae8ba17a7df24bf9929c72d3402126d 100644 (file)
@@ -90,3 +90,4 @@ SET(XAO_SOURCES
 ADD_LIBRARY(XAOShaper SHARED ${XAO_SOURCES} ${XAO_HEADERS})
 TARGET_LINK_LIBRARIES(XAOShaper ${PROJECT_LIBRARIES})
 INSTALL(TARGETS XAOShaper DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SHAPER_INSTALL_HEADERS})