Getting started with external functions

Use this forum to post Vensim related questions.
Post Reply
hazhir
Junior Member
Posts: 12
Joined: Tue Sep 10, 2024 2:51 pm
Vensim version: DSS

Getting started with external functions

Post by hazhir »

All,
I am trying to figure out how to build external functions to work with Vensim. Not being a programmer I rely on AI (claude or chatgpt) to get the project together, but I have not been able to succeed so far. Are the examples of external functions shipped with Vensim up-to-date and usable with visual studio 2022 for example to learn how to build those? trying to build a project with the files "vensim_external_functions.c" and "vensim_external_functions.def" gave many errors in Visual Studio, and working with AI to build a project from scratch also it various walls. What would be your recommended path to figure this out for a programming novice?
Thanks,
hazhir
Administrator
Super Administrator
Posts: 4827
Joined: Wed Mar 05, 2003 3:10 am

Re: Getting started with external functions

Post by Administrator »

Vensim comes with a visual studio project. I'm on a Mac at the moment, but the path is similar in Windows.

/Users/Public/Vensim/comp/VensimExternalFunctionLib/Windows/VensimExternalFunctionLibrary.sln

That should build and run in the latest Vensim. And from there, it should be straightforward to copy an existing function to something new.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply