Hi Mohammad,
[quote user="Mohammad Aryafar"] Is there any other function that I need to call to be able to save the raster in the design file?[/quote]
A quote from MDL API reference for mdlRaster_fileOpen (I guess it's the same for V8i and V8 2004 Edition): Note that the raster will not be attached to the dgn. See mdlRaster_extendedInfoSet
It means you have to use mdlRaster_extendedInfoSet to attach the raster to active model.
With regards,
Jan