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.

    PropertiesManagerExtension

    Use its activate() method to open the Properties UI.

    The extension id is: Autodesk.PropertiesManager

    Examples

    viewer.loadExtension('Autodesk.PropertiesManager')
    

    Methods

    Invoked when the extension gets loaded.

    Returns

    typedescription
    boolean true when the extension loaded successfully.

    unload()

    Invoked when the extension gets unloaded.

    activate()

    Opens the Properties UI.

    deactivate()

    Closes the Properties UI.

    isActive()

    Returns

    typedescription
    boolean true is the properties panel is open.

    setPanel(propertyPanel)

    Overrides the property panel instance.

    Parameters

    propertyPanel*
    * Required

    Returns

    typedescription
    boolean True if the panel or null was set successfully, and false otherwise.

    setDefaultPanel()

    Resets the panel to its default instance.

    getPanel()

    Gets the property panel instance.

    Returns

    typedescription
    object The panel instance.