Salome HOME
Bug PAL8331: REGRESSION import mesh in "MED 2.2" format.
[modules/smesh.git] / src / DriverMED / DriverMED_Family.cxx
index 0484569e5eda857d51dd3690aec74f0157e7102d..80b343e227f762e04e5baf3c4d78e9f5581ebb0c 100644 (file)
@@ -211,20 +211,32 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
                                const MED::PMeshInfo& theMeshInfo) const
 {
   string aValue;
+
   ostringstream aStr;
-  aStr << myId;
+
+  aStr << "FAM_" << myId;
+  set<string>::iterator aGrIter = myGroupNames.begin();
+  for (; aGrIter != myGroupNames.end(); aGrIter++)
+  {
+    aStr << "_" << *aGrIter;
+  }
+
   aValue = aStr.str();
+  /*
   MED::TStringVector anAttrDescs (1, "");  // 1 attribute with empty description,
   MED::TIntVector anAttrIds (1, myId);        // Id=0,
   MED::TIntVector anAttrVals (1, myId);       // Value=0
-
+  */
+  
   MED::PFamilyInfo anInfo = theWrapper->CrFamilyInfo(theMeshInfo,
                                                     aValue,
                                                     myId,
-                                                    myGroupNames,
-                                                    anAttrDescs,
-                                                    anAttrIds,
-                                                    anAttrVals);
+                                                    myGroupNames);
+/*                                                  
+                                                   anAttrDescs,
+                                                   anAttrIds,
+                                                   anAttrVals);
+*/
 
 //  cout << endl;
 //  cout << "Groups: ";