Load

With this option the user can execute a list of commands written in a text file. The commands written in the file will be executed in order, one by one. This option is useful to execute a group of operations by a command.

Example, script that creates a geometry with copy and rotate commands:

#
#  newFASANT script file
# 
#    Copy this content to a .nfs file and load it.
#
box -n myGeometry -p -1.0 -1.0 0.0 2.0 2.0 2.0
move -s myGeometry -p 0.0 0.0 0.0 6.0 0.0 0.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
copy -s myGeometry -n myCopy -p 0.0 0.0 0.0 0.0 0.0 0.0
rotate -s myGeometry -p 0.0 0.0 0.0 0.0 0.0 1.0 45.0
#
#  End script file
#

Results of the previous script.



Figure 1. Geometry after loading the script