I am using Microsoft Excel 2016 with VBA macros to import data from Vensim runs (*.vdf) with the 32bit Vensim DLL.
The variables that need to be read with the vensim_get_data() method are stored in a savelist (*.lst). Additionally to the base variable names, I need to retrieve the subscripts using vensim_get_varattrib().
When trying to open a model using
Code: Select all
vensim_command ("SPECIAL>LOADMODEL|C:\vensim\myModel.mdl")
"You can load both text format model (.mdl files) and binary format models (.vmf) files as well as packaged models. For anything except Vensim DSS the model needs to be contains in a package (.vpm or .vpa) file."
I have a feeling that Windows won't recognize Vensim as DSS version, although Vensim DSS for Windows Version 6.4 (x32) is installed on my computer.
Does anyone have an idea why this error pops up?
And as an alternative solution, is there another way to publish a *.vpm file from a *.mdl file with VBA in Excel?
I know there is the FILE>PUBLISH command that needs to load a model using SPECIAL>LOADMODEL in advance. Which is my primary problem
Thanks for your help!