Hi,
I am trying to write an interface between Python 3.7 and Hysys case. I managed to establish a connection between them, connect Hysys as COM.Object.
This gave me the ability to modify the data of streams using syntax like:
'HyCase.Flowsheet.MaterialStreams.Item(1).Temperature.SetValue(20, "C")'
In this case everything work fine, but wen im try to change, for example, condenser pressure of column K-1 using syntax:
'HyCase.Flowsheet.Operations.Item("K-1").ColumnFlowsheet.SeparationColumnStages.Item("Condenser").SeparationStage.Pressure.SetValue(2, "kPa")'
it gives me error "70 Premission denied". But i can change that value handly in column specifications directly in Hysys, also
'HyCase.Flowsheet.Operations.Item("K-1").ColumnFlowsheet.SeparationColumnStages.Item("Condenser").SeparationStage.Pressure.CanModify'
returns me "True" value.
I have tried doing all the same using VBA and the picture was the same. I can modify one values but can't modify the others although they "CanModify" attribute is "True". Maybe i using wrong syntax or something? I have no idea how can i solve this error.
Thanks.
P.S. Sorry for my English