SelectLayer

Usage                  SelectLayer(Layer As Long)

Description         Selects the active layer for new annotation objects. Almost all of the annotation methods are operating on the viewable layers. The active layer must be one of the viewable layers. The layer numbering is 0-based and the default layer is 0 (zero).

Parameters         Layer                     Long                Layer number to set

Return value      None

Programming Notes        However, the layer number is a Long type, it’s minimal value is 0 and it’s maximal value is 65535 due to the storage. You cannot specify numbers that exceed these limits. If you do so anyway, the new number will not be set, and the old layer will be functioning in the future too.

                                          The active layer is for new objects only. Other objects can also be manipulated, if their layer number is in the layer list. You cannot change the active layer, if the number you pass to the SelectLayer method is not in the layer list entered by the SetLayers method. See SetLayers for more information.