aScript += anEntryToCmd->second;
}
+ //RNV: issue 16219: EDF PAL 469: "RemoveFromStudy" Function
+ //Add unpublish command if need
+ TCollection_AsciiString unpublishCmd("\n");
+ if(isMultiFile)
+ unpublishCmd += "\t";
+ unpublishCmd += "geompy.hideInStudy(";
+
+ for (aStEntry2ObjDataPtrIt = aStEntry2ObjDataPtr.begin();
+ aStEntry2ObjDataPtrIt != aStEntry2ObjDataPtr.end();
+ ++aStEntry2ObjDataPtrIt)
+ {
+ TObjectData* data = aStEntry2ObjDataPtrIt->second;
+ if ( data->_unpublished && !data->_pyName.IsEmpty() ) {
+ aScript += unpublishCmd + data->_pyName + ")";
+ }
+ }
+
//aScript += "\n\tpass\n";
aScript += "\n";
aValidScript = true;
TCollection_AsciiString _studyEntry;
TCollection_AsciiString _name;
TCollection_AsciiString _pyName;
+ bool _unpublished;
};
class Handle_TDataStd_HArray1OfByte;
objData._name = aName.in();
objData._entry = anEntry.in();
objData._studyEntry = aStudyEntry.in();
+
+ //Find Drawable Attribute
+ SALOMEDS::GenericAttribute_var aGenAttr;
+ if(aValue->FindAttribute(aGenAttr, "AttributeDrawable") ) {
+ SALOMEDS::AttributeDrawable_var aDrw = SALOMEDS::AttributeDrawable::_narrow(aGenAttr);
+ objData._unpublished = !aDrw->IsDrawable();
+ } else {
+ objData._unpublished = false;
+ }
+
objectDataVec.push_back( objData );
//Find attribute with list of used notebook variables