from salome.shaper import model
import os
+import salome
## @ingroup Plugins
## Exports all shapes and groups into the GEOM module.
def execute(self):
+ print("### Execution of PublishToStudy")
+
+ ## Get SHAPER active document
aSession = ModelAPI.ModelAPI_Session.get()
- ## Get active document
- self.Part = aSession.activeDocument()
+ # find a shaper-study component
salome.salome_init(1)
-
- print("### Excutation of PublishToStudy")
- pass
+ import SHAPERSTUDY_utils
+ SHAPERSTUDY_utils.findOrCreateComponent()
+ anEngine = SHAPERSTUDY_utils.getEngine()