AnnoObjSetLayer

Usage                  AnnoObjSetLayer(Layer As Long)

Description         Sets the layer number of the selected annotation object. Every new object inherits the active layer number set by the SelectLayer method. If you want to place an existing object to another layer, choose this method, otherwise it is unnecessary. 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.  If there is no selected annotation object, the method does nothing.