Request

Response

    Autodesk.Viewing.Extensions
    Version 8 preview
    This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.

    LayerManagerExtension

    Use its activate() method to open the LayersPanel UI. Layers are usually present in 2D models, but some 3D models may support layers as well, for example: AutoCAD.

    The extension id is: Autodesk.LayerManager

    Examples

    viewer.loadExtension('Autodesk.LayerManager')
    

    Methods

    Opens the Layers Panel UI.

    Closes the Layers Panel UI.

    Checks whether the Layers Panel UI is opened.

    Returns

    typedescription
    boolean true if the Layers Panel UI is currently opened.