June 21, 2011
by Paul The CAD
1 Comment
TurboCad v. 18.1
TurboCad has been updated frequently during the past few years, leading to the current upgraded 18.1 version. This version saves drawing with a different file protocol to earlier versions, resulting in files made by earlier versions continuing to be read, but v.18 files cannot be read by earlier versions. There is however the facility to write files in v.17 format if required. If v.17 is running on a machine it alters the way that v.18 is loaded. Upgrades of CadCam and Animation Lab are available that function with v.18.1 so that there is no necessity to maintain v.17 on your machine when upgrading.
Users will notice the improved use of modern graphics cards, the rearrangement of icons on the toolbars and the changed content and order of the menus. As in earlier versions the desktop is customizable. The macro recorder and parametric parts editor remain as before and their documentation remains the same. Earlier parametric files of much used parts are still usable. IMSI documentation is appalling. A guide to using the parametric parts editor is found in the programming notes at www.illustratingshadows.com/stats-TurboCAD.html .
The major advance in v.18 is the embedding of a Ruby interpreter within the programme. This makes TurboCad an even more formidable piece of software than ever and is a reason to make this upgrade a ‘must have’ for TurboCad users. The Ruby interpreter enable the user to access all the variables in the programme and to control the writing of files. Unfortunately IMSI has once again failed to provide proper documentation or indications of how to use the facility. The following paragraphs relate my experiences during the few days that I have had the programme.
Ruby is a totally object-orientated interpreted scripting language of Japanese origin. Its structure is influenced by Perl, Lisp and Python. Autodesk developed a subset of Lisp for use with AutoCAD. Ruby is an open source programme which can be downloaded from ruby-lang.org together with its interactive prompt irb. Suggested books on the language are Beginning Ruby, from Novice to Professional, Peter Cooper, Apress and Programming Ruby 1.9, Dave Thomas, The Pragmatic Programmers.
Ruby is embedded in Sketchup. Sketchup can be downloaded from sketchup.google.com. The download has sample Ruby files to facilitate its use. It is clear from the IMSI documentation that Sketchup has been used in the development of the TurboCad version. TurboCad users should use Sketchup as a tutorial and are recommended www.autosketchup.com . The console in TurboCad is very similar to the one in Sketchup. When Sketchup loads it looks for Ruby files in the subdirectory /plugins. When TurboCad loads it looks for Ruby and loads files in the subdirectories /RubyEngine and /RubyScripts. If any of the Ruby files in these directories contain the following code then they will appear on the menu bar.
UI.menu(“New”).add_item(“TestCounters”){testCounters}
Details of the sample files will not appear on the menu bar if TurboCad v17 is running when TurboCad v.18 is loaded. The sample files can be used with the previously noted literature to comprehend how Ruby can be used with TurboCad. Further explanation and a programming guide will follow.
Stuart Harrison