Page 1 of 1
Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 3:13 pm
by JMLyneis
I have not used a previously working model in almost a year, but when I tried to open it today Vensim opened it As Text rather than As Sketch. An old post from Bob suggested this was due to a syntax error, and to try CTRL-T. But only "not used" errors are in the model. I also seem to recall that not having linked spreadsheets in the same folder as the model creates this error, but again that does not seem to be the case in my model.
Any ideas? Any recent changes to Vensim (I am using 10.1.3)?
Thank you.
Jim Lyneis
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 3:17 pm
by Administrator
Have you tried view-as sketch?
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 3:28 pm
by JMLyneis
Oh yes. It reverts to the proper model and simulates perfectly. It just won't open as a sketch.
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 4:13 pm
by tomfid
Is it a binary (vmfx or vpmx) or text (mdl) file format?
Does this behavior persist after re-saving the model under a new name?
What are the settings under Model>Settings>File Format?
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 5:36 pm
by JMLyneis
Text (mdl)
Model>Settings>File : File formal options Preserve Original Ordering; As Originally Entered
But I think I remembered the problem. If the GET XLS files are not open when you open the model, Vensim defaults to the Text view; if the spreadsheets are open, Vensim opens in the Sketch view. However it appears that if I open the model without the spreadsheets open, Vensim opens the spreadsheets. However, it appears that if I do not switch from Text to Sketch mode, then close and reopen the model, it opens in Text mode. Perhaps this is by design, as the last View before closing?
Thanks Tom and "Administrator". Sorry for the trouble.
Best, Jim
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 6:06 pm
by Administrator
JMLyneis wrote: ↑Wed Aug 21, 2024 5:36 pmIf the GET XLS files are not open when you open the model, Vensim defaults to the Text view
No, this is not correct.
JMLyneis wrote: ↑Wed Aug 21, 2024 5:36 pmHowever it appears that if I open the model without the spreadsheets open, Vensim opens the spreadsheets.
This is the default. And if the spreadsheets cannot be found, you would be warned before running the simulation.
We would need the model to figure out exactly why it opened in text view. It may be that it was last used in text view.
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 8:48 pm
by JMLyneis
Hmmm...
Well I never use text view, so it was not because I last opened in text view. If you want me to send the model, I can; just tell me where. However, my problem is "solved" so its up to you.
Re: Vensim Opens Model in Text Mode
Posted: Wed Aug 21, 2024 9:36 pm
by tomfid
Administrator wrote: ↑Wed Aug 21, 2024 6:06 pm
JMLyneis wrote: ↑Wed Aug 21, 2024 5:36 pmIf the GET XLS files are not open when you open the model, Vensim defaults to the Text view
No, this is not correct.
... or at least not the intended behavior. You can send the model to vensim at vensim.com.