This is an example of a macro that checks which version of TurboCAD is running in order to use the correct index values for TCLight extended properties. This is necessary due to changes in the SDK between v7 and v8. The macro is intended to be run in a new, empty drawing. It will add a few solid objects, and then a circular array of spotlights, based on input from a form. Then the lights are randomly colored and the scene is rendered.