Use this forum to post Vensim related questions.
SionC
Member
Posts: 39 Joined: Tue Nov 18, 2008 8:44 am
Post
by SionC » Fri Sep 09, 2016 4:07 pm
Hi,
Is it possible to get a string variable value from a VDF file via the DLL?
Thanks
Administrator
Super Administrator
Posts: 4844 Joined: Wed Mar 05, 2003 3:10 am
Post
by Administrator » Sat Sep 10, 2016 8:00 am
No. I'm not sure they are even stored in the VDF (I'm re-working the format at the moment and haven't come across any string storage at all).
SionC
Member
Posts: 39 Joined: Tue Nov 18, 2008 8:44 am
Post
by SionC » Mon Sep 12, 2016 7:59 am
Hi,
They are there, see the attached VPM file with three VDF files loaded. Refer to the variable SAMPLE STRING VARIABLE.
I am using string variables to store additional run information. It would be great to be able to get the information back into Excel via the DLL. It would also be an issue if it is no longer possible to use this functionality.
Best wishes
Sion
Attachments
StringTest.vpm
SAMPLE STRING VARIABLE hold the strings (34.99 KiB) Downloaded 622 times
tomfid
Administrator
Posts: 3999 Joined: Wed May 24, 2006 4:54 am
Post
by tomfid » Mon Sep 12, 2016 2:58 pm
Could you encode the string information as numbers, or are they ad hoc and numerous?
SionC
Member
Posts: 39 Joined: Tue Nov 18, 2008 8:44 am
Post
by SionC » Mon Sep 12, 2016 3:17 pm
Hi Tom,
Sadly it is ad hoc information, for example a text description of a particular scenario.
Best wishes
Sion
Administrator
Super Administrator
Posts: 4844 Joined: Wed Mar 05, 2003 3:10 am
Post
by Administrator » Mon Sep 12, 2016 3:50 pm
I should be able to add a new function to the DLL to retrieve the string variables. Just need to find the correct place in the code.
Administrator
Super Administrator
Posts: 4844 Joined: Wed Mar 05, 2003 3:10 am
Post
by Administrator » Mon Sep 12, 2016 4:44 pm
It should be available in the next release of Vensim.
SionC
Member
Posts: 39 Joined: Tue Nov 18, 2008 8:44 am
Post
by SionC » Tue Sep 13, 2016 7:58 am
That is fantastic! Thanks
SionC
Member
Posts: 39 Joined: Tue Nov 18, 2008 8:44 am
Post
by SionC » Tue Nov 15, 2016 8:56 am
Hi,
Is this functionality planned to be in the December release of Vensim 6.4E?
Thanks
Sion