Original Article Date: Oct 12, 2000
End of file missing when opening a file in MicroStation V7? No problem with this Edg script!
When you get the message "EOF missing" do not answer "YES" since it may cause MicroStation to move the EOF to a location 'in front' of the problem possibly resulting in a loss of data. Always answer "NO", and immediatly exit the file. You can then attempt to repair the file yourself using Edg. Additionally, Phil Chouinard (Bentley) says: "What's more important is figuring out what is causing this to happen. Often, that message is a symptom indicating that something else much deeper is happening. Resolving what that deeper issue is (e.g. network issues, HDDs that need defragmenting, conflicts/issues with software, etc.) usually will clear up the real issue and design data will benefit accordingly." By using a utility called EdG, we can edit the design file without actually opening the file in MicroStation. This slick little utility will allow you to easily repair file problems such as missing EOF, phantom elements, lost design file headers and so forth. To repair a missing EOF, first make a back up copy of the design file and then copy it to the Edg directory. Open the (DOS)System prompt window, navigate to the Edg directory and proceed with the following keyins: Key in: Edg [filename] Set search/all Set verify/all Undemarcate Find end Demarcate Patch wtf/auto whole Patch wid/auto whole Repair whole Find end Show size Summary whole Verify whole/none Exit To prevent a user from accidentally clicking "YES" in the No EOF message box, you may wish to set the configuration variable MS_NOEOF_MSGFILE. When set, MicroStation will disply a NO EOF message and prevents the file from being opened. Additional information can be found at: MicroStation EdG
AskInga Article #16