Attribute creation

This is not Ruby code. It is a Dynamic Components extension formula using a DC function that references dynamic attributes.

The Dynamic Components extension is closed source at this time, and hacking it with Ruby is a very advanced concept in programming. It is also not advised to “hack” Dynamic Components as it’s proprietary extension engine could be modified at any time by the SketchUp Team.

Please choose a simpler feature to use to learn SketchUp Ruby programming.

You should at least read the Ruby Core primers & guides before attempting to program for SketchUp using it’s API.

2 Likes