Documentation > nControl > User's Manual
Track Layout - Adding Custom Baseplates
Introduction
The nControl™ baseplate library does contain a number LEGO® baseplates, but many of them are still missing. You can, however, add your own baseplates and use them in the same
way as the baseplates that come with nControl™.
Files
The base plate library shows all the plates that defined in the <path>/objects/baseplates/<class> folder; where <path> is the installation path of nControl™
and <class> is the folder specifying the baseplate class, e.g. roads, space, etc.
Each baseplate is defined by 3 files:
Image Files
The .svg files (scalable vector graphic files) contain the image of the baseplate. You can make them with any software that supports .svg.
We make them with Inkscape which is an open source vector graphics software package.
You need to keep the following rules in mind while making the .svg files:
Data file
The .xml file contains information about the baseplate. It has the following structure:
<?xml version="1.0"?> <data type="nControl-object" version="1"> <object type="baseplate"> <title value="..."/> <type value="..."/> <size value="Size: ...x...."/> <edge r="..." g="..." b="..."/> </object> </data> The .xml data file provides the following information to nControl™:
Examples
The baseplates that come with nControl™ are provided in this same way. Go to the <path>/objects/baseplates/<class> folder to see the files that
implement the baseplates that come with nControl™. You can use them as examples of starting point to create your own baseplates.
Help Expanding the nControl™ Library
If you want to help us expand the nControl baseplate library, don't hesitate to contact us.
|