mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 09:50:37 +05:00
No smeshBuilder so far
This commit is contained in:
parent
c843da8f61
commit
f5aab06a2b
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user