No smeshBuilder so far

This commit is contained in:
eap 2013-09-20 15:07:18 +00:00
parent c843da8f61
commit f5aab06a2b

View File

@ -895,10 +895,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
std::list< TCollection_AsciiString > lines; // lines of a script std::list< TCollection_AsciiString > lines; // lines of a script
std::list< TCollection_AsciiString >::iterator linesIt; std::list< TCollection_AsciiString >::iterator linesIt;
if ( isPublished ) // if ( isPublished )
lines.push_back( tab + aSMESHGen + " = smeshBuilder.New(theStudy)" ); // lines.push_back( tab + aSMESHGen + " = smeshBuilder.New(theStudy)" );
else // else
lines.push_back( tab + aSMESHGen + " = smeshBuilder.New(None)" ); // lines.push_back( tab + aSMESHGen + " = smeshBuilder.New(None)" );
lines.push_back( tab + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()" ); lines.push_back( tab + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()" );
lines.push_back( tab + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()" ); lines.push_back( tab + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()" );
@ -1063,8 +1063,8 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
TCollection_AsciiString initPart = "import "; TCollection_AsciiString initPart = "import ";
if ( isMultiFile ) if ( isMultiFile )
initPart += "salome, "; initPart += "salome, ";
initPart += " SMESH, SALOMEDS\n"; initPart += "smesh, SMESH, SALOMEDS\n";
initPart += "from salome.smesh import smeshBuilder\n"; //initPart += "from salome.smesh import smeshBuilder\n";
if ( importGeom && isMultiFile ) if ( importGeom && isMultiFile )
{ {
initPart += ("\n## import GEOM dump file ## \n" initPart += ("\n## import GEOM dump file ## \n"
@ -1084,13 +1084,13 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
int iFrom = 1, iPos; int iFrom = 1, iPos;
while (( iPos = anUpdatedScript.Location( pluginAccess, iFrom, anUpdatedScript.Length() ))) while (( iPos = anUpdatedScript.Location( pluginAccess, iFrom, anUpdatedScript.Length() )))
{ {
anUpdatedScript.Insert( iPos + pluginNames[i].size(), "Builder" ); //anUpdatedScript.Insert( iPos + pluginNames[i].size(), "Builder" );
iFrom = iPos + pluginNames[i].size() + 8; iFrom = iPos + pluginNames[i].size() + 8;
} }
// if any plugin member is used, import the plugin // if any plugin member is used, import the plugin
if ( iFrom > 1 ) if ( iFrom > 1 )
importStr += ( helper + "\n" "from salome." + pluginNames[i].c_str() + importStr += ( helper + "\n" "from salome." + pluginNames[i].c_str() +
" import " + pluginNames[i].c_str() +"Builder" ); " import " + pluginNames[i].c_str() /*+"Builder"*/ );
} }
if ( !importStr.IsEmpty() ) if ( !importStr.IsEmpty() )
initPart += importStr + "\n"; initPart += importStr + "\n";