From: nri Date: Mon, 19 May 2003 14:42:34 +0000 (+0000) Subject: NRI : Use component username from Catalog. X-Git-Tag: Start-v1_1a~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cb3b49a350e44631ced1494f2913b7d0df22d768;p=modules%2Fgeom.git NRI : Use component username from Catalog. --- diff --git a/src/GEOM_SWIG/batchmode_geompy.py b/src/GEOM_SWIG/batchmode_geompy.py index 6601dc6e3..374a2b411 100644 --- a/src/GEOM_SWIG/batchmode_geompy.py +++ b/src/GEOM_SWIG/batchmode_geompy.py @@ -12,6 +12,7 @@ from batchmode_salome import * #-------------------------------------------------------------------------- +modulecatalog = naming_service.Resolve("/Kernel/ModulCatalog") geom = lcc.FindOrLoadComponent("FactoryServer", "GEOM") geom.GetCurrentStudy(myStudyId) @@ -22,7 +23,11 @@ if father is None: father = myBuilder.NewComponent("GEOM") A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName"); FName = A1._narrow(SALOMEDS.AttributeName) - FName.SetValue("Geometry") +# FName.SetValue("Geometry") + + Comp = modulecatalog.GetComponent( "GEOM" ) + FName.SetValue( Comp._get_componentusername() ) + A2 = myBuilder.FindOrCreateAttribute(father, "AttributePixMap"); aPixmap = A2._narrow(SALOMEDS.AttributePixMap); aPixmap.SetPixMap( "ICON_OBJBROWSER_Geometry" );