Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Annotations.Automation)

LayerFromSelectedObjects Method

Show in webframe
Optional layer name. Can be null.
Creates a new layer from the currently selected objects.
Syntax
 function Leadtools.Annotations.Automation.AnnAutomation.layerFromSelectedObjects( 
   layerName 
)

Parameters

ParameterTypeDescription
layerNamestringOptional layer name. Can be null.

Return Value

TypeDescription
AnnLayer The newly created layer.
Remarks

This method will create a new AnnLayer and add all the selected objects to it. The layer is not added to the container since it is up to the caller to determine where to add this layer in the z-order. Either use the AddLayer helper method or use the AnnContainer.Layers collection methods directly.

See Also

Reference

AnnAutomation Object
AnnAutomation Members

Error processing SSI file