
The header file for MazeSettings will look like this: class MazeSettings : public GS::Object It can be very useful if we want to modify the data structure while keeping compatibility with previous versions. We also have to use the DECLARE_CLASS_INFO macro that assigns some version information to the class. To achieve this it should be inherited from the GS::Object class that provides basic functionalities for serialization. Now we will prepare our MazeSettings class to make it serializable to and deserializable from a binary format. The good news is that the Archicad API has a pretty good support to achieve this.

It means that the first step should be to convert your data to and from a binary blob. Saving to preferences usually takes these steps:Īrchicad doesn’t know anything about the Add-On, or its data structure, so an Add-On should pass a binary blob (“black box”) to Archicad. It won’t affect the database, or any other users in a teamwork project. When storing the state of the user interface, storing data in preferences is usually the best choice.

#Any maze interface code
The code for this tutorial is available here. The annoying thing about the dialog is that it keeps using the default data, and doesn’t remember the previous settings.
#Any maze interface how to
60532 Infrared pass / visible block filter for our 60528 lens.In the previous parts of this tutorial series we’ve learned how to create BIM elements, and a very simple dialog.Works with any cameras/lenses that don't include an infrared blocking filter.Track in tests in which visible light levels change.Track through the black Plexiglas walls of our mazes and test apparatus.


Thus the visible light levels can be altered without affecting the tracking at all. Severe changes in the lighting can interfere with the tracking, but this can be overcome by fitting your lens with a visible light blocking filter and then using an infrared illuminator to track ONLY in infrared. In some experiments, you may wish to alter the light levels during the tests. For example, this would allow you to track in both the light and dark side of the light/dark box. The material we use is infrared transparent, so by using an infrared illuminator your camera will be able to see through it. Some of our mazes and test apparatus include parts made in black Plexiglas - for example, the dark side of the light/dark box. Provided your lens doesn't include this type of filter (none of the lenses we supply have a IR block filter), then by using an infrared illuminator, your camera will be able to 'see in the dark'. All modern cameras are sensitive to infrared (IR) light, although some lenses include infrared blocking filters. Part number: 60540 March 2017 Overview The ANY-maze infrared illuminator can be used to track in low light or even complete darkness.
