PAssignLayer

Assigns the currently selected objects from one layer to another layer.

This command was introduced in PageMaker 6.5.


Command constructor

This command has two constructors.

PAssignLayer( const char * sNameTo );

const char * sNameTo;

Name of the layer to assign selected items to. All selected objects on any layer are assigned to this layer.

PAssignLayer(const char * sNameFrom, const char * sNameTo);

const char * sNameFrom;

Name of the layer to take selected items from. Only items from this layer will be reassigned to the new layer.

const char * sNameTo;

Name of the layer to assign selected items to.

Example. The following example assigns all of the currently selected objects to the layer named "MyLayer".

PAssignLayer("MyLayer");


See also

The PDeleteLayer, PDeleteUnusedLayers, PLayerOptions, PLockLayers, PMoveLayer, PNewLayer, PPasteRemembers, PSelectLayer, PShowLayers, and PTargetLayer commands

The PGetLayerFromID, PGetLayerList, PGetLayerOptions, PGetPasteRemembers, and PGetTargetLayer queries


Comments or suggestions? Contact Adobe Developer Support
Copyright © 1997 - 2001 Adobe Systems Incorporated. All rights reserved.
Legal notices and trademark attributions