Module: RRT_RUBY

Defined in:
lib/rrt_ruby.rb,
lib/rrt_ruby/finder.rb,
lib/rrt_ruby/writer.rb

Defined Under Namespace

Modules: Finder, Writer Classes: RRTAccessor, RRTFinder

Constant Summary collapse

VERSION_MAJOR =
'0'
VERSION_MINOR =
'3'
OLEAPP_NAME =
'RoseRT.Application'

Class Method Summary collapse

Class Method Details

.current_modelObject

Returns the pathname for the current model if an OLE server is present, nil otherwise



174
175
176
177
178
179
180
181
# File 'lib/rrt_ruby.rb', line 174

def self.current_model
  begin
    rt = WIN32OLE.connect(OLEAPP_NAME)
    return rt.CurrentModel.GetFileName
  rescue
    return nil
  end
end