Jump to content
mustaphos

LUA Scripting with FEKO

Recommended Posts

Hello mustaphos,

 

At this point you need to have a look at the CADFEKO API. Everything you need will be under "project". I would suggest that you have a look at chapter 7.1 (Scripting basics) and in particular the example in 7.1.1. I would then suggest that you work through example I-1 in the Example guide since it walks you through the process of creating a model in CADFEKO. Reading settings from the model is the same and it is also demonstrated.

mustaphos and Pearl like this

Share this post


Link to post
Share on other sites

Hello @mustaphos,

 

@JIF beat me to it...! ;)  Of course, this is the "more correct" way to learn how to do scripting and automation.

 

The shortcut way to get started with scripting (in CADFEKO) is to use "Macro recording".  You'll see in the status bar (in the bottom of the application) a button with a puzzle piece and a red circle.  If you press this, then CADFEKO will record every action you take that changes the model.  In other words, if you start recording and create / modify / delete a variable, then a script will be recorded that shows you how to do precisely that one bit of scripting. 

 

It's cheating but I won't tell anyone.

Share this post


Link to post
Share on other sites
1 minute ago, andries said:

Hello @mustaphos,

 

@JIF beat me to it...! ;)  Of course, this is the "more correct" way to learn how to do scripting and automation.

 

The shortcut way to get started with scripting (in CADFEKO) is to use "Macro recording".  You'll see in the status bar (in the bottom of the application) a button with a puzzle piece and a red circle.  If you press this, then CADFEKO will record every action you take that changes the model.  In other words, if you start recording and create / modify / delete a variable, then a script will be recorded that shows you how to do precisely that one bit of scripting. 

 

It's cheating but I won't tell anyone.

Wow it's very nice.

Thanks you sir.

I immediately found the variables i wanted.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...