FeResPost Web Site                     FeResPost Online User Manual

VII.1.3.3 Generating Nastran GRAV cards

This example is stored in file “COMEX/EX03/makeGravForces.rb”. It corresponds to the example “RUBY/EX06/makeGravForces.rb” described in section IV.2.5.1. As a Module is defined in this example, one needs to store the application in a ruby global variable. This is done as follows:

         $frpApp = WIN32OLE.new("FeResPost_3_4_0.Application")

Then, in the different methods of the Module, the global variable can be used to access the different methods of the application. For example, objects of the different classes can be created with “newObject” method as follows:

         db=$frpApp.newObject("NastranDb")