Third party cookies may be stored when visiting this site. Please see the cookie information.

Home Family Days Out Raspberry Pi & Electronics Blog

Stewart's Blog

Stewart Watkiss website to the world ...

(Children, computing, first aid and other ramblings ...)

G-Scale building for garden model railway – part 2 – TinkerCAD code blocks

This is an update on my first outdoor model railway building created using a 3D printer.

In the first version of the model railway building I created the building in several different parts, in this version I have decided on just 3. The main part is the body of the building, then the roof and finally the windows. As well as making the building look better this has made is possible to add additional features to the building which will be explained in the final part.

Building for an outdoor model railway - 3D printed

In an earlier video I have made a tutorial on creating a brick wall in TinkerCAD. This worked well, but is very tedious to add each brick manually. I have therefore created this new video which shows how you can partially automate this using code.

The code is written using TinkerCAD Codeblocks, which uses a graphical interface to add blocks of code. This is similar to how you would create code in Scratch or an other block based programming language. There is a limitation of 200 objects in Codeblocks, so I had to duplicate the completed object to add more layers.

The code created is available through the link below:

If you have experience of programming then the code should be fairly easy to follow. You can also see how it works by slowing the speed of the code down within TinkerCAD.

The next stage is to add the roof and other details, which will be explained in a future video. Please subscribe to the penguintutor YoutTube channel to see future updates.

Update

The latest version is now available. Information on how this was created is available at:

Details of the changes to the latest version are available version 2 of GScale model railway building.

Please leave comments using the facebook comments below.


UK days out, children and holiday information is also available on the Days Out Diary web site
Linux, LPI and the Quiz / Test Program posts are also available on the Penguin Tutor website
First Aid Information, first aid games and first aid practice test / quiz entries are also available on the First Aid Quiz Web site