web
You’re offline. This is a read only version of the page.
close
Please wait...
×

Error



Posted 7 years ago 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 7 years ago 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 7 years ago by adacovsk
Perfect, thank you.

You must be signed in to post in this forum.