Interface: LayerManager

The LayerManager Core Interface provides access to the Layer Manager.

Properties:

.count : integer : Read

Get the number of layers in the scene

.current : Interface : Read

Returns a LayerProperties MixinInterface to the current layer.

Methods:

<Interface>getLayer <integer>which

Returns a LayerProperties MixinInterface to the indexed layer.

Note:

getLayer is 0-based.

 

<Interface>newLayer()

Creates a new Layer and returns a LayerProperties MixinInterface to it.

 

<Interface>getLayerFromName <string>name

Returns a LayerProperties MixinInterface to the layer with the given name.

 

<Interface>newLayerFromName <string>name

Creates a new layer with the given name and returns a LayerProperties MixinInterface to it.

 

<void>editLayerByName <string>name

Enters editing mode for the layer with the given name.

 

<boolean>deleteLayerByName <string>name

Deletes the layer with the given name. Returns true if layer deleted, false otherwise. A layer can only be deleted if no nodes are in the layer and the layer is not the currently active layer.

Note:

This method is not available in Autodesk VIZ.

 

<void>closeDialog()

Closes the Layer Manager dialog.

<boolean>isDialogOpen()

Returns true if the Layer Manager dialog is open, false otherwise.

LayerManager Interfaces:

Interface: LayerProperties

Interface: LayerProperties

See also

Interface: INodeLayerProperties

Interface: LayerProperties