Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

FEMAP API Separate script into different files

Status
Not open for further replies.

Tuman_1232

Aerospace
Oct 7, 2017
20
Hello everyone,

I'm writing a big script that will help me with my post analysis results routine. I do it on VB.net.

I would like to structure the script and separate function implementation from script code.

FEMAP enables to separate code in different files.

I tried to call function/sub from one file to another and it didn't work.

Also, all costume tools that I checked are written in one-file style.

Does anybody know how linking between files should be done in proper way?
 
Replies continue below

Recommended for you

Hello Ilya,
If you use vb.net (maybe with some IDE like MS Visual Studio) you can create the code structure using classes / modulus / functions etc. (with the Femap API code inside of those code blocks) on the side of VB.net. After all such solution can be easier to support later (by my experience). However, if you need to run one script from another like inside in FEMAP own IDE, you can use the API method feFileProgramRun(useDlg, init, isFile, buff). A few times I used this way as a fast and simple solution to significantly speed up the process of "big" data processing.
So the best way depends on your task scale and your application structure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor