SketchUp Tools & Techniques
RubyTMIX: A TrainzXML Exporter for SketchUp
RubyTMIX is a plug-in for SketchUpģ that provides direct export of SketchUp models to Trainz, with all geometry, materials and textures intact and the polygon count minimized. Using a combination of its own built-in functionality as well as fully-automated interaction with various freely-available external utility programs, the plug-in produces all files required to import a SketchUp model directly into Trainz Content Manager, where it is immediately available for use in Surveyor. The plug-in is compatible with SketchUp 7 through 2017; with Windows XP through Windows 10; and with TS2009, TS2010, TS12, TS12-SP1, T:ANE and TMR17. Itís named for the programming language in which itís written (Ruby) and the intermediate file format used during the export process (Trainz Mesh Importer XML).
The Salty Dawg Saloon (by JCHarrist)
Downloaded from the SketchUp 3D Warehouse, opened in SketchUp
The same model, after export by RubyTMIX and before importing into Trainz
Previewing the IM File in PEV's Trainz Mesh Viewer
In TS12 Surveyor, after import into Trainz
Port Ogden & Northern as a backdrop courtesy of philskene
RubyTMIX is being released FREE to the Trainz community and may be used for any purpose, personal or commercial, within the following terms:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
If you donít agree to these terms... donít use the software.
How It Works
Thanks to Peter Villaume (PEV) for graciously providing some valuable tips about materials and geometry in TrainzXML files, and for allowing me to reference his Trainz Mesh Viewer as the preview part of my tool.
Thanks also to philskene for allowing me to use his routes as backdrops for my screen shots.
Special thanks to Arraial P, a Beta Tester who found many obscure issues and whose astute observations and suggestions played a large part in the development of this tool.
Limitations and Known Issues
These items are being worked on for a future release.
Download the RubyTMIX Package Here
The current Version as of January 4, 2017 is 1.2.1.
Download the ZIP file below and extract it to a folder of its own. Inside you will find a PDF User's Guide, plus an RBZ file that is the actual installation. Detailed installation instructions are provided in Chapter 2 of the User's Guide, and you must follow these instructions in order to achieve proper operation of the plug-in.
PLEASE READ AND FOLLOW THE INSTALLATION INSTRUCTIONS
IN THE USER'S GUIDE.
The User's Guide is in PDF format and requires Acrobat Reader to view.
RubyTMIX also requires the Microsoft .NET 2.0 Runtime.
This should already be present as part of your operating system, and Trainz already requires this as well.
If you need this, a download link is provided below.
All of the downloadable content on this site
is offered freely, in good faith, for the benefit of the Trainz community.
The RubyTMIX Package: RubyTMIX Version 1.2.1 (Zip Archive here at dhobh.net)
The .NET 2.0 Runtime: Microsoft .NET 2.0 Runtime (Link to external site)
PEV's Trainz Tools: Hosted on Shane Turner's Web Site (Link to external site)
Tips for Getting Started
For further information
If you're interested in how this tool came about, please take a look at the original thread in the Trainz Forums.
This thread in the Trainz Forums tracks the progress of the RubyTMIX release. Thanks to everyone who is posting for their feedback and support.
The author accepts no liability for damage or lost data arising from the use or misuse
of the tools, tutorials and techniques presented here.
All items are provided in good faith for the benefit of the Trainz community.
Return to the Home Page
Copyright © 2017. All Rights Reserved. Last updated on January 4, 2017.