import SMESH
#--------------------------------------------------------------------------
+modulecatalog = naming_service.Resolve("/Kernel/ModulCatalog")
smesh = lcc.FindOrLoadComponent("FactoryServer", "SMESH")
myStudyBuilder = myStudy.NewBuilder()
father = myStudyBuilder.NewComponent("MESH")
A1 = myStudyBuilder.FindOrCreateAttribute(father, "AttributeName");
FName = A1._narrow(SALOMEDS.AttributeName)
- FName.SetValue("Mesh")
+ #FName.SetValue("Mesh")
+ Comp = modulecatalog.GetComponent( "SMESH" )
+ FName.SetValue( Comp._get_componentusername() )
A2 = myStudyBuilder.FindOrCreateAttribute(father, "AttributePixMap");
aPixmap = A2._narrow(SALOMEDS.AttributePixMap);
aPixmap.SetPixMap( "ICON_OBJBROWSER_Mesh" );