From: mpv Date: Tue, 23 Jun 2020 14:06:05 +0000 (+0300) Subject: Fix for #19722 - Field with string : impossible to save. Make strings-fields exported... X-Git-Tag: V9_5_0rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c66d264eed221f9639883c4357737b3ff0f69ee;p=modules%2Fshaper.git Fix for #19722 - Field with string : impossible to save. Make strings-fields exported to SHAPERSTUDY as empty fields even they are not supported by the SHAPERSTUDY and SMESH. --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index d75dd6a52..a87eb0f6f 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -224,7 +224,10 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): def fillField(self, theField, theFeature, theEngine, theSelectionIndices): aTables = theFeature.tables("values") aValType = aTables.type() # type of the values - theField.SetValuesType(aValType) + aValTypeToSet = aValType + if aValType == 3: # strings do not supported by SMESH, so, make them empty boolean table + aValTypeToSet = 0 + theField.SetValuesType(aValTypeToSet) aNumSteps = aTables.tables() # number of steps is number of tables aSteps = [] for aVal in range(aNumSteps):