A desktop gadget for Windows Vista and Windows 7 displaying live travel news for the London Underground based on data from Transport For London. Gadgets Repository I have just realized that Microsoft's gadget repository at gallery.live.com has been taken down. From now on the gadget, along with its source code,... read more →
Apr
23
Apr
05
When the SketchUp Ruby API introduces new features or changes a common pattern to ensure backward compatibility is: if Sketchup.version.split('.')[0].to_i < 7 model.start_operation('FooBar') else model.start_operation('FooBar', true) end One might even need to check the minor and revision number in some cases. But doing so require you to split and parse... read more →
Mar
17
The SketchUp Ruby API documentation doesn't always tell the whole tale. Many things you discover as you go along. I've collected what I have come found out so far. Materials Collection has Secret Items Given a model that contains two materials and an Image element you would think that model.materials.length... read more →
Feb
22
The SketchUp Ruby API documentation says the following about the DefinitionList class, exposed via model.definitions: A DefinitionList object holds a list of all of the ComponentDefinition objects in a model. This class contains methods for adding and retrieving definitions from the list. When you then look up the ComponentDefinition class... read more →
Feb
10
Warning! Do not use this pattern when creating an extension. It is not a good one and it will not be accepted to the Extension Warehouse. Refer to the official examples on Github. This article remains for historical purposes. (more…)
Feb
08
I just released QuadFace Tools version 0.7.0 with the following updates and fixes: New Features Highlight Poles Build Corners Build Ends Convert Wireframe to Quads [caption id="attachment_260" align="aligncenter" width="240" caption="Convert Wireframe to... read more →
Jan
31
Update: June 2014 This article was written right before Google sold SketchUp to Trimble. Since then the instructions has changed slightly. In May 2013 SketchUp 2013 was released which included the Extension Warehouse which allow you to browse and discover extensions directly from within SketchUp. For the extensions hosted on... read more →
Jan
12
The Ruby language is very easy to extend to suit your needs. Some very pretty looking code can be written. However, when you write plugins for SketchUp's Ruby API you should be careful. The environment is shared between all plugins, so there is a good risk of clashes if you... read more →
Dec
31
Something I all too often observe in plugins for SketchUp that kills performance is the usage of .typename within loops. I blame the SketchUp Ruby API documentation for this widespread usage as it's used throughout the code examples. Alex Mozg illustrated how big the performance hit is with his speed... read more →