Read/Write Stream/Unit Operation parameters using COM
Posted: 07 March 2019, 12:44
I want to read the temperature of the stream and the parameter of the unit operation using Automation COM Interface of COFE in Excel. I have the following code:
Sub Button1_Click()
Dim document As COFE_Document
Dim unit As ICapeUnit
Dim uti As ICapeUtilities
Dim stream As ICOFEStream
Set document = GetObject("......\Flowsheet.fsd")
Set stream = document.GetStream(1)
Set unit = document.GetUnit(1)
package = document.GetReactionPackageNames()
End Sub
There is no documentation available which shows how do to this. Is this possible in COFE document? If not then when it will be possible to read and write the stream properties?
Sub Button1_Click()
Dim document As COFE_Document
Dim unit As ICapeUnit
Dim uti As ICapeUtilities
Dim stream As ICOFEStream
Set document = GetObject("......\Flowsheet.fsd")
Set stream = document.GetStream(1)
Set unit = document.GetUnit(1)
package = document.GetReactionPackageNames()
End Sub
There is no documentation available which shows how do to this. Is this possible in COFE document? If not then when it will be possible to read and write the stream properties?