From: jfa Date: Fri, 27 Sep 2013 09:01:59 +0000 (+0000) Subject: GEOM Plugins: fix problem with overwriting of some geomBuilder methods by GEOM_Gen... X-Git-Tag: BR_hydro_v_0_3_1~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f981d102e08f0d7d21a9e86f0605ea488a70b69;p=modules%2Fgeom.git GEOM Plugins: fix problem with overwriting of some geomBuilder methods by GEOM_Gen::GEOM_IAdvancedOperations methods. --- diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 0757288ff..b0858f9ff 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -696,8 +696,15 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): self.MeasuOp = self.GetIMeasureOperations (self.myStudyId) self.BlocksOp = self.GetIBlocksOperations (self.myStudyId) self.GroupOp = self.GetIGroupOperations (self.myStudyId) - #self.AdvOp = self.GetIAdvancedOperations (self.myStudyId) - self.AdvOp = self.GetPluginOperations (self.myStudyId, "AdvancedEngine") + + # The below line is a right way to map all plugin functions to geomBuilder, + # but AdvancedOperations are already mapped, that is why this line is commented + # and presents here only as an axample + #self.AdvOp = self.GetPluginOperations (self.myStudyId, "AdvancedEngine") + + # self.AdvOp is used by functions MakePipeTShape*, MakeDividedDisk, etc. + self.AdvOp = GEOM._objref_GEOM_Gen.GetPluginOperations (self, self.myStudyId, "AdvancedEngine") + # set GEOM as root in the use case tree self.myUseCaseBuilder = self.myStudy.GetUseCaseBuilder() self.myUseCaseBuilder.SetRootCurrent()