Posted Mon, 12 Feb 2018 19:49:31 GMT by adacovsk
Hi,

I am looking for a way to use IfmGetRelativePath, IfmioGetPath or IfmioRelativePath to open a file using ifstream associated with the model. The file will be in the local directory. They need to be in a string format but I have no idea how to work with what these functions provide... Perhaps you can detail how they work?

Thank you,

Adam
Posted Tue, 13 Feb 2018 08:12:06 GMT by Peter Schätzl
Hi Adam,
in the IFM samples (C:\Users\Public\Documents\DHI FEFLOW 7.1\sdk\ifm\samples\simul\path_api) you find an example for using the path functions, including IfmGetRelativePath. IfmIoGetPath can be used to get the path (as a char pointer) in the Serialize callback. IfmioRelativePath is applied to serialize a relative path to/from the fem file in the serialize callback. 
Posted Tue, 13 Feb 2018 16:57:37 GMT by adacovsk
Perfect, thank you.

You must be signed in to post in this forum.