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
-
.current_model ⇒ Object
Returns the pathname for the current model if an OLE server is present, nil otherwise.
Class Method Details
.current_model ⇒ Object
Returns the pathname for the current model if an OLE server is present, nil otherwise
176 177 178 179 180 181 182 183 |
# File 'lib/rrt_ruby.rb', line 176 def self.current_model begin rt = WIN32OLE.connect(OLEAPP_NAME) return rt.CurrentModel.GetFileName rescue return nil end end |