Hello!
For I while I have been using COCO now, and I'm quite happy with it, especcialy regarding the freedom of adding my own models. For some simple ones I succeeded in (re)building them, using the Delphi Wizard stuff. E.g. temperature, pressure, overall enthalpy and molar flows, component names all are easily accesible (after some struggle...) However, I also would like to use other properties, available from ICapeThermoMaterialObject.GetProp.
I call it using Delphi like:
procedure TSimplePressureChanger.GetInputData;
var
Visc : OleVariant;
begin
...
InPort := Ports.Items[1];
// synchronize
Inport.SynchronizePortAndConnectedObject;
Visc := Inport.StreamObject.GetProp('viscosity','Vapor',null,'Mixture','');
...
end;
The Visc:= call fails.
I guess few are using Delphi, but if, could someone please tell me how to use the GetProp function call?
Meanwhile I keep digging...
FYI : I tried to use FPC/Lazarus instead of Delphi.
Due to a somewhat different COM/ActiveX calling sequence, I unfortunately didn't succeed.
regards, Henk