Closed gvandewiel86 closed 10 months ago
Hello, thank you for reaching out to us. Could you please upload your script, where this error occurs? It would help us identify the source of error. I tried to foricbly update GlobalParameter by rewriting it again with AddParameter
when there were Results available and ended up with succesful update of parameter (see the code below).
GlobalParameter.AddParameter(
no= 1,
name= 'Test_1',
symbol= 'Test_1',
unit_group= GlobalParameterUnitGroup.LENGTH,
definition_type= GlobalParameterDefinitionType.DEFINITION_TYPE_FORMULA,
definition_parameter= ['1+1'], # Will be changed
comment= 'Comment_1')
Model.clientModel.service.calculate_all(False)
GlobalParameter.AddParameter(
no= 1,
name= 'Test_1',
symbol= 'Test_1',
unit_group= GlobalParameterUnitGroup.LENGTH,
definition_type= GlobalParameterDefinitionType.DEFINITION_TYPE_FORMULA,
definition_parameter= ['4+1'], # Changed here
comment= 'Comment_1')
Version of RFEM: 6.04.0007 Version of tool: 1.19.1
Hi Jan,
thanks for the script i will check your script on our model and will also further investigate what happens in our script. From a quick check it seems that the parameter (a Strain) is updated but the results of the particular load cases / combinations using the parameter are not invalidated hence a a recalculation of the load combination does not occurs.
Current work around is to remove the results and hence forcing a recalculation of the model.
The script is a combination of VBA and Python and will try to grab the relevant parts and upload these as soon as possible.
Hi, No more comments. Issues is closed.
Describe the bug Can't Update Global Parameter when Results are available
Expected behavior When updating the parameter value manually we first get prompted that all results will be deleted when changing this value. When using the
GlobalParameter.AddParameter
function we don't get prompted (obviously) but we are also not able to forcibly update the Parameter value.Desktop (please complete the following information):