]> SALOME platform Git repositories - modules/shaper_study.git/blobdiff - src/PY/SHAPERSTUDY.py
Salome HOME
Implementation of the automatic breaking the link if the shape is modified or deleted
[modules/shaper_study.git] / src / PY / SHAPERSTUDY.py
index 74fddcfaa7a01ec9fadfc3fb09d06be88936aaf5..3eb1cf2892d4683b20f4387cfff8b301cdfd0d6a 100644 (file)
@@ -90,6 +90,9 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
           anIOR = salome.orb.object_to_string(theObject)
           aResultSO.SetAttrString("AttributeIOR", anIOR)
           theObject.SetSO(aResultSO)
+        # add a red-reference that means that this is an active reference to SHAPER result
+        aSub = aBuilder.NewObject(aResultSO)
+        aBuilder.Addreference(aSub, aResultSO)
 
         return aResultSO