FeResPost Web Site                     FeResPost Online User Manual

Chapter VII.0
Introduction

COM examples can be run on Windows only. Therefore, these examples should be launched via batch scripts that define the environment variables needed for the execution. For example, in directory “COMEX/EX03”, one enters the command:

    exec ruby -I. makeGravForces.rb

or

    exec python printstressmax.py

The “exec.bat” script contains, for example, the following lines:

    setlocal  
    call "../ENV/env.bat"  
    echo %PATH%  
    %*  
    endlocal

in which the environment defines the variables specifying the version of python or ruby to be used, and the PATH to the directories containing executable and libraries used for the executation. For example:

    set WINLIBS=C:/Users/ferespost/Documents/SRC/OUTPUTS/REDISTR;C:/Windows/System32  
    set PATH=C:/NewProgs/PYTHON/PYTHON_37;C:/NEWPROGS/RUBY/ruby-2.5.1-1-x86/bin;%WINLIBS%  
    set PYTHONPATH=C:/Users/ferespost/Documents/SRC/OUTPUTS/PYTHON/PYTHON_37

The launch of excel examples is slightly different. For example, the script launching the classical laminate analysis with excel in directory “EX06” contains:

    setlocal  
    call "../ENV/env.bat"  
    LaminateAnalysis.xls  
    endlocal